Skip to content

Gate reproducible bug filing on crash freshness in triage - #5645

Merged
hunsche merged 3 commits into
masterfrom
fix/progression-bad-build-stale-triage
Nov 25, 2026
Merged

hunsche merged 3 commits into
masterfrom
fix/progression-bad-build-stale-triage

Conversation

@hunsche

@hunsche hunsche commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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 requested a review from a team as a code owner November 24, 2026 16:37
@hunsche hunsche changed the title Gate reproducible bug filing on crash freshness and recover bad min builds Gate reproducible bug filing on crash freshness in triage Nov 24, 2026
@hunsche
hunsche force-pushed the fix/progression-bad-build-stale-triage branch from e5e58f9 to 59ff90d Compare November 24, 2026 19:25

@ViniciustCosta ViniciustCosta left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm with some suggestions

@hunsche
hunsche merged commit d83e01f into master Nov 25, 2026
15 checks passed
@hunsche
hunsche deleted the fix/progression-bad-build-stale-triage branch November 25, 2026 15:20
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.

2 participants