Skip to content

Track lower-case maxtext package in coverage to unblock Codecov#3724

Open
ecnal-cienet wants to merge 1 commit intomainfrom
fix/coveragerc-track-lowercase-maxtext
Open

Track lower-case maxtext package in coverage to unblock Codecov#3724
ecnal-cienet wants to merge 1 commit intomainfrom
fix/coveragerc-track-lowercase-maxtext

Conversation

@ecnal-cienet
Copy link
Copy Markdown
Collaborator

@ecnal-cienet ecnal-cienet commented Apr 22, 2026

Summary

  • Add maxtext (lower-case) to [run] source in .coveragerc alongside MaxText (upper-case).

Why

coverage.py uses [run] source to decide which packages to trace. The config previously listed only MaxText, so files imported via the lower-case maxtext package (the NNX-migrated path at src/maxtext/) were never instrumented. Lines covered by real unit tests therefore showed up on Codecov as null rather than hit, pushing patch coverage artificially low.

The existing [paths] aliasing only merges already-collected measurements across filesystems — it does not control what is traced in the first place.

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 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
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Collaborator

@bvandermoon bvandermoon left a comment

Choose a reason for hiding this comment

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

LGTM ,

Comment thread .coveragerc Outdated
The NNX-migrated code lives in src/maxtext/ (lower-case) but
.coveragerc only listed the upper-case MaxText package in
[run] source. coverage.py therefore never instrumented the
new files, so added lines showed up on Codecov with no
coverage data and suppressed patch coverage.

The existing [paths] aliasing only merges already-collected
data across filesystems; it does not control what is traced
in the first place.
@ecnal-cienet ecnal-cienet force-pushed the fix/coveragerc-track-lowercase-maxtext branch from 5ad8163 to b60f515 Compare April 23, 2026 21:26
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.

2 participants