Skip to content

[ci-scan] Use blocking-clean-ci-optional for JIT/GC/PGO stress pipeline KBEs - #129568

Closed
kotlarmilos wants to merge 1 commit into
dotnet:mainfrom
kotlarmilos:ci-scan-optional-ci-label
Closed

kotlarmilos wants to merge 1 commit into
dotnet:mainfrom
kotlarmilos:ci-scan-optional-ci-label

Conversation

@kotlarmilos

Copy link
Copy Markdown
Member

What

The CI failure scanner (ci-failure-scan) applied blocking-clean-ci to every Known Build Error it files. That label blocks clean CI on the required runtime / runtime-extra-platforms gate. The JIT, GC and PGO stress-mode pipelines run as optional rolling jobs outside that gate, so their failures should be surfaced in Build Analysis without blocking clean CI — that is what blocking-clean-ci-optional is for.

Changes

  • Mark the 18 JIT / GC / PGO stress-mode pipelines optional-ci in the Step 2 pipeline table:

    jitstress (109), jitstressregs (110), jitstress2-jitstressregs (111), gcstress-gcstress (112), gcstress-extra (113), jitstress-isas-x86 (115), jitstress-isas-arm (116), jitstressregs-x86 (117), libraries-jitstressregs (118), libraries-jitstress2-jitstressregs (119), libraries-jitstress (138), ilasm (140), pgo (144), libraries-pgo (145), jitstress-random (159), libraries-jitstress-random (160), pgostress (230), jitstress-isas-avx512 (235).

  • Add a KBE label selection rule: blocking-clean-ci by default, blocking-clean-ci-optional for optional-ci pipelines; never both.

  • Allow blocking-clean-ci-optional in the workflow's allowed-labels (and the compiled lock's allowed_labels constraint).

  • Route the leg-level and Branch A emission steps and the shared create-kbe.instructions.md template through the selection rule.

All other pipelines (e.g. outerloop, r2r, crossgen2, superpmi-*, Fuzzlyn, interpreter) keep blocking-clean-ci.

Notes

  • The lock change is limited to the allowed_labels constraint plus the recompiled frontmatter_hash; prose is runtime-imported so the rule/table edits need no lock regeneration.
  • blocking-clean-ci-optional is an existing dotnet/runtime label ("Blocking optional rolling runs").

Note

This PR was generated with assistance from GitHub Copilot.

…ional

The CI failure scanner labelled every KBE blocking-clean-ci, which blocks
clean CI on the required runtime / runtime-extra-platforms gate. The JIT,
GC and PGO stress-mode pipelines run as optional rolling jobs outside that
gate, so their failures should not block clean CI.

Mark those 18 pipelines optional-ci in the Step 2 table, add a KBE label
selection rule, allow the blocking-clean-ci-optional label, and route the
shared KBE template and emission steps through the selection rule.

Co-authored-by: Copilot <[email protected]>
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

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

This PR updates the ci-failure-scan agentic workflow’s KBE labeling guidance and constraints so that failures from optional rolling outer-loop pipelines (not part of the required runtime / runtime-extra-platforms gate) can be filed without blocking clean CI.

Changes:

  • Expands safe-outputs label allowlist to include blocking-clean-ci-optional (and mirrors that in the compiled lock file constraints).
  • Marks specific pipeline table entries as optional-ci and adds a “KBE label selection” rule describing when to use blocking-clean-ci vs blocking-clean-ci-optional.
  • Updates shared KBE template instructions to reference the new label selection behavior.
Show a summary per file
File Description
.github/workflows/shared/create-kbe.instructions.md Adjusts the shared KBE template guidance to allow blocking-clean-ci-optional for optional rolling pipelines.
.github/workflows/ci-failure-scan.md Updates workflow instructions: pipeline table notes (optional-ci), label allowlist, and label-selection guidance for KBEs.
.github/workflows/ci-failure-scan.lock.yml Updates compiled workflow constraints to allow blocking-clean-ci-optional (safe-outputs allowed labels + handler config).

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 2


- `Known Build Error`
- `blocking-clean-ci`
- `blocking-clean-ci` — or `blocking-clean-ci-optional` when the failure comes from an optional rolling pipeline outside the required `runtime` / `runtime-extra-platforms` gate (the JIT / GC / PGO stress-mode pipelines marked `optional-ci` in the scanner's pipeline table). Apply exactly one of the two.
Every KBE gets `Known Build Error` plus exactly one blocking label:

- `blocking-clean-ci` by default — the failing pipeline is part of the required `runtime` / `runtime-extra-platforms` gate, so the failure must block clean CI.
- `blocking-clean-ci-optional` when the failing pipeline's row above is marked `optional-ci` in its Notes. These are the JIT / GC / PGO stress-mode pipelines (defs 109, 110, 111, 112, 113, 115, 116, 117, 118, 119, 138, 140, 144, 145, 159, 160, 230, 235), which run as optional rolling jobs outside the required gate; their failures should surface in Build Analysis without blocking clean CI.
@kotlarmilos

Copy link
Copy Markdown
Member Author

Note

This content was generated with assistance from GitHub Copilot.

Superseded by #129569, which combines this change with the related ci-scan update into a single PR.

@kotlarmilos
kotlarmilos deleted the ci-scan-optional-ci-label branch June 18, 2026 08:54
kotlarmilos added a commit that referenced this pull request Jun 18, 2026
…ne KBEs (#129569)

Updates the `ci-failure-scan` agentic workflow so JIT/GC/PGO
stress-pipeline KBEs no longer block clean CI on the required gate.

## Use `blocking-clean-ci-optional` for stress-pipeline KBEs

The scanner labelled every KBE `blocking-clean-ci`, which blocks clean
CI on the required `runtime` / `runtime-extra-platforms` gate. The JIT,
GC and PGO stress-mode pipelines run as optional rolling jobs outside
that gate, so their failures should surface in Build Analysis without
blocking clean CI.

- Mark these 18 pipelines `optional-ci` in the Step 2 table: `jitstress`
(109), `jitstressregs` (110), `jitstress2-jitstressregs` (111),
`gcstress-gcstress` (112), `gcstress-extra` (113), `jitstress-isas-x86`
(115), `jitstress-isas-arm` (116), `jitstressregs-x86` (117),
`libraries-jitstressregs` (118), `libraries-jitstress2-jitstressregs`
(119), `libraries-jitstress` (138), `ilasm` (140), `pgo` (144),
`libraries-pgo` (145), `jitstress-random` (159),
`libraries-jitstress-random` (160), `pgostress` (230),
`jitstress-isas-avx512` (235).
- Add a **KBE label selection** rule: `blocking-clean-ci` by default,
`blocking-clean-ci-optional` for `optional-ci` pipelines; never both.
- **Required-gate severity wins.** Cross-definition dedup gets an
escalation exception: when a signature already filed as
`blocking-clean-ci-optional` recurs in a required-gate pipeline, file a
separate `blocking-clean-ci` KBE instead of skipping it as a dup, so a
required-gate failure is never represented only by an optional KBE
(addresses review feedback).
- Allow `blocking-clean-ci-optional` in `allowed-labels` (and the
compiled lock's `allowed_labels` constraint).
- Route the leg-level / Branch A emission steps and the shared
`create-kbe.instructions.md` template through the selection rule.

All other pipelines (`outerloop`, `r2r`, `crossgen2`, `superpmi-replay`,
`superpmi-asmdiffs-checked-release`, interpreter) keep
`blocking-clean-ci`.

## Not included

- `superpmi-diffs` (152) was dropped: it only runs on PRs, never on
`main`, so the scan (which walks `main` builds) would never have a
qualifying build for it.
- `Fuzzlyn` (149) is intentionally not added — covered by a dedicated
Fuzzlyn JIT-analysis skill run separately.

## Notes

- The lock change is limited to the `allowed_labels` constraint plus the
recompiled `frontmatter_hash`; prose is runtime-imported, so the
table/rule edits need no lock regeneration.
- `blocking-clean-ci-optional` is an existing dotnet/runtime label
("Blocking optional rolling runs").
- Supersedes #129564 and #129568.

> [!NOTE]
> This PR was generated with assistance from GitHub Copilot.

---------

Co-authored-by: Milos Kotlar <[email protected]>
Co-authored-by: Copilot <[email protected]>
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
…ne KBEs (#129569)

Updates the `ci-failure-scan` agentic workflow so JIT/GC/PGO
stress-pipeline KBEs no longer block clean CI on the required gate.

## Use `blocking-clean-ci-optional` for stress-pipeline KBEs

The scanner labelled every KBE `blocking-clean-ci`, which blocks clean
CI on the required `runtime` / `runtime-extra-platforms` gate. The JIT,
GC and PGO stress-mode pipelines run as optional rolling jobs outside
that gate, so their failures should surface in Build Analysis without
blocking clean CI.

- Mark these 18 pipelines `optional-ci` in the Step 2 table: `jitstress`
(109), `jitstressregs` (110), `jitstress2-jitstressregs` (111),
`gcstress-gcstress` (112), `gcstress-extra` (113), `jitstress-isas-x86`
(115), `jitstress-isas-arm` (116), `jitstressregs-x86` (117),
`libraries-jitstressregs` (118), `libraries-jitstress2-jitstressregs`
(119), `libraries-jitstress` (138), `ilasm` (140), `pgo` (144),
`libraries-pgo` (145), `jitstress-random` (159),
`libraries-jitstress-random` (160), `pgostress` (230),
`jitstress-isas-avx512` (235).
- Add a **KBE label selection** rule: `blocking-clean-ci` by default,
`blocking-clean-ci-optional` for `optional-ci` pipelines; never both.
- **Required-gate severity wins.** Cross-definition dedup gets an
escalation exception: when a signature already filed as
`blocking-clean-ci-optional` recurs in a required-gate pipeline, file a
separate `blocking-clean-ci` KBE instead of skipping it as a dup, so a
required-gate failure is never represented only by an optional KBE
(addresses review feedback).
- Allow `blocking-clean-ci-optional` in `allowed-labels` (and the
compiled lock's `allowed_labels` constraint).
- Route the leg-level / Branch A emission steps and the shared
`create-kbe.instructions.md` template through the selection rule.

All other pipelines (`outerloop`, `r2r`, `crossgen2`, `superpmi-replay`,
`superpmi-asmdiffs-checked-release`, interpreter) keep
`blocking-clean-ci`.

## Not included

- `superpmi-diffs` (152) was dropped: it only runs on PRs, never on
`main`, so the scan (which walks `main` builds) would never have a
qualifying build for it.
- `Fuzzlyn` (149) is intentionally not added — covered by a dedicated
Fuzzlyn JIT-analysis skill run separately.

## Notes

- The lock change is limited to the `allowed_labels` constraint plus the
recompiled `frontmatter_hash`; prose is runtime-imported, so the
table/rule edits need no lock regeneration.
- `blocking-clean-ci-optional` is an existing dotnet/runtime label
("Blocking optional rolling runs").
- Supersedes #129564 and #129568.

> [!NOTE]
> This PR was generated with assistance from GitHub Copilot.

---------

Co-authored-by: Milos Kotlar <[email protected]>
Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants