Five DM/inbox/gift-wrap test files fail intermittently under full-suite load (pre-existing on dev) #70
Labels
No labels
bug
discussion
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
edufeed/edufeed-app#70
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Five DM/inbox/gift-wrap test files fail intermittently under full-suite parallel load, on
devitself. Found while verifying #64; not caused by that branch — reproduced on unmodifieddev.The files
Typical failures — all timeouts, not assertion mismatches:
src/routes/api/pdf/__tests__/server.test.jsand.../pdf-thumbnail/...join the set under heavier load (5031ms, 5002ms).Evidence it is
dev, not a branchTwo full-suite runs on a clean detached worktree at
dev(aa4a129a):470 passed (470)/5193 passed (5193), exit 05 failed | 465 passed,6 failed | 5187 passed, exit 1 — exactly the five files aboveSame commit, same machine, same command, opposite outcomes.
Why this is worth an issue
devonce (green), then my branch (red), and concluded I had introduced a regression. I spent a full bisect on it — stashing, a lazy-import rewrite — before a seconddevrun showed the same five red. One reading of a flaky suite is not a baseline.pnpm testexits 1. Combined with the knownGlobalFABEnvironmentTeardownErrorflake (which also exits non-zero while every test passes), the suite currently has two independent ways to report red without a real defect.Suspected shape
The failures are 5s/30s timeouts concentrated in files that mock relay/pool infrastructure and await network-shaped promises. Timing-sensitive under CPU contention rather than logically wrong — consistent with fake timers, real
setTimeout, or unresolved promises that only settle when the event loop is not starved. Not diagnosed.Not established