Skip to content

Add main build validation for release workflow #237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ezhang6811
Copy link
Contributor

@ezhang6811 ezhang6811 commented Aug 1, 2025

Issue #, if available:

Description of changes:
Context: our release build workflow should be blocked on unsuccessful release tests. Since the main build already runs on release branches and contains E2E tests, add a job that only proceeds after the tests are successful. If the most recent E2E test workflow is unsuccessful, the release workflow will exit unsuccessfully.

The original action used for this validation is lewagon/wait-on-check-action. However, the logic for this check requires all instances of the dependent workflow to be successful. So, I forked the repo and added this change so that only the most recent workflow result is considered. Thus, if the main build's E2E test initially fails, ensuing reruns if passing will allow the release workflow to proceed.

Testing:
Tested sample workflow containing this job that depends on another dummy workflow to pass. Outputs pasted below
Failing case 1 (no instances of workflow)
Failing case 2 (most recent workflow run failed)
Passing case (most recent workflow run succeeded)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ezhang6811 ezhang6811 requested a review from a team as a code owner August 1, 2025 19:26
runs-on: ubuntu-latest
steps:
- name: Wait for E2E test to succeed
uses: ezhang6811/wait-on-check-action@6275ea93847ce5952ab8ceeac8fb1111820cf44d
Copy link
Contributor

Choose a reason for hiding this comment

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

Avoid using personal accounts for production release workflows. You could move the logic from the custom action to here if possible?

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.

2 participants