Skip to content

test(checkerdef): check egress cache reuse with a TTL that cannot expire mid-test - #519

Merged
fclairamb merged 1 commit into
mainfrom
fix/egress-cache-test
Oct 11, 2026
Merged

fclairamb merged 1 commit into
mainfrom
fix/egress-cache-test

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

TestEgressCacheReprobesAfterTTL asserted "the cached answer is reused within the TTL" with a 1 ms TTL, so a loaded runner that took more than 1 ms between two calls re-probed and failed (expected 1 call, got 2, on #517's CI). Reuse is now checked on its own cache with a 1 h TTL; the convergence-after-expiry half keeps the 1 ms TTL, with an atomic flag instead of a plain bool. 50/50 with -race locally.

🤖 Generated with Claude Code

…ire mid-test

TestEgressCacheReprobesAfterTTL used a 1 ms TTL for both halves, so on a
loaded runner more than 1 ms between two Get calls re-probed and failed
the "reused within the TTL" check (expected 1 call, got 2 on #517's CI).
Reuse is now checked on a 1 h-TTL cache; expiry keeps the 1 ms one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb
fclairamb enabled auto-merge (squash) October 11, 2026 11:27
@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.75%. Comparing base (fb55f25) to head (eee6e49).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #519   +/-   ##
=======================================
  Coverage   82.74%   82.75%           
=======================================
  Files        1175     1175           
  Lines      121450   121450           
=======================================
+ Hits       100499   100503    +4     
+ Misses      20944    20940    -4     
  Partials        7        7           

see 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fclairamb
fclairamb disabled auto-merge October 11, 2026 11:47
@fclairamb
fclairamb merged commit c086d17 into main Oct 11, 2026
26 checks passed
@fclairamb
fclairamb deleted the fix/egress-cache-test branch October 11, 2026 11:47
fclairamb added a commit that referenced this pull request Oct 12, 2026
The nightly workflow has failed every night since at least 2026-09-30.
Three causes:

- **Live network + Docker suites**:
`TestTCPSpeakingSampleIsUpAgainstSolidping` failed every night since the
sample shipped (2026-09-16). solidping.io answers `HEAD` with `405
Method Not Allowed` (the chi router only registers GET routes), so the
shipped TCP sample and the live-demo TCP check were DOWN. The sample now
sends `GET / HTTP/1.0`, which answers a 302 the expect pattern already
accepts.
- **Postgres layer (against main)**: ran at `-p 1` with a 25 min
timeout, but the layer needs about 40 min at `-p 1`, so it was cancelled
every night. It now runs at `-p 4` with 30 min, like `backend-postgres`
in ci.yml. Its inline embed placeholders also lacked the status0
`assets/*.js` bundle, which made
`TestCompressionEncodesEmbeddedStatus0JS` fail. Both nightly jobs now
call `scripts/embed-placeholders.sh` instead of an inline copy.
- **Clean clone builds and tests**: failed once (2026-10-11) on the
flaky `TestEgressCacheReprobesAfterTTL`, already fixed on main by #519.
No change here.

Verified locally: `make test-slow` passes, including the four asserted
suites and the TCP sample test.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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