Repository navigation
ci: Hoist continue-on-error to job - #37
Conversation
📝 WalkthroughWalkthroughThis pull request updates the CI workflow configuration in Changes
Sequence Diagram(s)sequenceDiagram
participant Trigger as Commit/Push
participant Workflow as CI Workflow
participant UnitTests as unit_tests Job
participant TestStep as Run Tests With Coverage
participant CoverageUpload as Upload Coverage
Trigger->>Workflow: Push commit to repository
Workflow->>UnitTests: Start unit_tests job with Dart SDK matrix
UnitTests->>TestStep: Execute tests (without continue-on-error)
UnitTests->>CoverageUpload: Trigger upload of coverage (always invoked)
Possibly related PRs
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
This is to rectify a false claim I made previously: #36 (comment) continue_on_error behaviour differs on steps vs. jobs |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #37 +/- ##
=======================================
Coverage 81.30% 81.30%
=======================================
Files 70 70
Lines 2621 2621
Branches 1119 1119
=======================================
Hits 2131 2131
Misses 490 490 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e027895 to
a13e77c
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai full |
|
@nielsenko I'll perform a full review of all changes in this PR. ✅ Actions performedFull review triggered. |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/dart-tests.yaml (1)
85-85: Quote matrix string values for consistency
To ensure consistent YAML parsing and clarity, consider quoting the string valuesstableandbetain thedart_sdkmatrix. For example:- dart_sdk: ["3.3.0", stable, beta] # env context not available for strategy + dart_sdk: ["3.3.0", "stable", "beta"] # env context not available for strategyThis small nitpick could prevent any potential interpretation issues.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/dart-tests.yaml(3 hunks)
🔇 Additional comments (3)
.github/workflows/dart-tests.yaml (3)
24-26: Clarify Dart SDK strategy comment
The expanded comments clearly explain why theenv.LOWEST_DART_SDKvalue cannot be used at the job level due to context limitations. This added context is helpful.
81-81: Hoist continue-on-error at job level
Thecontinue-on-error: ${{ matrix.dart_sdk != '3.3.0' }}setting now correctly applies at the job level. This ensures that for Dart SDK versions other than3.3.0the errors won’t fail the entire workflow while still marking the job as failed, which aligns with the PR objective.
115-115: Ensure coverage upload irrespective of test failures
The new conditionif: ${{ !cancelled() }}in theUpload Coveragestep guarantees that coverage reports are uploaded regardless of test errors, as intended by the PR objectives. This is a valid and useful change.
|
@SandPod While working on this I learned that you cannot use the env context outside of a step. I'm not sure I understand/agree with the why, but it is what it is. We could consider moving the |
We could add it there if you would like, but It might be a bit implicit to the running pipe? Might be better to have it hardcoded in the action. |
Move continue-on-error clause to job instead of step.
If continue-on-error is set to true on a job, then a job won't fail the workflow, but will still be marked red, on failure.
This is not the case for steps.
Also ensures we upload coverage even if there are test failures.
Summary by CodeRabbit