Repository navigation
[autorevert advisor] Treat a missing baseline as unknown, not green - #188313
izaitsevfb wants to merge 1 commit into
Conversation
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`.
🔗 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 FailuresAs of commit edb2a5b with merge base be87874 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
huydhn
left a comment
There was a problem hiding this comment.
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?
no, it doesn't. currently the baseline information is fed from the client (autorevert, dr.ci) |
|
@pytorchbot merge -f 'wording change' |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…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
…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
…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
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 nosuccessfulbaseline 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 confidentrelatedverdicts 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)
successfulbaseline events.gh/ hud.pytorch.org) before attributing; absent that evidence, arelatedresting on a plausible mechanism alone should beunsure.Scoped to signals lacking a
successfulpartition, so normal baselined trunk signals are unaffected.cc @izaitsevfb