Skip to content

fix: move act concurrency to job level so comments can't cancel /dotbot - #6

Merged
wezell merged 2 commits into
mainfrom
fix/act-job-level-concurrency
Sep 29, 2026
Merged

wezell merged 2 commits into
mainfrom
fix/act-job-level-concurrency

Conversation

@sfreudenthaler

Copy link
Copy Markdown
Member

Refs dotCMS/core#37778 (bug write-up and test results).

Problem

The README's Act example and this repo's own .github/workflows/dotbot-act.yml set concurrency at the workflow level. Every issue comment and PR review comment starts the act workflow. The if: that skips non-/dotbot comments runs only after the run has joined the concurrency group. A group keeps at most one waiting run by default, and a newer run cancels it, even with cancel-in-progress: false. So an ordinary comment on a PR cancels a /dotbot request that's queued behind a running one, and nothing tells the user.

Fix

  • Move concurrency onto the act job, after its if:. A job skipped by if: never joins the group.
  • Add queue: max so back-to-back /dotbot requests stay queued instead of dropping all but the newest.

Applied to both the README example and .github/workflows/dotbot-act.yml.

Verified

Tested with workflow_dispatch probes on a private scratch repo:

Setup 1st (running) 2nd (waiting) 3rd (job skipped)
Workflow-level (current) success cancelled skipped
Job-level success success skipped
Job-level + queue: max, 3 real runs back to back success success success

GitHub's docs only show queue at workflow level, but it validates and works at job level.

Same fix: dotCMS/core#37779, dotCMS/dotusage#102, dotCMS/ovh-k8s-cluster.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CGsrfnbtzU67HVPxkQCsZT

Every comment starts the act workflow, and a workflow-level concurrency
group is joined even when the act job is skipped, so an ordinary comment
cancelled a waiting /dotbot run. Move concurrency onto the job in both the
README example and this repo's dotbot-act.yml, and add queue: max so
back-to-back /dotbot requests stay queued. Refs dotCMS/core#37778.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CGsrfnbtzU67HVPxkQCsZT
Add information about automatic PR approval using the DOTBOT_GITHUB_USER_PAT secret.
@github-actions

Copy link
Copy Markdown

dotbot code review:

  • Reviewer: meta/muse-spark-1.3 (medium)
  • Overall: patch is correct
  • New findings this run: 0
  • Prior unresolved dotbot findings still relevant: 0
  • Active findings total: 0

Incremental change adds only a blank line in README.md with no functional impact.

Tip: comment with "/dotbot address comments" to attempt automated fixes for unresolved review threads.

reviewed by dotbot · meta/muse-spark-1.3 · medium

@github-actions

Copy link
Copy Markdown

dotbot code review:

  • Reviewer: ~z-ai/glm-latest (medium)
  • Overall: patch is correct
  • New findings this run: 0
  • Prior unresolved dotbot findings still relevant: 0
  • Active findings total: 0

The only change since the previously reviewed commit is an extra blank line in README.md, which is purely cosmetic and introduces no bugs.

Tip: comment with "/dotbot address comments" to attempt automated fixes for unresolved review threads.

reviewed by dotbot · ~z-ai/glm-latest · medium

@dotCMS-Machine-User dotCMS-Machine-User left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ dotbot review: all reviewer models (meta/muse-spark-1.3, ~z-ai/glm-latest) agree — patch is correct.

approved automatically by dotbot

@wezell
wezell merged commit 2bbe392 into main Sep 29, 2026
3 of 4 checks passed
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.

3 participants