Skip to content

Conversation

@Shuang-cnt
Copy link
Collaborator

@Shuang-cnt Shuang-cnt commented Jan 13, 2026

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):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Shuang-cnt Shuang-cnt changed the title codecov dummy test Fix Codecov Coverage Issue Jan 14, 2026
@Shuang-cnt Shuang-cnt marked this pull request as ready for review January 14, 2026 01:49
@Shuang-cnt Shuang-cnt requested a review from parambole as a code owner January 14, 2026 01:49
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' }}
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants