Skip to content

[CI] Restrict LTS coverage tracking to the checkout - #645

Merged
michel2323 merged 1 commit into
mainfrom
ci-coverage-tracked-path
Sep 25, 2026
Merged

michel2323 merged 1 commit into
mainfrom
ci-coverage-tracked-path

Conversation

@michel2323

Copy link
Copy Markdown
Member

The ALCF LTS job ran the tests with --code-coverage=user, which also covers every dependency. Each of the ~45 parallel test workers writes a .cov file for every source file it loaded (GPUCompiler, LLVM, GPUArrays, KernelAbstractions, ...) into the CI depot on Lustre. The two CI depots had piled up ~43k and ~51k such files (~1 GB each).

That I/O makes workers slow to start and to exit, which trips Malt's hard-coded timeouts and fails runs where every test passed:

  • main d2e06ce, test:lts:1.10: Worker process exited before we could connect … caused by: Timeout (30 s connect). 43/45 tests passed and 2 never got a worker.
  • main f110df6, test:lts:1.13: all 45 tests passed, then HOST: Worker did not exit after 20.0 seconds.

None of those depot .cov files are used, because the lcov step only processes src/, lib/ and examples/. This PR switches to --code-coverage=@$CI_PROJECT_DIR.

Checked locally with Julia 1.10: Base.julia_cmd() passes the tracked path on to child processes (code_coverage == 3 with the checkout as tracked path). Coverage files appear under src/ and lib/, and none under the depot's packages/.

🤖 Generated with Claude Code

`--code-coverage=user` covers every non-Base package, so each of the ~45
parallel test workers writes a .cov file for every dependency source file
(GPUCompiler, LLVM, GPUArrays, ...) into the CI depot on Lustre. That
slows worker start-up and shutdown enough to trip Malt's hard-coded 30 s
connect and 20 s exit timeouts, failing otherwise green runs (pipelines
65611 on 1.10 and 65820 on 1.13). None of those files are consumed: the
lcov step only processes src/, lib/ and examples/.

Track `@$CI_PROJECT_DIR` instead; Base.julia_cmd() forwards the tracked
path to the workers.
@codecov

codecov Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.59%. Comparing base (f110df6) to head (0d7723a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #645      +/-   ##
==========================================
- Coverage   81.61%   80.59%   -1.02%     
==========================================
  Files          50       54       +4     
  Lines        3611     3855     +244     
==========================================
+ Hits         2947     3107     +160     
- Misses        664      748      +84     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@michel2323
michel2323 merged commit 8877ff2 into main Sep 25, 2026
4 checks passed
@michel2323
michel2323 deleted the ci-coverage-tracked-path branch September 25, 2026 12:46
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