Skip to content

test: fix flakiness in segment-cache-stale-time - #100404

Merged
acdlite merged 1 commit into
canaryfrom
lubieowoce/fix-staletime-test
Oct 19, 2026
Merged

acdlite merged 1 commit into
canaryfrom
lubieowoce/fix-staletime-test

Conversation

@lubieowoce

@lubieowoce lubieowoce commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

fixes flakiness introduced in #100388. route trees expire after 5min by default, so they were occasionally causing the "no-requests" assertion (which we were doing after waiting for 5min) to fail in CI.
we can avoid this by lowering the stale-time to 4min, which still validates that the cache's stale-time is being respected.

(note that this means that the cache would be excluded from app shells. however, this test suite does not currently run in PPF, and has other tests that would have the same problem, so we'll have to deal with this later anyway)

fixes flakiness introduced in #100388. route trees expire after 5min by default, so they were occasionally causing the "no-requests" assertion to fail.
we can avoid this by lowering the stale-time to 4min, which still validates that the cache's stale-time is being respected.

(note that this means that the cache would be excluded from app shells. however, this test suite does not currently run in PPF, and has other tests that would have the same problem, so we'll have to deal with this later anyway)
@lubieowoce
lubieowoce added this pull request to stack #100405 October 19, 2026 17:08
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 0a668f3

@github-actions github-actions Bot added created-by: Next.js team PRs by the Next.js team. tests labels Oct 19, 2026
@acdlite
acdlite merged commit d06bd63 into canary Oct 19, 2026
218 of 223 checks passed
@acdlite
acdlite deleted the lubieowoce/fix-staletime-test branch October 19, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Next.js team PRs by the Next.js team. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants