Skip to content

P1: 4 failing tests on dev — fix and add CI gate to prevent regression #452

Closed

Description

@neuromechanist

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

  1. test/datalad-commands.test.ts:191 — datalad commands - clone errors > clone fails for non-existent dataset

    • Asserts stdout contains \"not found\" or \"404\" after nemar dataset clone nm999999. Neither substring is present in current output, so the error-path messaging drifted from what the test expected.
  2. test/broadcast.test.ts:100 — buildBroadcastHtml > wraps content in email template

    • Asserts the rendered email template contains \"osc.earth\". Likely stale: NEMAR moved off api.osc.earth to api.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.
  3. test/cli.test.ts:723 — CLI Admin Revert > nemar admin revert with nonexistent dataset shows error

  4. test/api.test.ts:462 — Datasets API > GET /datasets > listing entries expose latest_version (null when no minted version)

    • Asserts \"latest_version\" in entry for each item in GET /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).

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

Reproduce

git checkout dev
bun install
bun test

Activity

  1. added
    bug
    P1
    testing
    on May 13, 2026
  2. neuromechanist commented on May 14, 2026

    @neuromechanist
    ContributorAuthor

    Merged via PR #465.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1bugtesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions