Skip to content
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

Fix stale merge commit issue in private CI #2138

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

nbdd0121
Copy link
Contributor

This is a very rare condition where GitHub triggers the workflow a little bit too fast before the asynchronous mergeability check has completed (only an issue for pull_request_target because pull_request would block on mergeability check completion). To address this issue I added a polling loop to do a few retries.

An example run is here: https://github.com/nbdd0121/ibex/actions/runs/7728003457/job/21067811451 (it fails in a later step due to lack of secrets, but that's expected).

@nbdd0121 nbdd0121 requested review from GregAC and jwnrt January 31, 2024 15:11
@jwnrt
Copy link
Contributor

jwnrt commented Feb 1, 2024

How would you feel about bundling all of this into a GitHub action so it's encapsulated away from the workflow YAML?

@nbdd0121
Copy link
Contributor Author

nbdd0121 commented Feb 1, 2024

Do you mean create another lowRISC repo for this?

@jwnrt
Copy link
Contributor

jwnrt commented Feb 1, 2024

If they need another repo then possibly yeah, we can use it for OpenTitan too in that case. Alternatively I think some actions you can put in an actions/ directory in this repo.

Copy link
Collaborator

@GregAC GregAC left a comment

Choose a reason for hiding this comment

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

Approving and merging to fix CI issues. We can refactor to address the suggestions from @jwnrt in a follow-up

@GregAC GregAC added this pull request to the merge queue Feb 5, 2024
Merged via the queue into lowRISC:master with commit 4f96e54 Feb 5, 2024
11 checks passed
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.

None yet

3 participants