GeezerVison is showing github.com — CI: issue/issue_comment workflows share one concurrency group — a burst of issues or bot commands silently drops the pending run · Issue #74 · developing-today-forks/opencode
CI: issue/issue_comment workflows share one concurrency group — a burst of issues or bot commands silently drops the pending run #74
Description
Problem
Four workflows that react to issues / issue_comment events all declare the same concurrency shape (verified on main 005672f9b3, cross-checked via the GitHub API):
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
.github/workflows/duplicate-issues.yml:8-10 — on: issues: [opened, edited]
.github/workflows/triage.yml:8-10 — on: issues: [opened]
.github/workflows/opencode.yml:8-10 — on: issue_comment: [created] (+ pull_request_review_comment)
.github/workflows/review.yml:8-10 — on: issue_comment: [created]
For issues and issue_comment events, github.ref is always the default branch (refs/heads/main) — see GitHub's event documentation for GITHUB_REF. So every invocation of each of these workflows lands in one repo-wide group, regardless of which issue or comment triggered it.
GitHub's concurrency semantics (documented): a group holds at most one running run and one pending run; with the default queue behaviour, when a run is running and another is pending, a newly queued run replaces (cancels) the pending one. cancel-in-progress: false protects only the run already executing — it does not save the pending one.
Why it matters
The pull_request_review_comment leg of opencode.yml is not affected (its ref is refs/pull/<n>/merge, distinct per PR).
Evidence
- Workflow files at the lines above on main
005672f9b3 (read locally and re-read via gh api repos/developing-today/opencode/contents/.github/workflows/<file>?ref=main).
- In-repo correct precedents:
pr-standards.yml and pr-management.yml group by github.event.pull_request.number || github.ref; test.yml / check.yml use github.run_id for main pushes so runs never collapse.
Suggested fix (either direction)
- Group per target instead of per repo, e.g.
group: ${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number || github.ref }} for the four workflows, so unrelated issues/comments never share a group (mirrors the pr-standards pattern); runs for the same issue still serialize/cancel as today. Or:
- Keep repo-wide serialization but stop dropping work by adding
queue: max to these concurrency blocks.
Acceptance criteria
- Three
issues (or issue_comment) events fired in quick succession for three different issues all result in a completed run for each event — no pending run is silently replaced.
- Runs targeting the same issue keep today's mutual-exclusion behaviour.
- All four workflow files still parse as valid YAML and no other workflow's concurrency behaviour changes.
Metadata
Metadata
Development
No branches or pull requestsIssue actions