-
Notifications
You must be signed in to change notification settings - Fork 448
Fix Codecov Coverage Issue #2934
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
fa901d3 to
7a4e420
Compare
cf15225 to
1b094b5
Compare
| runs-on: ${{ inputs.cloud_runner != '' && inputs.cloud_runner || fromJson(format('["self-hosted", "{0}", "{1}"]', inputs.device_type, inputs.device_name)) }} | ||
| container: | ||
| image: gcr.io/tpu-prod-env-multipod/maxtext-unit-test-${{ inputs.device_type == 'cpu' && 'tpu' || inputs.device_type }}:${{ inputs.image_type != '' && inputs.image_type }} | ||
| image: gcr.io/tpu-prod-env-multipod/maxtext-unit-test-${{ inputs.device_type == 'cpu' && 'tpu' || inputs.device_type }}:${{ inputs.image_type != '' && inputs.image_type || 'latest' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the need to addlatest tag?
This docker image doesn't have latest tag.
| $SPLIT_ARGS | ||
| env: | ||
| PYTHONPATH: "${{ github.workspace }}/src" | ||
| - name: Check Coverage Output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Check Coverage Output step runs multiple times because run_tests_against_package.yml is called separately for CPU, TPU, and GPU tests by the build_and_test_maxtext.yml workflow. Please move this to a different workflow.
| echo "--- Coverage XML (first 50 lines) ---" | ||
| head -n 50 coverage.xml | ||
| echo "--- End Coverage XML ---" | ||
| - name: Upload results to Codecov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move this step as well to this new workflow.
Description
Codecov shows coverage is 0, so this PR is used to fix the issue.
Tests
We add a sample math_utils code and test to check the results.
CodeCov branch report
CodeCov PR report
Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.