Repository navigation
Update agent workflow concurrency - #7
Conversation
Co-authored-by: kenorb <kenorb@users.noreply.github.com>
Reviewer's GuideAligns workflow concurrency behavior for the opencode and cogni-ai-agent workflows so that runs on the same PR/branch are serialized while default-branch runs can execute in parallel, using a shared, more robust concurrency-group expression. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
/co Fix git conflicts, opencode.yml was removed from upstream. |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In
cogni-ai-agent.yml, the newconcurrencyblock appears to be nested underon:rather than at the workflow top level (like inopencode.yml); it should be moved to align withon/jobsor the workflow will not parse correctly. - Consider adding a brief note in the
cogni-ai-agentconcurrency comment that this logic assumes the workflow is triggered only by issue/PR-related events or branches (and will fall back togithub.run_idotherwise), so future trigger changes don’t accidentally break grouping assumptions.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `cogni-ai-agent.yml`, the new `concurrency` block appears to be nested under `on:` rather than at the workflow top level (like in `opencode.yml`); it should be moved to align with `on`/`jobs` or the workflow will not parse correctly.
- Consider adding a brief note in the `cogni-ai-agent` concurrency comment that this logic assumes the workflow is triggered only by issue/PR-related events or branches (and will fall back to `github.run_id` otherwise), so future trigger changes don’t accidentally break grouping assumptions.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
…nd updated cogni-ai-agent.yml concurrency logic.
|
I've resolved the git conflicts by merging the new |

I've updated the
concurrencyconfiguration for the agent workflows in the current repository to match the advanced logic used in the example repository. This ensures that concurrent runs on the same branch or pull request are queued (avoiding push conflicts), while runs on the default branch can proceed in parallel as they create unique feature branches.Changes Summary
opencode.yml: Replaced the basic concurrency group with a more robust one that correctly identifies PR numbers from issue comments and allows parallel runs on the default branch by usinggithub.run_id.cogni-ai-agent.yml: Added the same advanced concurrency configuration (prefixed withcogni-ai-agent-) which was previously missing.New Concurrency Configuration
The updated todo list:
opencode.ymlwith advanced concurrency configurationcogni-ai-agent.ymlTriggered by workflow_dispatch
opencode session | github run