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 possible race condition in deployment actions #1679

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

mvandenburgh
Copy link
Member

We don't enforce any concurrency rule on the github actions that deploy our Django app to Heroku. This opens us up to potential issues, such as a scenario where an older deploy job ends up running after a newer job, causing the older version of the app to "overwrite" the newer one on Heroku.

@mvandenburgh mvandenburgh merged commit 953ccbe into master Oct 3, 2023
9 checks passed
@mvandenburgh mvandenburgh deleted the fix-deploy-actions branch October 3, 2023 18:00
@waxlamp
Copy link
Member

waxlamp commented Oct 4, 2023

Neat. @mvandenburgh how did you know to fix this problem?

@mvandenburgh
Copy link
Member Author

Neat. @mvandenburgh how did you know to fix this problem?

We ran into this issue on SMART, where we also use GitHub Actions for deployment. On that project deploys usually take about 30 mins, so this issue was somewhat common since merging multiple PRs in the same 30 minute window would potentially cause it to happen.

@dandibot
Copy link
Member

dandibot commented Oct 4, 2023

🚀 PR was released in v0.3.54 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Oct 4, 2023
waxlamp added a commit that referenced this pull request Oct 5, 2023
After #1679, the staging deploy that occurs during a release merge gets interrupted by a second staging deploy triggered by `auto`'s push to master containing the updated `CHANGELOG.md`.

This PR prevents that second deploy from running, avoiding a spurious deploy failure that happens when the first deploy is canceled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants