Skip to content

acc: suppress bare "Warn: retrying" lines in acceptance output - #7339

Closed
pietern wants to merge 1 commit into
mainfrom
pietern/f09-7192-acceptance-retry-pattern
Closed

pietern wants to merge 1 commit into
mainfrom
pietern/f09-7192-acceptance-retry-pattern

Conversation

@pietern

@pietern pietern commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Changes

#7192 replaced the env var that silenced retry warnings in acceptance tests with SuppressLines.warn_retry = '^Warn: .*retrying after '. retryMessage only adds "after " for *apierr.APIError; transport errors that IsTransientRead retries (REFUSED_STREAM, unexpected EOF) print a bare Warn: retrying, so on cloud runs those lines reached the compared output.

The pattern is now '^Warn: .*retrying( after |$)'. The $ anchor keeps unrelated warnings visible, such as the SSH keepalive's "retrying in 5s".

Why

Gap in the acceptance retry-warning filter added in #7192.

Tests

  • acceptance/selftest/suppresslines now emits Warn: retrying and Warn: planning resources.jobs.foo: retrying (suppressed) and Warn: something failed; retrying in 5s (kept); the keep/ variant shows the line with suppression off. Fails with the old pattern.
  • go test ./libs/retry/... ./libs/testdiff/... ./acceptance/internal/...; local acceptance bundle/deploy, selftest, cmd/sync, bundle/sync, bundle/upload, bundle/resources/permissions; task fmt-q/lint-q.

This pull request and its description were written by Isaac.

retryMessage only adds "after <status>" for API errors. Transport errors
that IsTransientRead retries (REFUSED_STREAM, unexpected EOF) log a bare
"Warn: retrying", which the warn_retry pattern from #7192 did not match,
so these timing-dependent warnings leaked into cloud test output.

Extend the pattern to match the bare form too and cover it in the
suppresslines selftest.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Commit: 92ffffe3b | Workflow run

Regression test report

Selected 2 changed tests (limit=20, 0 not selected)

2 tests: regression=0 unreleased=0 coverage=2 failing=0
test branch main (2534bb0) latest (v1.23.0)
TestAccept/selftest/suppresslines ✅ ✅ ✅
TestAccept/selftest/suppresslines/keep ✅ ✅ ✅

@denik

denik commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Gap in the acceptance retry-warning filter added in #7192.

why is it a gap? the same reason for "retry after" applies here as well, no? this make tests more stable. Warning is still logged btw, it is not lost.

@pietern

pietern commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

You're right, this could have been fixed with another pattern in the root test.toml.

Can be done when it actually happens.

@pietern pietern closed this Nov 5, 2026
@pietern
pietern deleted the pietern/f09-7192-acceptance-retry-pattern branch November 5, 2026 09:09
@denik

denik commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Sorry I misread it -- this extends the pattern, not narrows it down. In that case, we should apply it. Could be separate named pattern, but not required.

@pietern

pietern commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

It is hypothetical though, we haven't seen this pattern.

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