Skip to content

test: deflake middleware error-taxonomy smoke (disable retry in fixture) - #235

Merged
frstrtr merged 1 commit into
masterfrom
explorer/middleware-retry-test-deflake
Jun 19, 2026
Merged

test: deflake middleware error-taxonomy smoke (disable retry in fixture)#235
frstrtr merged 1 commit into
masterfrom
explorer/middleware-retry-test-deflake

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Fixes the Web-static verify flake blocking the DGB embedded-ingest stack (#227->#230).

Root cause (explorer-merged triage): smoke.test.ts "Middleware chain: error-taxonomy normalises thrown errors" throws a 429 with retryAfter:2000 while leaving core.transport.retry enabled at maxAttempts:1. retry.ts honors server Retry-After, so the single retry sleeps the full 2000ms and parks on the 2s per-test deadline — deterministic, not flaky. Product code is correct; only the fixture was wrong.

Fix: the test subject is error normalisation, not retry, so retry is disabled for this fixture. rate_limited / retryAfterMs===2000 assertions still hold; runtime drops from 2007ms to ~ms.

Verified on workstation: full npm run verify green (257 tests, 245 pass, 0 fail), no test over 1500ms. GPG-signed, off origin/master.

SHA: d67e7c8

EXECUTOR: integrator (merge on operator approval)

…fter sleep)

The error-taxonomy normalisation test threw a 429 with retryAfter:2000 and
left core.transport.retry enabled with maxAttempts:1. retry.ts honours the
server Retry-After via Math.max(delay, retryAfterMs), so the single retry
slept the full 2000ms before the terminal throw, parking the test on the CI
per-test deadline (deterministic, survives re-run). The test subject is
error normalisation, not retry; disable core.transport.retry so the
normalised rate_limited error (retryAfterMs:2000 still asserted) propagates
in ~ms. Product retry behaviour is unchanged.
@frstrtr
frstrtr merged commit c2a0894 into master Jun 19, 2026
19 checks passed
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