Skip to content

ci: collect coverage with test_with_coverage to stop hanging test runs - #2247

Open
spydon wants to merge 1 commit into
mainfrom
lukasklingsbo/ci-coverage-hang
Open

spydon wants to merge 1 commit into
mainfrom
lukasklingsbo/ci-coverage-hang

Conversation

@spydon

@spydon spydon commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the Dart test jobs (mostly supabase_auth) that hang until the 20 minute timeout.

  • dart test --coverage-path connects to the VM service once per test file. When a connection is dropped the file fails to load, and test_core 0.6.20 leaks its isolate so the runner never exits. Flutter pins test_api, so we can't take the test_core fix yet.
  • Coverage is now collected with coverage:test_with_coverage, which uses a single connection. Reproduced locally: 4 of 5 runs of 80 trivial test files hung before, 0 of 8 after, with identical coverage for supabase_auth.

Summary by CodeRabbit

  • Chores
    • Updated automated test runs to generate separate coverage reports for unit and integration tests, then combine the results.
    • Backend integration tests continue to run separately with concurrency limited to one; failures are reported after all test groups finish.
    • Updated testing guidance with the current coverage workflow and a note about potential hangs with the previous coverage option.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The test workflow now uses the Dart coverage package for coverage-enabled runs, runs test groups through a shared wrapper, and combines per-group LCOV files. The testing instructions describe the updated commands and note a potential hang with dart test --coverage.

Changes: Coverage-aware test execution

Layer / File(s) Summary
Configure and run coverage-aware tests
.github/workflows/test.yml, AGENTS.md
The workflow activates coverage version 1.15.1 on stable runs and uses a wrapper to select coverage-enabled or standard test commands. Backend unit and integration test groups retain their test selection and sequential integration execution. Coverage aggregation uses coverage/*/lcov.info. The testing instructions describe the updated coverage workflow and its warning about dart test --coverage.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: grdsdev

Merge Risk: Minimal · up to bf6a8

This change moves CI coverage collection to a single-connection runner to stop hanging test jobs and updates the testing instructions to match. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the primary change: Dart test jobs now collect coverage with coverage:test_with_coverage instead of dart test --coverage, which the PR says stops hanging test runs. The workflow and AG…
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.
Full details: Title check

Explanation

The title names the primary change: Dart test jobs now collect coverage with coverage:test_with_coverage instead of dart test --coverage, which the PR says stops hanging test runs. The workflow and AGENTS.md changes both match this. The title is specific and concise, and it fits the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4e82a79 and bf6a8f0.

Files selected for processing: 2

  • .github/workflows/test.yml
  • AGENTS.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

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