docs(#5629): add reusable workflow carve-out for github.workflow in concurrency groups - #6443
Conversation
…rkflow in concurrency groups The concurrency groups section stated github.workflow should always be used as the workflow identifier. In reusable workflows (on: workflow_call), github.workflow resolves to the caller's name, not the reusable workflow's own name. Add an exception noting that reusable workflows must use hardcoded role-specific prefixes instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Shai Revivo <srevivo@redhat.com>
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
PR Summary by QodoDocs: clarify concurrency group naming for reusable workflows
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Site previewPreview: https://48123c34-site.fullsend-ai.workers.dev Commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Code Review by Qodo
1.
|
waynesun09
left a comment
There was a problem hiding this comment.
Automated multi-agent review pass (independent parallel reviewers, findings cross-checked against the current head and against actual in-repo workflow files before posting).
[MEDIUM] Opening rule (line 7) directly contradicts the new Exception (line 22), outside GitHub's inline-comment diff range so noting it here: line 7 states the absolute rule "Use ${{ github.workflow }} as the workflow identifier — never duplicate the workflow name as a hardcoded string prefix." The new Exception then requires exactly what this forbids for workflow_call workflows, with no cross-reference between the two. Suggestion: append "...except for workflow_call reusable workflows (see exception below)" to line 7.
Remaining findings filed as inline comments below.
…ll pattern Address review findings: narrow the exception to workflow_call-only workflows (hybrid workflows like e2e.yml/functional-tests.yml are not affected), show the full inputs.*-based concurrency pattern from reusable-code.yml, and cross-reference from the opening rule. Signed-off-by: Shai Revivo <srevivo@redhat.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Shai Revivo <srevivo@redhat.com>
|
@rh-hemartin can you merge? I don't have rights :-) |
Summary
docs/contributing/ci-workflows.mdnoting that reusable workflows (on: workflow_call) must use hardcoded role-specific prefixes instead of${{ github.workflow }}github.workflowresolves to the caller's name inworkflow_callcontext, so using it would produce incorrect concurrency scopingFixes #5629
Test plan
reusable-code.ymlusesfullsend-code-agent-, not${{ github.workflow }})🤖 Generated with Claude Code