Skip to content

ci(atlas-search): worker vitest suite (14 tests pinning #6937/#6982 + the DO cache-key oracle) run by no workflow — the #6788 cache Worker's regression suite verified nowhere #7683

Closed

Description

@dezren39

Problem

pkgs/atlas-search/worker/test/ — the vitest suite for the atlas-search cache Worker (the per-query Durable Object search cache from #6788: query-key canonicalisation, embedding-space validation, auth gate, embed + fan-out, DO cache hit) — is run by no workflow, flake check, or justfile recipe. It runs only when a human runs npm test in that directory by hand.

Evidence (verified this run at main 0798a9881e)

Why it matters

A regression in key.ts's canonical material silently changes every DO cache key (mass invalidation, or worse, cross-config serving — the exact failure key.test.ts's "differs across query and across k" case guards). A regression in validateEmbed lets a foreign-model or truncated embedding into the cache and poisons results indefinitely (the cache has no TTL eviction policy yet, #6805). And the two most recent correctness fixes to this Worker (#6937, #6982) currently have regression protection that executes only on a human's laptop.

Acceptance criteria

  • A workflow (house pattern, e.g. id-hosted-worker-tests.yml / bin-tests.yml: workflow_dispatch + path-gated push-to-main, main tier) runs the suite — npm ci + npm test (vitest) in pkgs/atlas-search/worker — and fails loudly if the suite files are missing, never a silent skip.
  • The wiring demonstrably executes all 14 tests (run output reports 3 test files / 14 tests passing) on a change touching pkgs/atlas-search/worker/**.
  • The suite passes via the wiring on main after the change lands.

Dedup (this run): title/keyword searches for atlas + "vitest", "atlas worker suite", "atlas-search worker" in title, and the three test filenames found no existing filing for this suite's wiring; #6879/#6937/#6982 are live-code defects in this Worker (two of them are what the suite pins), #6330 is PR-tier validation for the atlas-search Rust packages, #6805 is the cache eviction/invalidation follow-on, #7646/#7648 are the #6060 embedding-model slices.

Activity

  1. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  2. added
    kind/ci
    task/small-fix
    status/needs-triage
    source/creator
    priority/normal
    queue/queued
    area/ci
    effort/xs
    app/atlas-search
    on Nov 8, 2026
  3. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

    • Agent: new-issue-creator-code-b (new-issue-creator job, lane B)
    • Session / ID: cron new-issue-creator-code-b run 2026-11-08 06:20 CST
    • Found via: filed this run
    • Task: Wire the pkgs/atlas-search/worker vitest suite (3 files, 14 tests) into CI — natural home: a new workflow on the id-hosted-worker-tests.yml / bin-tests.yml house pattern (dispatch + path-gated push-to-main, main tier), or a step in an atlas workflow if one is created for Add PR-tier validation for atlas-search Rust packages #6330.
    • Expectation: effort/xs — done when the acceptance criteria in the issue body pass: wiring demonstrably reports 3 test files / 14 tests passing on a pkgs/atlas-search/worker/** change, suite green on main via the wiring.
    • Links: verification this run at main 0798a98: probe copy on the laptop (~/git/fleet/probe-atlas-worker, real worker tree verbatim) — npm ci + npm test → 3 files / 14 tests passed, twice; wiring greps over .github/, root flake.nix, lib/, pkgs/atlas-search/flake.nix + default.nix, justfile → no hits for the Worker suite.
  4. added
    queue/claimed
    work/assigned
    on Nov 8, 2026
  5. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked (awaiting triage)

  6. added
    queue/parked
    on Nov 10, 2026
  7. 8 remaining items

  8. added
    status/in-progress
    on Nov 11, 2026
  9. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: code-j
    task: 13660
    issue: #7683
    state: triaged
    note: Inline triage by lane code-j (runbook section 1c): work kind task/small-fix (already labelled), priority/normal, effort/xs, kind/ci - all confirmed against the issue body. Removed status/needs-triage; claim labels synced (queue/claimed, status/in-progress). First concrete step: create .github/workflows/atlas-search-worker-tests.yml on the id-hosted-worker-tests.yml house pattern (workflow_dispatch + path-gated push-to-main on pkgs/atlas-search/worker/, npm ci + npm test, fail loudly if suite files missing). Acceptance check: wiring executes 3 test files / 14 tests passing on a change touching pkgs/atlas-search/worker/, and the suite passes via the wiring on main after landing. Continuing to the fix in this same session.

  10. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: code-j
    task: 13660
    issue: #7683
    stage: parked
    note: Task 13660 parked as CI wait on PR #8497. Triaged inline by lane code-j (task/small-fix, priority/normal, effort/xs, kind/ci) and fixed in the same session: new .github/workflows/atlas-search-worker-tests.yml on the id-hosted-worker-tests.yml house pattern (workflow_dispatch + path-gated push-to-main on pkgs/atlas-search/worker/**, main tier; fails loudly if any suite file or manifest/lockfile is missing; npm ci + npm test). Verified in the worktree with the workflow's own commands: 3 test files / 14 tests passed. PR #8497 is OPEN and MERGEABLE, checks QUEUED in the fleet CI stall. Resume: checks green + Codex clean, merge PR #8497 (closes this issue), then confirm the new workflow runs on main.

  11. added
    queue/parked
    status/parked
    and removed
    status/in-progress
    queue/claimed
    on Nov 11, 2026
  12. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  13. removed
    status/parked
    queue/parked
    work/assigned
    on Nov 11, 2026
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

    app/atlas-searcharea/cieffort/xskind/cipriority/normalsource/creatorstatus:donetask/small-fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions