Skip to content

Warn when workflow dispatches share conclusion concurrency - #55836

Merged
pelikhan merged 7 commits into
mainfrom
copilot/warn-workflow-dispatch-no-job-discriminator
Aug 26, 2026
Merged

Warn when workflow dispatches share conclusion concurrency#55836
pelikhan merged 7 commits into
mainfrom
copilot/warn-workflow-dispatch-no-job-discriminator

Conversation

Copilot AI commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

workflow_dispatch fan-out silently serializes generated conclusion jobs when concurrency.job-discriminator is omitted, reducing throughput while runs remain green.

  • Compiler warning

    • Warn when a workflow includes workflow_dispatch without a job discriminator.

    • Explain that dispatches share one conclusion concurrency group.

    • Recommend a per-run discriminator:

      concurrency:
        job-discriminator: ${{ github.run_id }}
  • Coverage

    • Cover dispatch inputs, mixed triggers, configured discriminators, and non-dispatch workflows.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 11 AIC · ⌖ 8.12 AIC · ⊞ 8.7K ·
Comment /souschef to run again


Run: https://github.com/github/gh-aw/actions/runs/32897609333

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 14.9 AIC · ⌖ 8.16 AIC · ⊞ 8.7K ·
Comment /souschef to run again


Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 20.8 AIC · ⌖ 8.13 AIC · ⊞ 8.7K ·
Comment /souschef to run again

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Warn when a workflow_dispatch workflow has no job-discriminator Warn when workflow dispatches share conclusion concurrency Aug 25, 2026
Copilot AI requested a review from pelikhan August 25, 2026 17:57
@pelikhan
pelikhan marked this pull request as ready for review August 25, 2026 20:06
Copilot AI balanced review requested due to automatic review settings August 25, 2026 20:06
Comment thread pkg/workflow/compiler_validators.go Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds compiler diagnostics for shared conclusion-job concurrency in manually dispatched workflows.

Changes:

  • Emits an actionable missing-discriminator warning.
  • Adds trigger and discriminator test cases.
Show a summary per file
File Description
pkg/workflow/compiler_validators.go Adds the concurrency warning.
pkg/workflow/workflow_dispatch_concurrency_warning_test.go Tests warning conditions.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread pkg/workflow/compiler_validators.go Outdated
}

func (c *Compiler) emitGeneralToolWarnings(workflowData *WorkflowData, markdownPath string) {
if strings.Contains(workflowData.On, "workflow_dispatch") && workflowData.ConcurrencyJobDiscriminator == "" {
Comment thread pkg/workflow/compiler_validators.go Outdated
}

func (c *Compiler) emitGeneralToolWarnings(workflowData *WorkflowData, markdownPath string) {
if strings.Contains(workflowData.On, "workflow_dispatch") && workflowData.ConcurrencyJobDiscriminator == "" {
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan August 25, 2026 20:26
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

gh-aw-pr-sous-chef
@copilot PR Sous Chef triage: this PR still needs a forward-progress pass before maintainer investigation is likely to be productive.

Please do one focused follow-up pass:

  • address the unresolved Copilot review feedback in the existing review threads and push the fixes
  • refresh the branch if needed and use the pr-finisher skill before handing back for review

Run: https://github.com/github/gh-aw/actions/runs/32896118186

Generated by 👨🍳 PR Sous Chef

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 11 AIC · ⌖ 8.12 AIC · ⊞ 8.7K ·
Comment /souschef to run again

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot PR Sous Chef triage: this PR still needs a forward-progress pass before maintainer investigation is likely to be productive.

Please do one focused follow-up pass:

  • address the unresolved Copilot review feedback in the existing review threads and push the fixes
  • refresh the branch if needed and use the pr-finisher skill before handing back for review

Run: https://github.com/github/gh-aw/actions/runs/32897609333

Generated by 👨🍳 PR Sous Chef

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 14.9 AIC · ⌖ 8.16 AIC · ⊞ 8.7K ·
Comment /souschef to run again

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

Copilot AI commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

gh-aw-pr-sous-chef
@copilot PR Sous Chef triage: this PR still needs a forward-progress pass before maintainer investigation is likely to be productive.
...

Completed the focused follow-up in 51b1f54: the warning now requires configured safe outputs, with a no-safe-outputs regression case. The branch is refreshed from main, and PR-finisher validation passed (make fmt, make lint, make test, make recompile, and the final pre-push gate).

Copilot AI commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

@copilot PR Sous Chef triage: this PR still needs a forward-progress pass before maintainer investigation is likely to be productive.

Please do one focused follow-up pass:...

The unresolved feedback is already implemented on the current HEAD: a478d98 parses top-level workflow_dispatch inputs and covers nested values, while 51b1f54 gates the warning on configured safe outputs and adds the negative regression. The branch is current with the PR base, and the PR-finisher local validation passed. The remaining blocker is marking the three outdated review threads resolved; this environment does not expose a thread-resolution operation.

@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts on this branch.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

gh-aw-pr-sous-chef
@copilot PR Sous Chef triage: this PR has merge conflicts and still needs a forward-progress pass before maintainer investigation is likely to be productive.

Please do one focused follow-up pass:

  • run make merge-main to resolve the current merge conflicts on this branch
  • after the conflicts are resolved, rerun the relevant validation and use the pr-finisher skill before handing back for review

Run: https://github.com/github/gh-aw/actions/runs/32907942669

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 14.6 AIC · ⌖ 8.22 AIC · ⊞ 6.3K ·
Comment /souschef to run again

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

Copilot AI commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

gh-aw-pr-sous-chef
@copilot PR Sous Chef triage: this PR has merge conflicts and still needs a forward-progress pass before maintainer investigation is likely to be productive.
...

Ran make merge-main, resolved the validator conflict, and pushed true merge commit f86eac9. Post-merge lint, unit/full tests, and recompilation pass; all 294 workflows compile.

@copilot resolve the merge conflicts on this branch.

Resolved and pushed in merge commit f86eac9. The conflict retained the dispatch-input warning helper while accepting the upstream bounded-query removal; post-merge lint, unit/full tests, and recompilation pass.

@github-actions

Copy link
Copy Markdown
Contributor

Category: bug | Risk: medium | Score: 55/100 (impact 24/50, urgency 15/30, quality 16/20) | Action: batch_review | Batch: workflow-runtime

Generated by 🔧 PR Triage Agent · copilot · mai10 · 12.3 AIC · ⌖ 2.45 AIC · ⊞ 15.6K ·

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

gh-aw-pr-sous-chef
@copilot PR Sous Chef triage: this PR still needs a forward-progress pass before maintainer investigation is likely to be productive.

Please do one focused follow-up pass:

  • refresh the branch if needed and use the pr-finisher skill before handing back for review

Run: https://github.com/github/gh-aw/actions/runs/32949103424

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 20.8 AIC · ⌖ 8.13 AIC · ⊞ 8.7K ·
Comment /souschef to run again

Copilot AI commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

gh-aw-pr-sous-chef
@copilot PR Sous Chef triage: this PR still needs a forward-progress pass before maintainer investigation is likely to be productive.
...

The branch is already refreshed in merge commit b8478f5, whose second parent is the current base d846ab2. PR-finisher validation passes (make fmt, make lint, make test-unit, make test, and make recompile; all 294 workflows compile). The two remaining outdated Copilot threads are implemented but still need to be marked resolved.

@github-actions

Copy link
Copy Markdown
Contributor

Triage update: Category: bug | Risk: medium | Score: 54/100 (impact 24 + urgency 14 + quality 16) | Action: auto_merge | Batch: workflow-runtime

Generated by 🔧 PR Triage Agent · copilot · mai10 · 17.1 AIC · ⌖ 2.78 AIC · ⊞ 15.6K ·

@github-actions

Copy link
Copy Markdown
Contributor

Triage update: Category: bug | Risk: medium | Score: 54/100 (impact 24 + urgency 14 + quality 16) | Action: auto_merge | Batch: workflow-runtime

Generated by 🔧 PR Triage Agent · copilot · mai10 · 17.1 AIC · ⌖ 2.78 AIC · ⊞ 15.6K ·

@pelikhan
pelikhan merged commit 3b33e84 into main Aug 26, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/warn-workflow-dispatch-no-job-discriminator branch August 26, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warn when a workflow_dispatch workflow has no job-discriminator: the shared conclusion group silently caps fan-out

4 participants