Repository navigation
fix: move continue-on-error to specific test step in ingestion-service-test workflow - #4656
Conversation
…e-test workflow - Move continue-on-error from job level to 'Run tests' step level - This allows the job to fail properly while still allowing test failures to not block the workflow - Improves workflow reliability and error handling
Summary by CodeRabbit
WalkthroughThe ingestion-service-test GitHub Actions workflow was updated to remove job-level continue-on-error and add continue-on-error only to the "Run tests" step, altering failure handling so only that step can continue on error while other steps now fail the job. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Notes: Verify intended step name matches exactly, ensure downstream steps handle potential test failures correctly, and confirm desired notification/required-check behavior for the job. Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/ingestion-service-test.yml (1)
50-55: Make failure-tolerance configurable and surface failures in the Job Summary.Recommend: (a) gate continue-on-error behind an input so callers can toggle behavior; (b) add an explicit summary step so failures aren’t “silent green”; (c) consider a timeout to avoid hung test runs.
Apply this diff within the current step:
- - name: 'Run tests' - continue-on-error: true + - name: 'Run tests' + id: run_tests + timeout-minutes: 20 + continue-on-error: ${{ inputs.allow_test_failures }} run: | cd rudder-ingestion-svc pwd make test package=internal/gateway exclude='internal/gateway/.+' + + - name: Summarize test result + if: always() + run: | + if [ "${{ steps.run_tests.outcome }}" = "failure" ]; then + echo "Ingestion service tests failed but were allowed to continue (continue-on-error=true)." >> "$GITHUB_STEP_SUMMARY" + else + echo "Ingestion service tests passed." >> "$GITHUB_STEP_SUMMARY" + fiAnd add this input near the workflow_call inputs:
on: workflow_call: inputs: build_tag: required: true type: string + allow_test_failures: + required: false + type: boolean + default: true
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/ingestion-service-test.yml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Code Coverage
- GitHub Check: UT Tests
- GitHub Check: test_and_publish
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (go)
🔇 Additional comments (1)
.github/workflows/ingestion-service-test.yml (1)
50-51: Step-level continue-on-error is correctly scoped.This achieves the stated goal: other steps can fail the job; test failures won’t block it. Please confirm that downstream consumers are okay with the overall job appearing successful even when tests fail.
|
Allure Test reports for this run are available at:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4656 +/- ##
========================================
Coverage 91.78% 91.78%
========================================
Files 642 642
Lines 33974 33974
Branches 8037 8047 +10
========================================
Hits 31184 31184
+ Misses 2560 2538 -22
- Partials 230 252 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
…e-test workflow (#4656) - Move continue-on-error from job level to 'Run tests' step level - This allows the job to fail properly while still allowing test failures to not block the workflow - Improves workflow reliability and error handling



Description
This PR fixes the GitHub workflow configuration for the ingestion-service-test by moving the
continue-on-error: truefrom the job level to the specific 'Run tests' step level.Changes
continue-on-error: truefrom job level to the 'Run tests' step levelWhy this change?
Previously, having
continue-on-error: trueat the job level meant that the entire job would continue even if there were critical failures. By moving it to the specific test step, we ensure that:Testing