You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: collect coverage with test_with_coverage to stop hanging test runs - #2247
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.
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.
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: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the Dart test jobs (mostly supabase_auth) that hang until the 20 minute timeout.
dart test --coverage-pathconnects 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 pinstest_api, so we can't take the test_core fix yet.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