Skip to content

fix: move continue-on-error to specific test step in ingestion-service-test workflow - #4656

Merged
lokey merged 1 commit into
developfrom
fix/ingestion-service-test-workflow
Sep 22, 2025
Merged

lokey merged 1 commit into
developfrom
fix/ingestion-service-test-workflow

Conversation

@koladilip

Copy link
Copy Markdown
Contributor

Description

This PR fixes the GitHub workflow configuration for the ingestion-service-test by moving the continue-on-error: true from the job level to the specific 'Run tests' step level.

Changes

  • Moved continue-on-error: true from job level to the '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

Why this change?

Previously, having continue-on-error: true at 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:

  1. The job can fail properly for critical issues
  2. Test failures don't block the workflow unnecessarily
  3. Better error handling and debugging capabilities

Testing

  • Workflow syntax validated
  • Changes tested locally

…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
@koladilip
koladilip requested a review from a team September 22, 2025 04:39
@coderabbitai

coderabbitai Bot commented Sep 22, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Refined CI test workflow error handling: the job now fails on non-test step errors, while the test execution step can proceed without failing the job. This improves clarity and reliability of CI results by surfacing setup and environment issues immediately, while still collecting test outcomes for reporting without blocking the pipeline unnecessarily.

Walkthrough

The 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

Cohort / File(s) Summary of Changes
Workflow: ingestion service CI
\.github/workflows/ingestion-service-test.yml
Removed job-level continue-on-error: true; added continue-on-error: true to the "Run tests" step, making failure-tolerance step-scoped instead of job-scoped.

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

  • sivashanmukh
  • krishna2020
  • maheshkutty

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description explains the change, motivation, and testing performed, which covers the core technical details, but it does not follow the repository's required template exactly. The required "What is the related Linear task? Resolves INT-XXX" line is missing and the explicit template sub-sections (the developer checklist and the prescribed headings/fields) are not present or populated. Because the repository template is specified as required, the description does not fully conform to expectations. Please update the PR body to match the repository template by adding the "Resolves INT-XXX" Linear task (or explicitly mark it N/A), include the "Please explain the objectives" subsection and the template subheadings (or mark them N/A), and complete or annotate the developer checklist items; after these fields are added the description will conform and this check should pass. Keep the existing explanation, testing notes, and rationale intact when moving content into the template.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title clearly and concisely describes the primary change—moving continue-on-error to a specific test step in the ingestion-service-test workflow—and uses a conventional "fix:" prefix. It is focused, relevant to the changeset, and readable for teammates scanning history. The title avoids noisy details and correctly highlights the most important change from the developer’s perspective.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/ingestion-service-test-workflow

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.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
+          fi

And 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

📥 Commits

Reviewing files that changed from the base of the PR and between 9712da1 and 3d79ddd.

📒 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.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Sep 22, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.78%. Comparing base (bde0785) to head (3d79ddd).
⚠️ Report is 5 commits behind head on develop.

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.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@lokey
lokey merged commit 8afe5e6 into develop Sep 22, 2025
@lokey
lokey deleted the fix/ingestion-service-test-workflow branch September 22, 2025 05:03
maheshkutty pushed a commit that referenced this pull request Sep 24, 2025
…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
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.

3 participants