LearnNewsExamplesConnect
Frontmatter
assigneesneo-fable-mnemosyne
createdAtSep 5, 2026, 3:24 PM
updatedAtSep 5, 2026, 3:43 PM
githubUrlhttps://github.com/neomjs/neo/issues/18361
authorneo-fable-mnemosyne
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 5, 2026, 3:43 PM

The unit job's CI reporter names no passing tests

Closed v13.2.0/archive-v13-2-0-chunk-19 enhancementaitesting
neo-fable-mnemosyne
neo-fable-mnemosyne commented on Sep 5, 2026, 3:24 PM

Context

The defect ledger's machine producer (neomjs/neo-agent-brain#321, Brain PR #327) recovers a red record only when a newer green run of the record's own job names the test with a pass mark in its log — the list reporter's ✓ N [project] › path:line:col › titles (duration) line. That rule is round 2 of @neo-gpt's review: a job's colour, or the spec file's presence at the green head, proved nothing about one test; his control recovered a record whose test no longer existed.

The components job satisfies the rule today: test/playwright/playwright.config.component.mjs:21 sets reporter: [['list']]. The unit job cannot: test/playwright/playwright.config.unit.mjs:16-27 buildUnitRunPolicy({isCI}) sets [['github'], ['json', {outputFile: 'test-results/unit/test-results.json'}]] in CI. The github reporter prints one dot per passing test (···×··×···) and ::error annotations only for failures, and the JSON report — which does carry per-test results — reaches nobody on a green run, because .github/workflows/test.yml:361-366 uploads test-results/ only if: failure(). Measured on the unit job's log of run 33887831112 (the fixture in the Brain's CiFailureIngestor.spec.mjs): passing tests are dots, failing ones are annotations plus numbered blocks; the summary line 3158 passed names none of them.

Consequence: every unit-suite record the producer files — the class of #17796 ("one arbitrary test per run"), #18215 ("one run in eight"), #18275, #18290 — stays red until a human recovers it by hand. The ledger measures unit flakes and can never see one end. The producer reports this as no-per-test-evidence and leaves the record red; PR #327's AC-4 states the bound and names this ticket as the way to lift it.

The Problem

Two per-test signals exist in a unit run and neither reaches a reader on a green run: the github reporter's dots carry no names, and the JSON report is an artifact only when the job failed. Recovery needs a positive observation about this test in a job that ran after the sighting; a summary count is not one.

The Architectural Reality

  • test/playwright/playwright.config.unit.mjs:16-27 — buildUnitRunPolicy({isCI}): reporter = [['json', …]], then isCI && reporter.unshift(['github']); also failOnFlakyTests: isCI, forbidOnly: isCI, retries: isCI ? 2 : 0, workers: isCI ? 4 : undefined. No spec pins the policy today (the only references are the config's own).
  • test/playwright/playwright.config.component.mjs:21 — reporter: [['list']], the precedent whose log the producer already reads (240 ✓ lines per run).
  • .github/workflows/test.yml:355-366 — Run ${{ matrix.suite }} tests via npm run test-${{ matrix.suite }}; artifacts uploaded only on failure — right for cost, and not what this ticket changes.
  • Brain ai/services/ingestion/CiFailureIngestor.mjs parsePlaywrightPasses (PR #327) — the consumer: it strips the duration and (retry #n) suffixes, keys the pass by <spec path> › <title path>, ignores - (skipped) and ✘ (failed) lines, and yields an empty set for a dot log.
  • Playwright reporters compose: [['github'], ['list'], ['json', …]] prints the annotations, one line per test, and the file.

The Fix

In buildUnitRunPolicy, add ['list'] to the CI reporter list beside ['github'] — [['github'], ['list'], ['json', {outputFile}]] — and leave the local (isCI: false) list unchanged. Pin the policy with a unit spec importing buildUnitRunPolicy from the config module (structural pre-flight fast-path: the tooling specs under test/playwright/unit/buildScripts/ are the sibling pattern; place by that gate). The github annotations and the JSON report stay; the failure-only upload stays.

Contract Ledger Matrix

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
buildUnitRunPolicy({isCI: true}).reporter (test/playwright/playwright.config.unit.mjs:16) this ticket; playwright.config.component.mjs:21 as the precedent [['github'], ['list'], ['json', {outputFile}]] — annotations, one line per test, the report local (isCI: false) unchanged: json only the function's JSDoc the pinning spec; one green unit job log on dev showing ✓ N [unit-engine] › … lines
the unit job's CI log GitHub Actions ~3,300 more lines per run, one per test — the components job already carries 240 — — log size of one run before and after, in the PR body
the Brain producer's recovery of unit records neomjs/neo-agent-brain#321 / PR #327 unchanged consumer; unit records become recoverable once a green run names their test until then no-per-test-evidence, the record stays red — post-merge: the first [recovered] unit note on the ledger

Decision Record impact

none — a test-tooling policy change; no ADR authority is touched.

Acceptance Criteria

  • AC-1 — In CI (isCI: true) the unit run policy's reporter list is github, list, json in that order; locally (isCI: false) it is unchanged. A unit spec pins both.
  • AC-2 — A green unit job's log on dev names every passing test as ✓ N [unit-engine] › <spec>:<line>:<col> › <titles> (<duration>); one run's log is cited in the PR body, with its size against a run before the change.
  • AC-3 — The github annotations for failures and the JSON report are still produced; the failure-only artifact upload is untouched.
  • AC-4 — Post-merge, owned by the Brain producer's tick rather than this PR: the ledger recovers a unit-suite record from a green unit run (the [recovered] note names that run). Reported on this ticket when the first one lands.

Out of Scope

  • Uploading test-results/ on green runs — artifact volume on every run, and the consumer would need a download and an unzip per run where a log read already exists.
  • The components job (already list) and the e2e configs.
  • Any change to the Brain producer.
  • Local reporter behaviour.

Avoided Traps

  • Replacing github with list. The inline PR annotations are what reviewers read on a red run; the reporters compose, so neither has to go.
  • Parsing the dot progress line. Dots carry no names — there is nothing to attribute.
  • Treating N passed as evidence. A count is not an observation about one test; that is the exact error round 1 of PR #327 made with job colour.

Related

  • neomjs/neo-agent-brain#321 · neomjs/neo-agent-brain PR #327 — the consumer, and the review that named this bound
  • #17796 · #18215 · #18275 · #18290 · #18348 — the intermittents the ledger measures and would like to see end
  • test/playwright/playwright.config.component.mjs — the precedent

Live latest-open sweep: checked the latest 20 open issues at 2026-09-05T13:22Z; no equivalent. A2A claim sweep (last 30 messages, all read states): no claim on this scope. Memory Core sweep (query_raw_memories, 6 results): CI-watch chatter and sync logs, no prior decision on the unit reporter. Own-assignment sweep: #18310, #15252 — other surfaces. KB semantic sweep (type: 'ticket'): the Siesta → Playwright migration tickets (#7284–#7289, #7435), no reporter decision.

Origin Session ID: 41b7f6cd-28c9-41a6-80f2-81f9ff9d6b67

Retrieval Hint: query_raw_memories("unit job github reporter dots no per-test pass lines defect ledger recovery")

tobiu referenced in commit 27e23b1 - "feat(test): the unit job's CI log names every passing test (#18361) (#18362) on Sep 5, 2026, 3:43 PM
tobiu closed this issue on Sep 5, 2026, 3:43 PM