Journal read returns 404 after a Log write to a nested Daily note #1005

Open
opened 2026-10-03 10:06:18 +00:00 by kayg · 1 comment
Owner

Found while running the #941 per-crate gates on job/imapedge, with 7a (a0f94231b) and origin/dev (f06679b11) included.

The existing tests::daily_and_composer_preserve_unrelated_bytes test writes Notes/Archive/20260924-dailynote.md, adds a Log entry through POST /journal/log, and reads GET /journal/2026-09-24. The POST returns 201 and the file byte-preservation assertions pass. The GET returns 404 instead of the existing expected 200.

---- tests::daily_and_composer_preserve_unrelated_bytes stdout ----

thread 'tests::daily_and_composer_preserve_unrelated_bytes' (1221482) panicked at crates/plugins/notes/src/lib.rs:9917:9:
assertion `left == right` failed
  left: 404
 right: 200

lib.rs and the test expectation are unchanged by #941. Keep that expectation. Check the resolver for existing Daily notes in nested folders (DESIGN §40 permits User placement).

Focused command, with the job's normal Cargo environment:

cargo test -p calternal-plugin-notes tests::daily_and_composer_preserve_unrelated_bytes -- --exact --test-threads=4

This leaves the Notes full-crate gate failing. The #941 report will list it for the merge round.

Found while running the #941 per-crate gates on `job/imapedge`, with 7a (`a0f94231b`) and `origin/dev` (`f06679b11`) included. The existing `tests::daily_and_composer_preserve_unrelated_bytes` test writes `Notes/Archive/20260924-dailynote.md`, adds a Log entry through `POST /journal/log`, and reads `GET /journal/2026-09-24`. The POST returns 201 and the file byte-preservation assertions pass. The GET returns 404 instead of the existing expected 200. ``` ---- tests::daily_and_composer_preserve_unrelated_bytes stdout ---- thread 'tests::daily_and_composer_preserve_unrelated_bytes' (1221482) panicked at crates/plugins/notes/src/lib.rs:9917:9: assertion `left == right` failed left: 404 right: 200 ``` `lib.rs` and the test expectation are unchanged by #941. Keep that expectation. Check the resolver for existing Daily notes in nested folders (DESIGN §40 permits User placement). Focused command, with the job's normal Cargo environment: ``` cargo test -p calternal-plugin-notes tests::daily_and_composer_preserve_unrelated_bytes -- --exact --test-threads=4 ``` This leaves the Notes full-crate gate failing. The #941 report will list it for the merge round.
Author
Owner

The same test passes in isolation without changing lib.rs, the fixture, or its status assertion. The original full crate run used four test threads and reported 184 passed / 2 failed; the other failure was a separate checkpoint date-only IMAP regression now fixed. Keep this issue open for full-suite investigation.

Command: cargo test -p calternal-plugin-notes tests::daily_and_composer_preserve_unrelated_bytes -- --exact --test-threads=4

test tests::daily_and_composer_preserve_unrelated_bytes ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 185 filtered out; finished in 0.67s
The same test passes in isolation without changing `lib.rs`, the fixture, or its status assertion. The original full crate run used four test threads and reported 184 passed / 2 failed; the other failure was a separate checkpoint date-only IMAP regression now fixed. Keep this issue open for full-suite investigation. Command: `cargo test -p calternal-plugin-notes tests::daily_and_composer_preserve_unrelated_bytes -- --exact --test-threads=4` ```text test tests::daily_and_composer_preserve_unrelated_bytes ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 185 filtered out; finished in 0.67s ```
Sign in to join this conversation.
No labels
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#1005
No description provided.