Skip to content

ci: separate fast unit tests from coverage collection#4814

Open
walldiss wants to merge 1 commit intocelestiaorg:mainfrom
walldiss:ci/separate-coverage
Open

ci: separate fast unit tests from coverage collection#4814
walldiss wants to merge 1 commit intocelestiaorg:mainfrom
walldiss:ci/separate-coverage

Conversation

@walldiss
Copy link
Member

@walldiss walldiss commented Mar 2, 2026

Summary

  • Adds test-unit-fast Makefile target: same as test-unit but without -covermode=atomic -coverprofile=coverage.txt
  • The matrix job (ubuntu + macOS) now runs test-unit-fast — this is the blocking gate for integration tests
  • Coverage collection moves to a separate ubuntu-only coverage job that runs in parallel and doesn't gate integration tests

Why this helps

-covermode=atomic instruments every memory access and adds ~25% overhead to the test run. Since macOS coverage is redundant (codecov uses Linux numbers), running full coverage on both platforms was pure waste. The fast test job still catches all failures on both platforms; coverage is collected once on Linux.

Add test-unit-fast Makefile target (no coverage flags) and run it on
the blocking matrix job (ubuntu + macOS). Move coverage collection to
a standalone ubuntu-only job that runs in parallel and doesn't gate
integration tests. Reduces the blocking test time by ~25% on both
platforms and eliminates redundant macOS coverage uploads to codecov.
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.72%. Comparing base (2469e7a) to head (c37b468).
⚠️ Report is 671 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4814      +/-   ##
==========================================
- Coverage   44.83%   35.72%   -9.11%     
==========================================
  Files         265      311      +46     
  Lines       14620    21442    +6822     
==========================================
+ Hits         6555     7661    +1106     
- Misses       7313    12787    +5474     
- Partials      752      994     +242     

☔ View full report in Codecov by Sentry.
📢 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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants