Skip to content

Skip bounded bad starting builds during progression bisection - #5652

Open
hunsche wants to merge 1 commit into
fix/progression-unfiled-bad-min-and-retriesfrom
fix/progression-skip-bad-min-bisection
Open

hunsche wants to merge 1 commit into
fix/progression-unfiled-bad-min-and-retriesfrom
fix/progression-skip-bad-min-bisection

Conversation

@hunsche

@hunsche hunsche commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Stacked on #5651 (Part 3 of 3, following #5645). When a testcase no longer crashes on the latest revision (max_revision) and its starting revision (min_revision) fails check_for_bad_build, progression_task previously aborted immediately without attempting nearby revisions, preventing bisection from recording a fixed range when an adjacent revision still reproduced the crash.

Changes

  • _verify_or_advance_min_revision bounded skip-forward: Tests min_revision first (even when min_revision has aged out of revision_list) and, when check_for_bad_build fails (is_bad_build = True), advances forward across up to EXTREME_REVISIONS_TO_TEST (3) broken revisions:
    • Resumes normal bisection if a subsequent revision reproduces the crash.
    • Aborts with PROGRESSION_BAD_BUILD (setting skipped_bad_min_build = True when min_revision or an intermediate build in bad_revisions was skipped, without recording a false fixed range or misclassifying aged-out crashes as one_time_crasher_flag) if the next healthy revision runs cleanly without crashing.
    • Short-circuits immediately without downloading extra builds when min_revision fails with a dynamic-linker error (is_bad_build = False).
    • Returns PROGRESSION_TIMEOUT (leaving last_progression_min unset) if the task completion deadline expires mid-skip.

Tests

  • butler.py format and butler.py lint
  • Unit tests in progression_task_test.py (65/65) covering bisection recovery across skipped bad builds, aged-out min_revision preservation, bad_revisions Attempt 1/Attempt 2 symmetry, clean subsequent builds, skip-cap enforcement (EXTREME_REVISIONS_TO_TEST = 3), two-element revision lists, dynamic-linker short-circuiting, and deadline expiration during skip-forward.

@decoNR
decoNR removed their request for review November 24, 2026 21:30
hunsche added a commit that referenced this pull request Nov 25, 2026
## Overview

#5587 started clearing `progression_pending` inside `handle_progression_bad_build` so new crashes hitting dynamic-linker or bad-build failures would not stall in triage. However, `triage` previously had no crash-freshness check for reproducible testcases. Clearing `progression_pending` on bad-build errors could therefore unlock stale reproducible testcases without a recent trunk reproduction and auto-file already-fixed crashes.

To keep the rollout small and independently revertible, this first PR isolates the App Engine `triage` crash-freshness gate (zero worker, protobuf, or testcase-closure changes). Follow-up draft PRs (#5651 and #5652) handle closing unfiled bad-`min_revision` testcases after clean trunk runs and skipping broken starting revisions during bisection.

## Changes

- **`triage.py` crash-freshness gate**: Require reproducible testcases to have a confirmed crash timestamp (`testcase.timestamp`, `testcase.created`, or `last_tested_crash_time`) within the 14-day freshness window (`reproducible_testcase_freshness_deadline` in `IssueTrackerConfig`, defaulting to `FILE_CONSISTENT_UNREPRODUCIBLE_TESTCASE_DEADLINE`, with `<= 0` disabling the gate) before auto-filing or publishing `new` Pub/Sub issue notifications.
- **Concurrent-closure guard and metrics**: Skip testcases that closed concurrently during a `triage` run, clear `stuck_in_triage`, record a `triage_message` explaining why filing was held back, and emit `stale_unverified` on `untriaged_testcase_age` and `untriaged_testcase_count`.

## Tests

- Added unit tests in `triage_test.py` covering fresh, refreshed, stale, expired-progression, one-time, concurrently closed, Pub/Sub-only, missing/malformed-timestamp, and custom-deadline testcases.
@hunsche
hunsche force-pushed the fix/progression-unfiled-bad-min-and-retries branch from 0fc6d72 to 80496c9 Compare November 25, 2026 15:25
@hunsche
hunsche force-pushed the fix/progression-skip-bad-min-bisection branch from 00e44a8 to 0266fff Compare November 25, 2026 15:25
@hunsche
hunsche force-pushed the fix/progression-skip-bad-min-bisection branch from 0266fff to 00fa961 Compare November 25, 2026 16:21
@hunsche
hunsche marked this pull request as ready for review November 25, 2026 18:42
@hunsche
hunsche requested a review from a team as a code owner November 25, 2026 18:42

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant