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 automerge race condition again #1952

Merged
merged 2 commits into from
Mar 19, 2021
Merged

Conversation

roryabraham
Copy link
Contributor

Details

Following up on #1945

That didn't quite work because by the time we went to check for an ongoing automerge PR, the automerge workflow run had not yet started. To solve that, just wait for a minute before checking for ongoing automerge PRs.

Fixed Issues

Fixes https://github.com/Expensify/Expensify/issues/155210

Tests

Retest #1938

@roryabraham roryabraham requested a review from a team as a code owner March 19, 2021 21:35
@roryabraham roryabraham self-assigned this Mar 19, 2021
@botify botify requested review from marcaaron and removed request for a team March 19, 2021 21:35
@roryabraham roryabraham changed the title Rory fix race condition again Fix automerge race condition again Mar 19, 2021
@AndrewGable
Copy link
Contributor

Is this a temporary or long term solution?

@roryabraham
Copy link
Contributor Author

I think this is a long term solution. If another PR is merged while we're sleeping in this workflow, then the StagingDeployCash will be locked, and we'll skip the preDeploy workflow. So the version can't be updated while this is sleeping (unless maybe if you added the lock label and then closed the StagingDeployCash in quick succession, which should never happen).

@AndrewGable
Copy link
Contributor

Alright, let's give it a shot!

@AndrewGable AndrewGable merged commit 30ea57d into master Mar 19, 2021
@AndrewGable AndrewGable deleted the Rory-FixRaceConditionAgain branch March 19, 2021 22:30
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants