BLOCKER: composer-tasks.spec.ts:51 fails after journal-trash.spec.ts in the same vault (from #981's fresh-words test) #998

Closed
opened 2026-11-07 04:52:36 +00:00 by kayg · 1 comment
Owner

Found by the 11-07 re-run of the daily train on 1e903a13a (#989). Not a product bug. The spec is order-dependent.

What fails

composer-tasks.spec.ts:51 ("Enter makes a tracked task line in the journal…") fails in the full run in chromium-390 and webkit-390 (first run, retries=0). The 1440 projects pass.

Expected substring: "call plumber8l36j"
Received string:    "fresh-words-q254vr"
> await expect.poll(() => snippetOf(day.id), { timeout: 25_000 }).toContain(`call ${name}`)

The task line itself is in the day note (the earlier journal(page) poll passes). Only the list snippet is wrong.

Why

  • The list snippet is the first line of writing after the frontmatter, headings skipped (crates/notes/src/meta.rs:1096, snippet).
  • journal-trash.spec.ts (the "trash today, open Journal…, then restore keeps two real notes" test) types fresh-words-… into today's note and leaves it there. After that, the day's first line is fresh-words-…, and a task appended below it never shows in the snippet.
  • Projects share one server and one vault. At 1440 composer-tasks runs before journal-trash, so it passes. At 390 it runs after journal-trash (1440), so it fails. Prod has no journal-trash.spec.ts at all.

Evidence (all on 1e903a13a = candidate; prod = 71827028)

run candidate prod
composer-tasks.spec.ts alone, --repeat-each=10, chromium-1440 / chromium-390 / webkit-1440 / webkit-390 30/30, 30/30, 30/30, 30/30 pass 30/30 pass each
journal-trash.spec.ts then composer-tasks.spec.ts, --project=<b>-1440 --project=<b>-390, once 1 failed (<b>-390 :51), 10 passed, both chromium and webkit 6 passed
same, --repeat-each=3 5 failed, 28 passed, both browsers (:51 at 1440 x2, 390 x3) 18 passed
same as the line above, webkit, with --grep-invert 'restore keeps two real notes' 21 passed, 0 failed (3 skipped) n/a

Owning PR: #981 (fix/journal-trash-fresh, merge db15794ac). The spec edit that writes the text is f9bf80a8c ("test: isolate daily content markers between browser cases"), in #981's branch, not an ancestor of 7b1f90b2f.

Not patched

Per the train rules nothing was changed. Likely fixes (the owner's call): composer-tasks:51 reads the task line from the note text instead of the snippet, or it reads the snippet only when the day is empty; or journal-trash tests clean up their text.

Found by the 11-07 re-run of the daily train on `1e903a13a` (#989). **Not a product bug.** The spec is order-dependent. ## What fails `composer-tasks.spec.ts:51` ("Enter makes a tracked task line in the journal…") fails in the full run in **chromium-390 and webkit-390** (first run, retries=0). The 1440 projects pass. ``` Expected substring: "call plumber8l36j" Received string: "fresh-words-q254vr" > await expect.poll(() => snippetOf(day.id), { timeout: 25_000 }).toContain(`call ${name}`) ``` The task line itself *is* in the day note (the earlier `journal(page)` poll passes). Only the list snippet is wrong. ## Why - The list snippet is the **first line of writing** after the frontmatter, headings skipped (`crates/notes/src/meta.rs:1096`, `snippet`). - `journal-trash.spec.ts` (the "trash today, open Journal…, then restore keeps two real notes" test) types `fresh-words-…` into today's note and leaves it there. After that, the day's first line is `fresh-words-…`, and a task appended below it never shows in the snippet. - Projects share one server and one vault. At 1440 `composer-tasks` runs before `journal-trash`, so it passes. At 390 it runs after `journal-trash` (1440), so it fails. Prod has no `journal-trash.spec.ts` at all. ## Evidence (all on `1e903a13a` = candidate; prod = `71827028`) | run | candidate | prod | |---|---|---| | `composer-tasks.spec.ts` alone, `--repeat-each=10`, chromium-1440 / chromium-390 / webkit-1440 / webkit-390 | 30/30, 30/30, 30/30, 30/30 pass | 30/30 pass each | | `journal-trash.spec.ts` then `composer-tasks.spec.ts`, `--project=<b>-1440 --project=<b>-390`, once | **1 failed** (`<b>-390` :51), 10 passed, both chromium and webkit | 6 passed | | same, `--repeat-each=3` | **5 failed**, 28 passed, both browsers (`:51` at 1440 x2, 390 x3) | 18 passed | | same as the line above, webkit, with `--grep-invert 'restore keeps two real notes'` | **21 passed, 0 failed** (3 skipped) | n/a | Owning PR: **#981** (`fix/journal-trash-fresh`, merge `db15794ac`). The spec edit that writes the text is `f9bf80a8c` ("test: isolate daily content markers between browser cases"), in #981's branch, not an ancestor of `7b1f90b2f`. ## Not patched Per the train rules nothing was changed. Likely fixes (the owner's call): `composer-tasks:51` reads the task line from the note text instead of the snippet, or it reads the snippet only when the day is empty; or `journal-trash` tests clean up their text.
Author
Owner

Fixed by #999 (792b33536).

Fixed by #999 (`792b33536`).
kayg closed this issue 2026-11-07 06:03:28 +00:00
Sign in to join this conversation.
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#998
No description provided.