Skip to content

Avoid Meta import labels from canceled triage runs - #60321

Merged
cortinico merged 1 commit into
react:mainfrom
cortinico:codex/fix-meta-import-cancelled-label
Nov 26, 2026
Merged

cortinico merged 1 commit into
react:mainfrom
cortinico:codex/fix-meta-import-cancelled-label

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:

PR #60320 changed only AGENTS.md, and its completed Muse run classified the change low. An earlier run was canceled by a newer labeled event, but the label job used always() and started with an empty RISK output. It applied Meta Review Required at 15:11:21; the later low-risk run deliberately does not remove existing labels.

Do not start the labeling job on a canceled run. Require a completed classifier to have emitted an explicit low, high, or unknown risk value, so missing output is never treated as an AI verdict. Explicit unknown still reaches the conservative label path even if the classifier step failed.

This prevents new false labels; it does not automatically remove the existing label on PR #60320.

Changelog:

[INTERNAL] [FIXED] - Avoid applying Meta Review Required from canceled PR triage runs.

Test Plan:

  • npx --yes prettier@3.10.0 --check .github/workflows/meta-import-risk.yml — passed.
  • ruby -e "require 'yaml'; YAML.load_file('.github/workflows/meta-import-risk.yml'); puts 'YAML valid'" — passed.
  • git diff --check — passed before commit.
  • Live cancellation behavior requires a run after this workflow is on main; not reproducible with local workflow parsing.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 26, 2026
@github-actions github-actions Bot added the Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. label Nov 26, 2026
@cortinico cortinico removed the Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. label Nov 26, 2026
@cortinico
cortinico marked this pull request as ready for review November 26, 2026 16:13
@cortinico
cortinico merged commit 3da2a77 into react:main Nov 26, 2026
91 of 92 checks passed
@cortinico
cortinico deleted the codex/fix-meta-import-cancelled-label branch November 26, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants