Skip to content

👷 github: isolate coverage uploads - #1314

Open
nfmelendez wants to merge 1 commit into
mainfrom
codecov-search
Open

nfmelendez wants to merge 1 commit into
mainfrom
codecov-search

Conversation

@nfmelendez

@nfmelendez nfmelendez commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

what

pass disable_search: true to every codecov-action step and list the coverage files of the test job explicitly, so each commit uploads only its own reports.

why

the test and e2e jobs restore .nx/cache with restore-keys: nx-Linux-, which brings back the most recent cache from any branch. test:vi and test:coverage declare coverage and lcov.info as nx outputs, so the cache carries lcov.info files from other commits. codecov-action searches the whole tree and uploads them alongside the real report, and codecov merges them into the current commit.

that is why codecov/project fails on release prs like #1298, #1299 and #1300: the base commit e1aa1b5 absorbed an older version of server/hooks/panda.ts with different line numbers and gained 97 tracked lines and 91 hits that do not exist. re-running the head cannot fix that, since the base report stays inflated.

confirmed by deleting all nx-Linux-* caches and re-running #1298: the e2e job uploaded 2 files instead of 5, the test job 4 instead of 5, and the head coverage stayed at 72.14%. with this change each job uploads exactly 2 coverage files and 1 test results file.

codecov on this pr

codecov/project is red here for the reason this pr fixes: the base is main at 73fdca5, whose report still merges the stale uploads of its earlier attempts (server/hooks/panda.ts shows 559 tracked lines there against 353 on a clean head with all four flavors uploaded). uploads accumulate per commit, so no re-run of main can clean it. this pr needs an admin merge; the next commit on main will then report clean numbers and every later pr will compare against it.

the nx cache follow-up lives in #1315, stacked on this one.

🤖 Generated with Claude Code

@changeset-bot

changeset-bot Bot commented Sep 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2a9d4f5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 4ba3f17a-ca25-40bb-a37d-e43eb1e31a10

📥 Commits

Reviewing files that changed from the base of the PR and between 73fdca5 and 5e2c0c0.

📒 Files selected for processing (1)
  • .github/workflows/test.yaml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The GitHub Actions test and e2e jobs now cache Nx workspace database files and disable Codecov file search for coverage and test-results uploads.

Changes

CI configuration

Layer / File(s) Summary
Nx cache paths
.github/workflows/test.yaml
The test and e2e jobs cache .nx/workspace-data/*.db* files in addition to .nx/cache.
Codecov search controls
.github/workflows/test.yaml
The coverage and test-results Codecov uploads in both jobs set disable_search: true.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 5e2c0

The workflow changes preserve coverage uploads and Nx caching without an established CI failure risk.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the primary workflow change: isolating Codecov coverage uploads. It is concise and directly related to the pull request objectives, although it does not mention the seconda…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codecov-search
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch codecov-search

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e2c0c0e2d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/test.yaml Outdated
path: .nx/cache
path: |
.nx/cache
.nx/workspace-data/*.db*

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Separate the two jobs' Nx cache keys

Once this database path makes restored Nx entries usable, the test and e2e cache steps still race on the identical nx-${{ runner.os }}-${{ github.sha }} key. GitHub Actions caches are immutable, so whichever job finishes first saves its .nx/cache and matching database while the other job's distinct entries are discarded; subsequent commits and reruns therefore cannot reuse all tasks produced by both jobs. Include the job identity in both the primary key and restore prefix so each job can persist its own coherent cache.

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.60%. Comparing base (e1aa1b5) to head (37beb58).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1314      +/-   ##
==========================================
- Coverage   72.33%   71.60%   -0.74%     
==========================================
  Files         279      279              
  Lines       11375    10973     -402     
  Branches     3851     3679     -172     
==========================================
- Hits         8228     7857     -371     
+ Misses       2898     2878      -20     
+ Partials      249      238      -11     
Flag Coverage Δ
e2e 47.02% <ø> (-25.31%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 37beb585f1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread package.json Outdated

This branch was successfully deployed

1 active deployment
test 2a9d4f5a Deployed Sep 15, 2026 by nfmelendez via test #14088
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.

1 participant