Repository navigation
Description
Problem
bun test on dev reports 4 failing tests today (also reproduced on the unmodified working tree, so this is pre-existing — not introduced by #451). Letting failing tests sit in the suite is unhealthy: it normalizes "the suite has some red, ignore it," which over time hides real regressions and erodes trust in CI.
1043 pass, 36 skip, 4 fail across 52 files
The 4 failures
-
test/datalad-commands.test.ts:191—datalad commands - clone errors > clone fails for non-existent dataset- Asserts stdout contains
\"not found\"or\"404\"afternemar dataset clone nm999999. Neither substring is present in current output, so the error-path messaging drifted from what the test expected.
- Asserts stdout contains
-
test/broadcast.test.ts:100—buildBroadcastHtml > wraps content in email template- Asserts the rendered email template contains
\"osc.earth\". Likely stale: NEMAR moved offapi.osc.earthtoapi.nemar.org(per CLAUDE.md, the legacy URL is in MAINTENANCE_MODE buffer and being sunset in Phase 11). The template probably no longer references the old domain.
- Asserts the rendered email template contains
-
test/cli.test.ts:723—CLI Admin Revert > nemar admin revert with nonexistent dataset shows error- Asserts (stdout+stderr) contains
\"not found\"or\"prerequisites\". Same shape as Add proper test coverage measurement (90%+ target) #1 — error-path messaging drift.
- Asserts (stdout+stderr) contains
-
test/api.test.ts:462—Datasets API > GET /datasets > listing entries expose latest_version (null when no minted version)- Asserts
\"latest_version\" in entryfor each item inGET /datasets?limit=50. Field is missing from at least one returned entry — backend response shape drift (or a dataset in D1 without the column populated).
- Asserts
Why P1, not P0
None block #450 / the 30-dataset re-run, but they're all real signal:
- (1) and (3) point to user-facing error messages that no longer match docs / muscle-memory.
- (2) means broadcast emails may still link to a sunset domain — production bug if true.
- (4) is API contract drift that consumers depend on.
Required follow-ups
- Fix each test (or the underlying code if the test was right and the code drifted — for Optimize KV usage to stay within free tier limits #2 and Remove automatic collaborator addition on user approval #4 I suspect the code is wrong, not the test).
- Add a CI status check on PRs to
devandmainthat runsbun testand gates merge on green. Today nothing prevents landing PRs while the suite is red, which is how we got here. - Audit
xfail/skipmarkers (36 skipped) — at least name each skip's reason and link an issue.
Reproduce
git checkout dev
bun install
bun test
Activity
neuromechanist commentedon May 14, 2026
Merged via PR #465.