Skip to content

release-25.4: sql/logictest: skip remainder of test on snappy infra flake#170533

Merged
trunk-io[bot] merged 1 commit into
cockroachdb:release-25.4from
spilchen:blathers/backport-release-25.4-168970
May 20, 2026
Merged

release-25.4: sql/logictest: skip remainder of test on snappy infra flake#170533
trunk-io[bot] merged 1 commit into
cockroachdb:release-25.4from
spilchen:blathers/backport-release-25.4-168970

Conversation

@spilchen
Copy link
Copy Markdown
Contributor

@spilchen spilchen commented May 19, 2026

Backport 1/1 commits from #168970 on behalf of @spilchen.


When the cockroach-go/testserver-based logic tests hit the known "Can't find decompressor for snappy" infra flake (#124966) during a mixed-version test, handleWaitForInitErr stops the testserver cluster and skips the current subtest. However, only the current subtest is skipped; the parent test loop continues and the next subtest (e.g. post_upgrade) calls into the dead testserver cluster, failing with "os: process already finished" so that the overall test reports FAIL instead of SKIP.

Add a sticky skippedDueToSnappy flag to logicTest, set it alongside the existing ts.Stop() in handleWaitForInitErr, and check it in the processTestFile subtest loop to break out and mark the parent test skipped (preserving real failures with a !rootT.Failed() guard). Also nil out testserverCluster so any stray code path trips the existing nil guard cleanly.

Resolves: #168412
Epic: none

Release note: None


Release justification: test only fix

When the cockroach-go/testserver-based logic tests hit the known
"Can't find decompressor for snappy" infra flake (cockroachdb#124966) during a
mixed-version test, handleWaitForInitErr stops the testserver cluster
and skips the current subtest. However, only the *current* subtest is
skipped; the parent test loop continues and the next subtest (e.g.
post_upgrade) calls into the dead testserver cluster, failing with
"os: process already finished" so that the overall test reports FAIL
instead of SKIP.

Add a sticky skippedDueToSnappy flag to logicTest, set it alongside
the existing ts.Stop() in handleWaitForInitErr, and check it in the
processTestFile subtest loop to break out and mark the parent test
skipped (preserving real failures with a !rootT.Failed() guard). Also
nil out testserverCluster so any stray code path trips the existing
nil guard cleanly.

Resolves: cockroachdb#168412
Epic: none

Release note: None
@blathers-crl blathers-crl Bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels May 19, 2026
@trunk-io
Copy link
Copy Markdown
Contributor

trunk-io Bot commented May 19, 2026

😎 Merged successfully - details.

@blathers-crl
Copy link
Copy Markdown

blathers-crl Bot commented May 19, 2026

Thanks for opening a backport.

Before merging, please confirm that it falls into one of the following categories (select one):

  • Non-production code changes OR fixes for serious issues. Non-production includes test-only changes, build system changes, etc. Serious issues are defined in the policy as correctness, stability, or security issues, data corruption/loss, significant performance regressions, breaking working and widely used functionality, or an inability to detect and debug production issues.
  • Other approved changes. These changes must be gated behind a disabled-by-default feature flag unless there is a strong justification not to. Reference the approved ENGREQ ticket in the PR body (e.g., "Fixes ENGREQ-123").

Add a brief release justification to the PR description explaining your selection.

Also, confirm that the change does not break backward compatibility and complies with all aspects of the backport policy.

All backports must be reviewed by the TL and EM for the owning area.

@blathers-crl blathers-crl Bot requested a review from rafiss May 19, 2026 13:03
@blathers-crl blathers-crl Bot added backport Label PR's that are backports to older release branches T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) labels May 19, 2026
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@blathers-crl blathers-crl Bot added the backport-test-only Used to denote the backport has only non-production changes label May 19, 2026
@trunk-io trunk-io Bot merged commit f1b3cfe into cockroachdb:release-25.4 May 20, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Label PR's that are backports to older release branches backport-test-only Used to denote the backport has only non-production changes blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) target-release-25.4.11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants