Skip to content

ci: Add workflow_dispatch to e2e workflows for manual re-runs#21594

Open
AlexVulaj wants to merge 1 commit into
masterfrom
add-workflow-dispatch-to-e2e
Open

ci: Add workflow_dispatch to e2e workflows for manual re-runs#21594
AlexVulaj wants to merge 1 commit into
masterfrom
add-workflow-dispatch-to-e2e

Conversation

@AlexVulaj

Copy link
Copy Markdown
Contributor

Description

Adds workflow_dispatch triggers to individual e2e test workflows so they can be manually re-run from the Actions tab without waiting for the full e2e-dispatch pipeline to finish. Changes if: inputs.should-run to if: inputs.should-run != false so manual triggers (where should-run is null) still execute.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

CI-only change. The workflow_dispatch trigger adds a manual "Run workflow" button in the Actions tab. The != false condition is equivalent to the previous behavior when called from e2e-dispatch (where should-run is explicitly true or false) and additionally allows runs when should-run is null (manual dispatch).

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 472b7eb7-d573-4164-aa3e-433c335b5aa7

📥 Commits

Reviewing files that changed from the base of the PR and between b027b5a and 25dfb3f.

📒 Files selected for processing (4)
  • .github/workflows/e2e-byodb-test.yaml
  • .github/workflows/e2e-db-backup-restore-test.yaml
  • .github/workflows/e2e-gke-upgrade-tests.yaml
  • .github/workflows/e2e-nongroovy-tests.yaml
🚧 Files skipped from review as they are similar to previous changes (3)
  • .github/workflows/e2e-db-backup-restore-test.yaml
  • .github/workflows/e2e-byodb-test.yaml
  • .github/workflows/e2e-gke-upgrade-tests.yaml

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Enabled manual runs for multiple end-to-end test workflows via workflow_dispatch, including a required tag input to select what to test.
  • Bug Fixes
    • Updated test job execution conditions so they run on manual triggers and scheduled runs, while still honoring explicit “should-run” settings to avoid accidental skips.

Walkthrough

Four GitHub Actions e2e workflows now accept manual workflow_dispatch runs with a required tag input, and their job conditions were updated so those manual runs execute the target jobs.

Changes

Workflow dispatch support

Layer / File(s) Summary
manual trigger inputs
.github/workflows/e2e-byodb-test.yaml, .github/workflows/e2e-db-backup-restore-test.yaml, .github/workflows/e2e-gke-upgrade-tests.yaml, .github/workflows/e2e-nongroovy-tests.yaml
Adds workflow_dispatch triggers with required tag inputs to all four workflows.
job gating updates
.github/workflows/e2e-byodb-test.yaml, .github/workflows/e2e-db-backup-restore-test.yaml, .github/workflows/e2e-gke-upgrade-tests.yaml, .github/workflows/e2e-nongroovy-tests.yaml
Updates the job if conditions so manual dispatch events run the jobs alongside the existing should-run checks.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: adding workflow_dispatch support for manual e2e workflow reruns.
Description check ✅ Passed The description matches the template sections and provides a clear summary plus validation and documentation status.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-workflow-dispatch-to-e2e

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.

@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: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/e2e-byodb-test.yaml:
- Line 31: The job condition using inputs.should-run is ambiguous and can
unintentionally skip workflow_dispatch executions; update the workflow logic to
make the dispatch behavior explicit. Adjust the conditional on the affected job
in the e2e-byodb-test workflow to guard for workflow_dispatch separately, or
define should-run with a default so its value is always clear, and keep the
check aligned with the job-level if expression.

In @.github/workflows/e2e-db-backup-restore-test.yaml:
- Line 31: The job guard in the workflow is checking inputs.should-run, but that
input is not defined for workflow_dispatch, so manual runs skip the job. Update
the workflow definition to declare should-run under workflow_dispatch with a
default value, or change the if condition in the affected job to use a guard
that works when the input is unset. Use the job’s existing if condition and the
workflow_dispatch inputs block as the places to fix this.

In @.github/workflows/e2e-gke-upgrade-tests.yaml:
- Line 33: The upgrade-test jobs are being skipped on manual runs because
`inputs.should-run != false` is false when the input is unset. Update the
workflow’s `workflow_dispatch` configuration to define `should-run` with a
default of true, or change the job guard to explicitly handle an empty input,
and apply the fix consistently across the relevant job conditions in the
workflow.

In @.github/workflows/e2e-nongroovy-tests.yaml:
- Line 31: The e2e-nongroovy-tests workflow job condition is using a loose
comparison on inputs.should-run, which causes manual workflow_dispatch runs to
be skipped when the input is unset. Update the job’s if expression to explicitly
check for the expected string value (for example, against 'true') or define the
workflow_dispatch input in the workflow so the condition in the job definition
evaluates correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 0ab67a00-81df-4c8d-8ff2-1639ea6c3e2c

📥 Commits

Reviewing files that changed from the base of the PR and between 3b641b6 and b027b5a.

📒 Files selected for processing (4)
  • .github/workflows/e2e-byodb-test.yaml
  • .github/workflows/e2e-db-backup-restore-test.yaml
  • .github/workflows/e2e-gke-upgrade-tests.yaml
  • .github/workflows/e2e-nongroovy-tests.yaml

Comment thread .github/workflows/e2e-byodb-test.yaml Outdated
Comment thread .github/workflows/e2e-db-backup-restore-test.yaml Outdated
Comment thread .github/workflows/e2e-gke-upgrade-tests.yaml Outdated
Comment thread .github/workflows/e2e-nongroovy-tests.yaml Outdated
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.33%. Comparing base (3b641b6) to head (25dfb3f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21594      +/-   ##
==========================================
- Coverage   50.37%   50.33%   -0.05%     
==========================================
  Files        2844     2844              
  Lines      218476   218476              
==========================================
- Hits       110054   109964      -90     
- Misses     100437   100510      +73     
- Partials     7985     8002      +17     
Flag Coverage Δ
go-unit-tests 50.33% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit 25dfb3f. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.12.x-406-g25dfb3fafd

@AlexVulaj AlexVulaj force-pushed the add-workflow-dispatch-to-e2e branch from b027b5a to 25dfb3f Compare July 7, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant