event-normalizer-schema coverage test fails under host load: the folder-trust cache it warms at import expires (2 s TTL) before the ready fixture runs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, node.js
- Domain
- testing
Research direction
Start with packages/server/tests/event-normalizer-schema.test.js and inspect how its ready fixture uses the folder-trust cache warmed at module load. Make the fixture independent of the 2 s cache expiry, then remove the ready fixture and confirm the coverage meta-test still reports the missing schema legibly. Keep behavior in packages/server/src/folder-trust.js unchanged and do not use --test-force-exit.
Written by the indexing model from the issue text.
Description
Description
packages/server/tests/event-normalizer-schema.test.js can fail under host load. The failing test is "exercises every schema listed in SCHEMA_BY_TYPE", which fails with:
every SCHEMA_BY_TYPE entry must be produced by a fixture
+ [ 'folder_trust_state' ]
- []
Its parent, EventNormalizer output → Server*Schema round-trip (#6841), then fails too.
The file warms the folder-trust scan cache once, at module load:
// `ready` answers the folder trust state only from a fresh cached scan.
getFolderTrustState('/tmp/test', { cached: true })
The cache is only fresh for SCAN_CACHE_TTL_MS = 2000 (packages/server/src/folder-trust.js:87, checked at ~1205). When the host is busy, more than 2 s can pass between module load and the ready fixture running. The ready event then carries no folder_trust_state, and the coverage meta-test fails.
Observed
On 2026-11-30 this failed once, in the pre-PR guard pack's sweep step for branch test/gemini-stream-pins (f5100d803), at a 1-minute load of about 10–15. That branch only adds tests to gemini-stream-bounds.test.js. The file passed twice in a row when run alone at about 9 (74/74), and the full server suite passed it on the same head.
Acceptance Criteria
- The
readyfixture'sfolder_trust_stateno longer depends on wall-clock time since module load. Two ways:- warm the cache immediately before the fixture that needs it;
- or inject the scan/clock the normalizer reads.
- The coverage meta-test still fails, legibly, when a schema genuinely has no fixture. Prove it by removing the
readyfixture. - No change to
folder-trust.jsbehaviour, and no--test-force-exit.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 1
- Avg merge
- 2h 9m
- Merged PRs (30d)
- 298
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blamechris/chroxy
-
priority: low server
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
blamechris/chroxy#9340 ·
Maintainers usually reply within 1 day
-
documentation from-review
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
blamechris/chroxy#9237 ·
Maintainers usually reply within 1 day
-
agent-control client: notify() docstring should say the outbound gate applies only in principal modeOpenenhancement from-review
Difficulty 1/5 Under an hour Newbie friendliness 80/100
blamechris/chroxy#9227 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
blamechris/chroxy#9108 ·
Maintainers usually reply within 1 day
-
enhancement from-review
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
blamechris/chroxy#9101 ·
Maintainers usually reply within 1 day
All issues in blamechris/chroxy
Similar issues
-
Add an OutageDeck provider status badge (/outagedeck/status/:provider)Possibly taken A pull request linked to this issue is open or already merged. Openenhancement good first issue shields parity
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
seuthootDev/terminal-shields#125 ·
Maintainers usually reply within 2 days
-
[ui] 自創球員 (投手): pick 球種 at creation (直球 fixed + up to 2 more), trade-off line, shown on the cardOpenarea:ui P1 status:doing
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
sunososobro-hub/cloudball#1153 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NuSkooler/enigma-bbs#1241 ·
Maintainers usually reply within 1 day
-
harness seguranca target:staging
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
corosolto/client#1507 · 1 comment ·
Maintainers usually reply within 1 day