Skip to content

fix(site-deploy): drop job-level concurrency — deadlocks callers holding their own group - #51

Merged
cpitzi merged 1 commit into
mainfrom
fix/site-deploy-concurrency
Aug 17, 2026
Merged

fix(site-deploy): drop job-level concurrency — deadlocks callers holding their own group#51
cpitzi merged 1 commit into
mainfrom
fix/site-deploy-concurrency

Conversation

@cpitzi

@cpitzi cpitzi commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The first live deploy through site-deploy.yml@v1.1.0 failed in 0 seconds with:

Canceling since a deadlock was detected for concurrency group: 'deploy-main' between a top level workflow and 'deploy / deploy'

Mechanism: the reusable's job hardcoded concurrency: { group: deploy-main }. Every site caller holds a workflow-level deploy-main group of its own (correctly — a caller serializing its deploys is caller policy). The caller's workflow takes the lock, the called job then waits on the same group name, and GitHub detects the parent-child deadlock and cancels the run. (site-lentago-dev run 32057853117; the site kept serving — ECS never rolls unless a deploy succeeds — but the deploy pipe on main was dead until this fix.)

Fix: remove the job-level concurrency from the reusable entirely, with a comment explaining why it must not come back. Serialization policy belongs to the caller; a library workflow imposing its own lock can only collide with it.

Also bumps the internal render-claude-summary refs to v1.1.1 per RELEASING.md step 2, since this commit is the v1.1.1 tag target. actionlint passes on the changed workflow.

Process note for the record: this bug was invisible to every static check — actionlint clean, inputs validated, tag resolved — and appeared only on the first real invocation. It is exactly why the caller migration is staged one site at a time: the blast radius was one repo's deploy pipe for a few minutes, not three.

…hat hold their own group

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
@cpitzi
cpitzi merged commit 2728da0 into main Aug 17, 2026
1 check passed
@cpitzi
cpitzi deleted the fix/site-deploy-concurrency branch August 17, 2026 19:05
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.

1 participant