Skip to content

[autorevert advisor] Treat a missing baseline as unknown, not green - #188313

Closed
izaitsevfb wants to merge 1 commit into
mainfrom
iz/advisor-missing-baseline
Closed

izaitsevfb wants to merge 1 commit into
mainfrom
iz/advisor-missing-baseline

Conversation

@izaitsevfb

Copy link
Copy Markdown
Contributor

Problem

Many CI jobs are periodic or ciflow-label-gated and do not run on every commit, so for a given failure signal the partition may contain no successful baseline at all (the job simply never ran on the merge base). The advisor prompt currently asserts as ground truth that "the signal transitioned from SUCCESS to FAILURE at the suspect commit" — but with no baseline, that transition was never observed. Combined with a plausible mechanism, this drives confident related verdicts on failures that are actually pre-existing.

Concrete case: the Triton 3.7.1→3.8 pin re-land (#188251). Label-gated ROCm-MI200 jobs had no merge-base run, so no baseline. The advisor reasoned "Triton drives ROCm codegen → related" at confidence 0.85–0.9 on several flex_attention failures (test_autocast_cuda_bfloat16, test_autocast_cuda_float32, test_invalid_block_size_cuda). Those exact tests were already failing on the same MI200 shards on an unrelated, non-Triton PR (#187164) whose tree predates the pin — i.e. pre-existing ROCm noise, not pin-caused.

Change (prompt-only)

  1. Qualify the premise: the extraction is ground truth that the signal fails at the suspect, but a SUCCESS→FAILURE transition is only established when the partition includes successful baseline events.
  2. Add Principle 3 — A missing baseline is not a green baseline: absence of a baseline is not evidence the suspect introduced the failure; check recent runs of the same job on trunk or neighbor PRs (via gh / hud.pytorch.org) before attributing; absent that evidence, a related resting on a plausible mechanism alone should be unsure.

Scoped to signals lacking a successful partition, so normal baselined trunk signals are unaffected.

cc @izaitsevfb

When a job is periodic / ciflow-label-gated it may not run on the merge
base, so the signal has no `successful` baseline. The prompt told the
advisor a SUCCESS->FAILURE transition occurred; combined with a plausible
mechanism that produced confident `related` verdicts on failures that were
actually pre-existing (e.g. label-gated ROCm jobs on the Triton 3.8 pin,
#188251). Qualify the premise and add Principle 3: a missing baseline is
not a green baseline; check recent runs of the same job on trunk/neighbor
PRs before attributing, and absent that evidence a `related` resting on a
plausible mechanism alone should be `unsure`.
@izaitsevfb
izaitsevfb requested a review from a team as a code owner June 26, 2026 23:14
@pytorch-bot

pytorch-bot Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/188313

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit edb2a5b with merge base be87874 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added ci-no-td Do not run TD on this PR topic: not user facing topic category labels Jun 26, 2026

@huydhn huydhn 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.

LGTM! Although I wonder why we don't improve this a bit further by asking the advisor to look back further into N commits before the baseline.

  • Extend the definition of the baseline into a group of [base commit + N commits before]
  • If the signal is really not there, treat it as unknown

Does the advisor has access to ClickHouse to find that information?

@izaitsevfb

Copy link
Copy Markdown
Contributor Author

Does the advisor has access to ClickHouse to find that information?

no, it doesn't. currently the baseline information is fed from the client (autorevert, dr.ci)

@izaitsevfb

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f 'wording change'

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…ytorch#188313)

## Problem

Many CI jobs are periodic or `ciflow`-label-gated and do not run on every commit, so for a given failure signal the partition may contain **no `successful` baseline** at all (the job simply never ran on the merge base). The advisor prompt currently asserts as ground truth that *"the signal transitioned from SUCCESS to FAILURE at the suspect commit"* — but with no baseline, that transition was never observed. Combined with a plausible mechanism, this drives confident `related` verdicts on failures that are actually pre-existing.

Concrete case: the Triton 3.7.1→3.8 pin re-land (pytorch#188251). Label-gated ROCm-MI200 jobs had no merge-base run, so no baseline. The advisor reasoned "Triton drives ROCm codegen → related" at confidence 0.85–0.9 on several flex_attention failures (`test_autocast_cuda_bfloat16`, `test_autocast_cuda_float32`, `test_invalid_block_size_cuda`). Those exact tests were already failing on the same MI200 shards on an unrelated, non-Triton PR (pytorch#187164) whose tree predates the pin — i.e. pre-existing ROCm noise, not pin-caused.

## Change (prompt-only)

1. Qualify the premise: the extraction is ground truth that the signal **fails** at the suspect, but a SUCCESS→FAILURE *transition* is only established when the partition includes `successful` baseline events.
2. Add **Principle 3 — A missing baseline is not a green baseline**: absence of a baseline is not evidence the suspect introduced the failure; check recent runs of the same job on trunk or neighbor PRs (via `gh` / hud.pytorch.org) before attributing; absent that evidence, a `related` resting on a plausible mechanism alone should be `unsure`.

Scoped to signals lacking a `successful` partition, so normal baselined trunk signals are unaffected.

Pull Request resolved: pytorch#188313
Approved by: https://github.com/huydhn
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…ytorch#188313)

## Problem

Many CI jobs are periodic or `ciflow`-label-gated and do not run on every commit, so for a given failure signal the partition may contain **no `successful` baseline** at all (the job simply never ran on the merge base). The advisor prompt currently asserts as ground truth that *"the signal transitioned from SUCCESS to FAILURE at the suspect commit"* — but with no baseline, that transition was never observed. Combined with a plausible mechanism, this drives confident `related` verdicts on failures that are actually pre-existing.

Concrete case: the Triton 3.7.1→3.8 pin re-land (pytorch#188251). Label-gated ROCm-MI200 jobs had no merge-base run, so no baseline. The advisor reasoned "Triton drives ROCm codegen → related" at confidence 0.85–0.9 on several flex_attention failures (`test_autocast_cuda_bfloat16`, `test_autocast_cuda_float32`, `test_invalid_block_size_cuda`). Those exact tests were already failing on the same MI200 shards on an unrelated, non-Triton PR (pytorch#187164) whose tree predates the pin — i.e. pre-existing ROCm noise, not pin-caused.

## Change (prompt-only)

1. Qualify the premise: the extraction is ground truth that the signal **fails** at the suspect, but a SUCCESS→FAILURE *transition* is only established when the partition includes `successful` baseline events.
2. Add **Principle 3 — A missing baseline is not a green baseline**: absence of a baseline is not evidence the suspect introduced the failure; check recent runs of the same job on trunk or neighbor PRs (via `gh` / hud.pytorch.org) before attributing; absent that evidence, a `related` resting on a plausible mechanism alone should be `unsure`.

Scoped to signals lacking a `successful` partition, so normal baselined trunk signals are unaffected.

Pull Request resolved: pytorch#188313
Approved by: https://github.com/huydhn
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…ytorch#188313)

## Problem

Many CI jobs are periodic or `ciflow`-label-gated and do not run on every commit, so for a given failure signal the partition may contain **no `successful` baseline** at all (the job simply never ran on the merge base). The advisor prompt currently asserts as ground truth that *"the signal transitioned from SUCCESS to FAILURE at the suspect commit"* — but with no baseline, that transition was never observed. Combined with a plausible mechanism, this drives confident `related` verdicts on failures that are actually pre-existing.

Concrete case: the Triton 3.7.1→3.8 pin re-land (pytorch#188251). Label-gated ROCm-MI200 jobs had no merge-base run, so no baseline. The advisor reasoned "Triton drives ROCm codegen → related" at confidence 0.85–0.9 on several flex_attention failures (`test_autocast_cuda_bfloat16`, `test_autocast_cuda_float32`, `test_invalid_block_size_cuda`). Those exact tests were already failing on the same MI200 shards on an unrelated, non-Triton PR (pytorch#187164) whose tree predates the pin — i.e. pre-existing ROCm noise, not pin-caused.

## Change (prompt-only)

1. Qualify the premise: the extraction is ground truth that the signal **fails** at the suspect, but a SUCCESS→FAILURE *transition* is only established when the partition includes `successful` baseline events.
2. Add **Principle 3 — A missing baseline is not a green baseline**: absence of a baseline is not evidence the suspect introduced the failure; check recent runs of the same job on trunk or neighbor PRs (via `gh` / hud.pytorch.org) before attributing; absent that evidence, a `related` resting on a plausible mechanism alone should be `unsure`.

Scoped to signals lacking a `successful` partition, so normal baselined trunk signals are unaffected.

Pull Request resolved: pytorch#188313
Approved by: https://github.com/huydhn
@github-actions
github-actions Bot deleted the iz/advisor-missing-baseline branch July 30, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants