fix(ci): retry prod bootstrap when SWA update is in progress#8
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR hardens the production bootstrap workflow against a transient Azure Static Web Apps conflict. When Azure is still finishing a create or update operation for the production SWA, the workflow now waits and retries the infrastructure bootstrap instead of failing immediately.
The change mirrors the retry protection already added to the test bootstrap flow and keeps the fix intentionally narrow to the known SWA in-progress conflict.
Type of Change
Why This Change
Deploy Productionfailed during phase 1 even though OIDC, subscription access, and the production parameters were valid. The actual Azure error was a transient conflict:Cannot update Static Web App: A create or update operation is currently in progress for the static web app ...This indicates timing overlap on the existing production SWA resource, not a permanent infra definition problem. The correct fix is to retry the bootstrap after a short wait instead of treating the first conflict as fatal.
Validation
Validation notes:
npm run validate:workflowsDeploy Productionrun logzenova-web-prod-24325450826Conflictonswa-zenova-web-prodPublic Repo Safety Check
Deployment Impact
This affects:
production deployment
deploy-prod.ymlnow retries transient SWA in-progress conflicts during phase 1 bootstrapAzure infrastructure
GitHub workflow or release path
SEO behavior
redirect rules
Follow-up
Deploy Production