Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(ci): Use codecov GH action instead of bash script #32959

Merged
merged 12 commits into from
Mar 29, 2022

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Mar 25, 2022

This uses a GH Action instead of bash script. The bash script has been deprecated. See https://github.com/codecov/codecov-action

  • Change our uploads by adding a flag for frontend or backend.
  • Only upload coverage of acceptance tests on backend changes (unsure how this will affect codecov for frontend only changes)

This does NOT fix the spiky reporting of coverage (which I believe is due to flakey tests, eg, 3 of 4 test instances fail, but we still report 3 of them to codecov.

Note, due to a bug in codecov, we have to unset NODE_OPTIONS

billyvg added 2 commits March 25, 2022 10:43
This uses a GH Action instead of bash script. The bash script has been deprecated. See https://github.com/codecov/codecov-action
@billyvg billyvg requested a review from a team as a code owner March 28, 2022 17:36
@armenzg armenzg added the Component: CI Continuous Integration pipeline (GitHub Actions) label Mar 28, 2022
fi
uses: codecov/codecov-action@v2
env:
NODE_OPTIONS: ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why empty?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, added a comment

@@ -161,7 +161,7 @@ test-plugins:

test-relay-integration:
@echo "--> Running Relay integration tests"
pytest tests/relay_integration -vv
pytest tests/relay_integration -vv --cov . --cov-report="xml:.artifacts/relay.coverage.xml" --junit-xml=".artifacts/relay.junit.xml"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I assume this is intentional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I initially refactored these paths and noticed relay wasn't outputting coverage stats.

@billyvg billyvg merged commit 164d345 into master Mar 29, 2022
@billyvg billyvg deleted the build/ci/use-codecov-github-action-2 branch March 29, 2022 20:35
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: CI Continuous Integration pipeline (GitHub Actions)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants