Commit 9ee45e6
Give each sweep its own Copilot concurrency group (#127)
By default the gh-aw compiler injects
`concurrency.group: "gh-aw-copilot-${{ github.workflow }}"`
on the agent job of every Copilot-engine workflow, with
`cancel-in-progress: true`. `github.workflow` resolves at
workflow_call time to the *caller's* workflow name, so when the
docs-quality-sweep orchestrator dispatches the seven sweeps in
parallel they all end up in the same group named
`gh-aw-copilot-Docs quality sweep`. As each agent job queues, the
one currently running gets cancelled with annotation
`Canceling since a higher priority waiting request for
gh-aw-copilot-Docs quality sweep exists`.
Override this per-source via `engine.concurrency` (documented at
https://github.github.com/gh-aw/reference/concurrency/) so each
sweep's agent job lands in its own group keyed on its own slug
plus `github.run_id`. The seven groups are now mutually
non-overlapping and each is also distinct across runs.
Verified by recompiling and inspecting the lock files: each
contains its own
`group: "gh-aw-copilot-docs-<slug>-sweep-${{ github.run_id }}"`,
and none of them keep the default
`"gh-aw-copilot-${{ github.workflow }}"`.
Refs the cancellation observed in
elastic/docs-content-internal/actions/runs/25368098299 (5 of 7
agent jobs cancelled within 50s of each other; only `typos`
finished because its agent step was short enough to win the race).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d124df8 commit 9ee45e6
14 files changed
Lines changed: 119 additions & 98 deletions
File tree
- .github/workflows
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
0 commit comments