Skip to content

acc/invariant: match Go panics precisely with '!panic:'#6042

Merged
radakam merged 1 commit into
mainfrom
acc-invariant-panic-matcher
Jul 24, 2026
Merged

acc/invariant: match Go panics precisely with '!panic:'#6042
radakam merged 1 commit into
mainfrom
acc-invariant-panic-matcher

Conversation

@radakam

@radakam radakam commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

What

The invariant scripts guard against crashes with contains.py '!panic' ..., which fails if the substring panic appears anywhere in the output. That collides with legitimate content — a fuzzer-generated resource name containing panic, the built-in databricks selftest panic command, or the CLI's own swallowed-panic messages like ... telemetry panicked and was skipped. Go's runtime prints every real crash with a panic: header, so match that instead.

Scope

acceptance/bundle/invariant/migrate/script already used '!panic:'; this brings the rest in line: continue_293, delete_idempotent, destroy_idempotent, and no_drift. No recorded outputs change (the guards write to /dev/null on success), so no golden regeneration is needed.

@radakam
radakam marked this pull request as ready for review July 23, 2026 14:08
The invariant scripts guard against panics with contains.py '!panic', which
forbids the substring 'panic' anywhere in the output. That false-positives on
legitimate content that merely contains the word (e.g. a resource name or a
message like 'no panic'). Go's runtime prints panics as 'panic:' with a trailing
colon, so match that instead. This only relaxes the guard (any output that
passed still passes), while removing the substring-collision risk.

Applied to all curated invariant scripts (continue_293, delete_idempotent,
destroy_idempotent, no_drift) for consistency.
@radakam
radakam force-pushed the acc-invariant-panic-matcher branch from 6f64452 to 4bee5d3 Compare July 23, 2026 19:14
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 4bee5d3

Run: 30037177604

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 322 1059 4:42
💚​ aws windows 4 4 324 1057 4:50
💚​ azure linux 4 4 322 1058 4:44
💚​ azure windows 4 4 324 1056 4:45
💚​ gcp linux 1 5 321 1060 4:37
💚​ gcp windows 1 5 323 1058 4:42
8 interesting tests: 4 RECOVERED, 4 SKIP
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:34 azure windows TestAccept
3:28 gcp windows TestAccept
3:22 aws windows TestAccept

@denik denik changed the title acceptance/invariant: match Go panics precisely with '!panic:' acc/invariant: match Go panics precisely with '!panic:' Jul 24, 2026
@radakam
radakam added this pull request to the merge queue Jul 24, 2026
Merged via the queue into main with commit 1e7761a Jul 24, 2026
25 checks passed
@radakam
radakam deleted the acc-invariant-panic-matcher branch July 24, 2026 09:07
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.

3 participants