test: #998 isolate the daily-note specs (journal-trash / composer-tasks) #999

Closed
kayg wants to merge 0 commits from test/998-day-note-isolation into dev
Owner

Fixes #998 (and the #989 re-run). Tests only, no product code.

Cause: journal-trash.spec.ts left fresh-words-… as the first line of today's day note; composer-tasks.spec.ts:51 reads the list snippet (the note's first line of writing, crates/notes/src/meta.rs snippet) and expected its own task line.

Fix

  • journal-trash.spec.ts: the notes the trash test touches (old, fresh) are deleted and forgotten in afterEach, so today's note is not left with the test's words.
  • composer-tasks.spec.ts: the snippet check no longer assumes the task is the first writing line of the shared day note. That the task is in the note is asserted on the note text (as before); the snippet must be non-empty, marker-free, and contain the task when the task line leads.
  • Other tests in both files reviewed: only the snippet assertion and the trash test's leftover depended on the shared day note.

Gates: table follows once runs finish.

Fixes #998 (and the #989 re-run). Tests only, no product code. **Cause:** `journal-trash.spec.ts` left `fresh-words-…` as the first line of today's day note; `composer-tasks.spec.ts:51` reads the list snippet (the note's first line of writing, `crates/notes/src/meta.rs` `snippet`) and expected its own task line. **Fix** - `journal-trash.spec.ts`: the notes the trash test touches (`old`, `fresh`) are deleted and forgotten in `afterEach`, so today's note is not left with the test's words. - `composer-tasks.spec.ts`: the snippet check no longer assumes the task is the first writing line of the shared day note. That the task is in the note is asserted on the note text (as before); the snippet must be non-empty, marker-free, and contain the task when the task line leads. - Other tests in both files reviewed: only the snippet assertion and the trash test's leftover depended on the shared day note. Gates: table follows once runs finish.
test: #998 isolate the daily-note specs from each other
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
77b68c028f
journal-trash discards the notes it makes (afterEach); composer-tasks no longer assumes its task line is the first line of writing in today's note.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Interim (head 77b68c028), targeted gates green; full 390 projects still running.

Both specs, shared data folder carried across the two invocations, CI=1 --workers=1 --retries=0 --repeat-each=5 --reporter=line, command ~/bin/slot bunx playwright test e2e/<first>.spec.ts --project=<p> then e2e/<second>.spec.ts with the same E2E_DATA:

project host journal-trash → composer-tasks composer-tasks → journal-trash
chromium-1440 dev-01 15 + 15 passed 15 + 15 passed
chromium-390 dev-01 10 + 15 passed 15 + 10 passed
webkit-1440 dev-02 15 + 15 passed 15 + 15 passed
webkit-390 dev-02 10 + 15 passed 15 + 10 passed

(390 journal-trash = 10: the drawer test skips there.)

Red proof, unmodified origin/dev 1e903a13a specs, same script, journal-trash → composer-tasks: chromium-1440 5 failed, chromium-390 5 failed; the reverse order passes. So the harness reproduces #998 and the PR fixes it.

bun run check: 0 errors (16 existing warnings). bun run lint: 23 pass, 0 fail.

Interim (head 77b68c028), targeted gates green; full 390 projects still running. Both specs, shared data folder carried across the two invocations, `CI=1 --workers=1 --retries=0 --repeat-each=5 --reporter=line`, command `~/bin/slot bunx playwright test e2e/<first>.spec.ts --project=<p>` then `e2e/<second>.spec.ts` with the same `E2E_DATA`: | project | host | journal-trash → composer-tasks | composer-tasks → journal-trash | |---|---|---|---| | chromium-1440 | dev-01 | 15 + 15 passed | 15 + 15 passed | | chromium-390 | dev-01 | 10 + 15 passed | 15 + 10 passed | | webkit-1440 | dev-02 | 15 + 15 passed | 15 + 15 passed | | webkit-390 | dev-02 | 10 + 15 passed | 15 + 10 passed | (390 journal-trash = 10: the drawer test skips there.) Red proof, unmodified origin/dev `1e903a13a` specs, same script, journal-trash → composer-tasks: chromium-1440 **5 failed**, chromium-390 **5 failed**; the reverse order passes. So the harness reproduces #998 and the PR fixes it. `bun run check`: 0 errors (16 existing warnings). `bun run lint`: 23 pass, 0 fail.
Author
Owner

Final gates, head 77b68c028 (tests only), all on a debug calternal built from this head, CI=1 --workers=1 --retries=0.

gate command result
both specs, both orders, shared data, x5 E2E_DATA=<d> bunx playwright test e2e/<first>.spec.ts --project=<p> --repeat-each=5, then <second> on the same <d>; orders journal→composer and composer→journal; p = chromium-1440, chromium-390 (dev-01), webkit-1440, webkit-390 (dev-02) 0 failures in all 16 runs (table above)
red proof same, unmodified origin/dev 1e903a13a specs journal→composer: chromium-1440 5 failed, chromium-390 5 failed; reverse order passes
full chromium-390 (dev-01) CI=1 bunx playwright test --project=chromium-390 --workers=1 --retries=0 963 passed, 181 skipped, 0 failed (38.5 min)
full webkit-390 (dev-02) same, --project=webkit-390 956 passed, 187 skipped, 1 failed: a11y-high.spec.ts:107 Style sheet. Not #991/#992 and not from this PR: --repeat-each=10 ABAB gives PR 5/10 and 8/10 failed, unmodified dev 1e903a13a 5/10 and 5/10 failed. Filed as #1000.
bun run check (apps/web) ~/bin/slot bun run check 0 errors (16 existing warnings)
bun run lint (apps/web) ~/bin/slot bun run lint 23 pass, 0 fail

#991/#992 did not appear in either full run. #998/#989's composer-tasks:51 did not fail. Worktrees, targets, data dirs, logs and my nix-shell dirs were removed on dev-01 and dev-02.

Open risk: #1000 (webkit-390 Style sheet) reproduces on dev and will fail the full webkit-390 train for prod until fixed.

Final gates, head `77b68c028` (tests only), all on a debug `calternal` built from this head, `CI=1 --workers=1 --retries=0`. | gate | command | result | |---|---|---| | both specs, both orders, shared data, x5 | `E2E_DATA=<d> bunx playwright test e2e/<first>.spec.ts --project=<p> --repeat-each=5`, then `<second>` on the same `<d>`; orders journal→composer and composer→journal; p = chromium-1440, chromium-390 (dev-01), webkit-1440, webkit-390 (dev-02) | **0 failures in all 16 runs** (table above) | | red proof | same, unmodified origin/dev `1e903a13a` specs | journal→composer: chromium-1440 5 failed, chromium-390 5 failed; reverse order passes | | full chromium-390 (dev-01) | `CI=1 bunx playwright test --project=chromium-390 --workers=1 --retries=0` | 963 passed, 181 skipped, **0 failed** (38.5 min) | | full webkit-390 (dev-02) | same, `--project=webkit-390` | 956 passed, 187 skipped, **1 failed**: `a11y-high.spec.ts:107` Style sheet. Not #991/#992 and not from this PR: `--repeat-each=10` ABAB gives PR 5/10 and 8/10 failed, unmodified dev `1e903a13a` 5/10 and 5/10 failed. Filed as #1000. | | `bun run check` (apps/web) | `~/bin/slot bun run check` | 0 errors (16 existing warnings) | | `bun run lint` (apps/web) | `~/bin/slot bun run lint` | 23 pass, 0 fail | #991/#992 did not appear in either full run. #998/#989's `composer-tasks:51` did not fail. Worktrees, targets, data dirs, logs and my nix-shell dirs were removed on dev-01 and dev-02. Open risk: #1000 (webkit-390 Style sheet) reproduces on dev and will fail the full webkit-390 train for prod until fixed.
Author
Owner

Merged into dev as 792b33536 (test-only; both orders ×5 in four projects clean; full chromium-390 clean; webkit-390 only #1000, which fails equally on unmodified dev).

Merged into dev as `792b33536` (test-only; both orders ×5 in four projects clean; full chromium-390 clean; webkit-390 only #1000, which fails equally on unmodified dev).
kayg closed this pull request 2026-11-07 06:03:27 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!999
No description provided.