Daily log proptest: '- 00:00 pm' (a word 'pm' after 00:00) fails #610

Open
opened 2026-10-19 08:42:56 +00:00 by kayg · 12 comments
Owner

Train AH (2026-10-19) failed at cargo test: proptest crates/daily/src/times_tests.rs:75 a_log_line_splits_into_times_words_and_tags. Minimal input: marker "- ", time 00:00, no end, words ["pm"], tz +05:30 → the line "- 00:00 pm" parses with words "00:00 pm" instead of time 00:00 + words "pm". Random generator collision with the am/pm suffix; decide whether parser or generator is wrong.

Train AH (2026-10-19) failed at cargo test: proptest crates/daily/src/times_tests.rs:75 a_log_line_splits_into_times_words_and_tags. Minimal input: marker "- ", time 00:00, no end, words ["pm"], tz +05:30 → the line "- 00:00 pm" parses with words "00:00 pm" instead of time 00:00 + words "pm". Random generator collision with the am/pm suffix; decide whether parser or generator is wrong.
Author
Owner

Starting work on branch issue/daily-pm-proptest, based on b6136b1457d9dfdb9289c373432b44a1717f9495.

Starting work on branch `issue/daily-pm-proptest`, based on `b6136b1457d9dfdb9289c373432b44a1717f9495`.
Author
Owner

Finding: time_token in crates/daily/src/log.rs recognizes spaced and attached am/pm, but returns None when that suffix follows hour 00. parse_line then drops the complete entry, matching the property failure. The daily module comment and ADR 0026 say time-starting list lines are read leniently; I will preserve the valid 24-hour 00:00 and leave invalid suffix text as words. Since valid suffixes such as 5 pm are intentionally parsed, the property generator also needs to avoid generating am/pm as words for hours where they are ambiguous. The generator can emit h, hrs, and to, but these remain words here: times are generated with : and a range separator is only consumed when followed by a parseable time; it cannot emit p.m. or a standalone - word currently.

Finding: `time_token` in `crates/daily/src/log.rs` recognizes spaced and attached `am`/`pm`, but returns `None` when that suffix follows hour 00. `parse_line` then drops the complete entry, matching the property failure. The daily module comment and ADR 0026 say time-starting list lines are read leniently; I will preserve the valid 24-hour `00:00` and leave invalid suffix text as words. Since valid suffixes such as `5 pm` are intentionally parsed, the property generator also needs to avoid generating `am`/`pm` as words for hours where they are ambiguous. The generator can emit `h`, `hrs`, and `to`, but these remain words here: times are generated with `:` and a range separator is only consumed when followed by a parseable time; it cannot emit `p.m.` or a standalone `-` word currently.
Author
Owner

Verification finding: the first package run with PROPTEST_CASES=20000 hit the existing global reject cap in tests::add_inserts_exactly_one_entry_and_keeps_the_rest (crates/daily/src/tests.rs:82-89): 1,896 successes, 1,024 global rejects, all from its odd-fence-count filter. The parser regression itself passed. I will keep this unrelated generator unchanged and use PROPTEST_MAX_GLOBAL_REJECTS=50000 for the three required 20,000-success runs.

Verification finding: the first package run with `PROPTEST_CASES=20000` hit the existing global reject cap in `tests::add_inserts_exactly_one_entry_and_keeps_the_rest` (`crates/daily/src/tests.rs:82-89`): 1,896 successes, 1,024 global rejects, all from its odd-fence-count filter. The parser regression itself passed. I will keep this unrelated generator unchanged and use `PROPTEST_MAX_GLOBAL_REJECTS=50000` for the three required 20,000-success runs.
Author
Owner

Additional property finding from the requested high-case run: the token-boundary rule in time_token accepts am/pm when the next character is not alphanumeric, so a generated pM followed by an apostrophe was consumed as a time suffix for hour 01 and left only the apostrophe as words. Evidence: PROPTEST_CASES=20000 shrank to (h, m, s) = (1, 0, None), words = ["pM'"]; 5,910 successful cases before failure. I am tightening the generator filter to exclude every generated word that this suffix rule would consume, including punctuation after the suffix.

Additional property finding from the requested high-case run: the token-boundary rule in `time_token` accepts `am`/`pm` when the next character is not alphanumeric, so a generated `pM` followed by an apostrophe was consumed as a time suffix for hour 01 and left only the apostrophe as words. Evidence: `PROPTEST_CASES=20000` shrank to `(h, m, s) = (1, 0, None), words = ["pM'"]`; 5,910 successful cases before failure. I am tightening the generator filter to exclude every generated word that this suffix rule would consume, including punctuation after the suffix.
Author
Owner

Finished on branch issue/daily-pm-proptest, head 71be3c7bd255a08fafea021e0320d5b8cb31cb98 (pushed; no PR opened).

Cause: when a spaced am/pm suffix followed hour 00, time_token rejected the whole line. The daily log docs say reading is lenient, so the parser now keeps the valid 24-hour time and leaves the invalid suffix in the words. Valid 12-hour suffixes still convert. The property generator excludes word tokens consumed by the suffix rule and covers p.m., h, hrs, -, and to.

The package runs used PROPTEST_CASES=20000, PROPTEST_MAX_GLOBAL_REJECTS=50000, and disabled failure persistence. The higher rejection cap lets the existing odd-fence generator complete 20,000 successful cases.

cargo test -p calternal-daily run 1:
test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.97s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

cargo test -p calternal-daily run 2:
test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.57s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

cargo test -p calternal-daily run 3:
test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.60s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

cargo fmt --all --check: exit 0; no output.
cargo clippy -q -p calternal-daily --all-targets -- -D warnings: exit 0; no output.

Finished on branch `issue/daily-pm-proptest`, head `71be3c7bd255a08fafea021e0320d5b8cb31cb98` (pushed; no PR opened). Cause: when a spaced `am`/`pm` suffix followed hour 00, `time_token` rejected the whole line. The daily log docs say reading is lenient, so the parser now keeps the valid 24-hour time and leaves the invalid suffix in the words. Valid 12-hour suffixes still convert. The property generator excludes word tokens consumed by the suffix rule and covers `p.m.`, `h`, `hrs`, `-`, and `to`. The package runs used `PROPTEST_CASES=20000`, `PROPTEST_MAX_GLOBAL_REJECTS=50000`, and disabled failure persistence. The higher rejection cap lets the existing odd-fence generator complete 20,000 successful cases. `cargo test -p calternal-daily` run 1: `test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.97s` `test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s` `cargo test -p calternal-daily` run 2: `test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.57s` `test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s` `cargo test -p calternal-daily` run 3: `test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.60s` `test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s` `cargo fmt --all --check`: exit 0; no output. `cargo clippy -q -p calternal-daily --all-targets -- -D warnings`: exit 0; no output.
Author
Owner

Landed in train AH, #616.

Landed in train AH, #616.
Author
Owner

Still failing after the train AH fix. Train BM (24 Oct) hit a new proptest seed in crates/daily times_tests: marker = "- ", (h, m, s) = (0, 0, None), end = None, words = ["pm"], tags = [], tz = "+05:30". That is 0:00 followed by the word pm, with an India offset. The seed file is saved on branch archive/train-bm-proptest-seed (crates/daily/proptest-regressions/times_tests.txt). Keeping this open; it is listed in #683.

Still failing after the train AH fix. Train BM (24 Oct) hit a new proptest seed in `crates/daily` `times_tests`: `marker = "- ", (h, m, s) = (0, 0, None), end = None, words = ["pm"], tags = [], tz = "+05:30"`. That is `0:00` followed by the word `pm`, with an India offset. The seed file is saved on branch `archive/train-bm-proptest-seed` (`crates/daily/proptest-regressions/times_tests.txt`). Keeping this open; it is listed in #683.
Author
Owner

Starting issue #610 on branch issue/610-pm-midnight, based on a779a46f (origin/dev), in worktree /home/kayg/Developer/wt/daily-pm-midnight. I have read all eight existing issue comments. I will reproduce the archived seed, trace the parser and formatter paths against the lenient-reading docs, preserve the seed, and run the requested gates before opening a PR.

Starting issue #610 on branch `issue/610-pm-midnight`, based on `a779a46f` (origin/dev), in worktree `/home/kayg/Developer/wt/daily-pm-midnight`. I have read all eight existing issue comments. I will reproduce the archived seed, trace the parser and formatter paths against the lenient-reading docs, preserve the seed, and run the requested gates before opening a PR.
Author
Owner

Source finding: both origin/dev at a779a46f and the archived seed branch contain the AH parser fix: time_token consumes am/pm only for hours 1 through 12 and leaves it as words after hour 0. Both versions of times_tests format hours with {h:02}, so the saved minimal tuple describes - 00:00 pm, not an unpadded formatter output. The generator also filters pm out of generated words. ADR 0026 and log.rs explicitly permit lenient reading and one-digit hours. I am replaying the seed before deciding whether any production change is justified. Initial attempts hit PATH lookup errors for cargo/rustc; sourcing env.sh inside the build slot and explicitly prepending the Nix profile fixed command lookup. No repository environment files were changed.

Source finding: both origin/dev at a779a46f and the archived seed branch contain the AH parser fix: time_token consumes am/pm only for hours 1 through 12 and leaves it as words after hour 0. Both versions of times_tests format hours with {h:02}, so the saved minimal tuple describes `- 00:00 pm`, not an unpadded formatter output. The generator also filters pm out of generated words. ADR 0026 and log.rs explicitly permit lenient reading and one-digit hours. I am replaying the seed before deciding whether any production change is justified. Initial attempts hit PATH lookup errors for cargo/rustc; sourcing env.sh inside the build slot and explicitly prepending the Nix profile fixed command lookup. No repository environment files were changed.
Author
Owner

Reproduction finding: the archived seed passes on the supplied dev base with no parser or generator changes. A replay-only run (PROPTEST_CASES=0 PROPTEST_VERBOSE=2 cargo test -j4 -p calternal-daily a_log_line_splits_into_times_words_and_tags -- --nocapture) confirms the file is loaded and one saved case is tested; its current unshrunk input is hour 15:28, range end 15:34, words [🎉], timezone +00:00, and passes. A persisted seed stores the original random stream, not the shrunk tuple in its comment. The reported midnight failure cannot be reproduced on this base. The first normal replay also passed: 1 passed, 0 failed. I will keep the exact seed and add literal tests for both - 0:00 pm and - 00:00 pm at +05:30, including note rewriting. Given the lenient-reading docs and the existing AH fix, changing the production parser or filtering more generator values would not be justified by this evidence.

Replay-only output:

    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s
     Running unittests src/lib.rs (target/debug/deps/calternal_daily-691b5ddc4e1590e8)

running 1 test
proptest: Next test input: marker = "- ", (h, m, s) = (15, 28, None), end = Some((15, 34)), words = ["🎉"], tags = ["jrqm-_", "clad/k45", "b"], tz = "+00:00"
proptest: Test case passed
test times_tests::a_log_line_splits_into_times_words_and_tags ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 21 filtered out; finished in 0.00s

Reproduction finding: the archived seed passes on the supplied dev base with no parser or generator changes. A replay-only run (`PROPTEST_CASES=0 PROPTEST_VERBOSE=2 cargo test -j4 -p calternal-daily a_log_line_splits_into_times_words_and_tags -- --nocapture`) confirms the file is loaded and one saved case is tested; its current unshrunk input is hour 15:28, range end 15:34, words [🎉], timezone +00:00, and passes. A persisted seed stores the original random stream, not the shrunk tuple in its comment. The reported midnight failure cannot be reproduced on this base. The first normal replay also passed: 1 passed, 0 failed. I will keep the exact seed and add literal tests for both `- 0:00 pm` and `- 00:00 pm` at +05:30, including note rewriting. Given the lenient-reading docs and the existing AH fix, changing the production parser or filtering more generator values would not be justified by this evidence. Replay-only output: ```text Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s Running unittests src/lib.rs (target/debug/deps/calternal_daily-691b5ddc4e1590e8) running 1 test proptest: Next test input: marker = "- ", (h, m, s) = (15, 28, None), end = Some((15, 34)), words = ["🎉"], tags = ["jrqm-_", "clad/k45", "b"], tz = "+00:00" proptest: Test case passed test times_tests::a_log_line_splits_into_times_words_and_tags ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 21 filtered out; finished in 0.00s ```
Author
Owner

Finished on branch issue/610-pm-midnight, head 93f0ada2aa900efdad4be12349a230e75aaea3d8. PR into dev: #685. No merge, deployment, or main/dev push was performed. The issue remains open.

Cause and decision: the historical failure was caused by rejecting a valid midnight time when followed by an invalid 12-hour suffix. The AH fix already handles this on the supplied base a779a46f. The reported BM recurrence cannot be reproduced on this base: both the archived seed and the exact padded and unpadded midnight lines pass without parser or generator changes. The existing generator formats two-digit hours and excludes suffix conflicts; +05:30 is applied after the log parser. ADR 0026 requires lenient reading, so keeping the valid midnight time and preserving pm as words is the correct existing behavior. The cause of the claimed BM recurrence remains unconfirmed; no new parser bug was demonstrated.

Change: preserve the relevant archived seed in crates/daily/proptest-regressions/times_tests.txt and add literal unit coverage for - 0:00 pm and - 00:00 pm at +05:30. The test verifies midnight start, absent end/tags, the pm word, and exact note rewriting. A replay-only run with PROPTEST_CASES=0 and PROPTEST_VERBOSE=2 confirms the persisted seed is loaded. The random stream replays its current unshrunk case, while the literal test permanently covers the historical shrunk case. Independent code review found no substantive issues. Only these two files under crates/daily were committed.

All five gates below ran sequentially through build-slot.sh, sourcing the unchanged ops env.sh inside each slot and prepending /home/kayg/.nix-profile/bin to PATH. Failure persistence remained enabled. Output below is verbatim; fmt and Clippy emitted no output and exited 0.

Command: PROPTEST_CASES=20000 PROPTEST_MAX_GLOBAL_REJECTS=50000 cargo test -j4 -p calternal-daily (test-1). Exit 0.

   Compiling calternal-daily v0.1.0 (/home/kayg/Developer/wt/daily-pm-midnight/crates/daily)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s
     Running unittests src/lib.rs (target/debug/deps/calternal_daily-691b5ddc4e1590e8)

running 23 tests
test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok
test day::tests::midnight_follows_the_device_in_ist ... ok
test day::tests::titles_read_like_the_web_app ... ok
test day::tests::names_and_ids ... ok
test tests::bad_input_is_refused_kindly ... ok
test tests::an_existing_day_file_is_reused_whatever_its_id ... ok
test tests::log_add_then_close_makes_a_range ... ok
test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok
test tests::no_file_until_the_first_keystroke ... ok
test tests::opening_the_same_day_at_once_makes_one_note ... ok
test tests::shared_vectors ... ok
test tests::today_follows_the_device_offset ... ok
test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok
test tests::any_text_is_safe_to_read_and_plan ... ok
test tests::close_turns_one_open_entry_into_a_range ... ok
test times_tests::a_line_with_only_tags_stays_words ... ok
test times_tests::invalid_spaced_twelve_hour_suffix_stays_a_word_after_a_24_hour_time ... ok
test times_tests::midnight_followed_by_pm_at_india_offset_keeps_the_word_when_making_a_note ... ok
test times_tests::only_a_day_note_has_times ... ok
test times_tests::any_line_is_safe ... ok
test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok
test times_tests::trailing_tags_on_any_line ... ok
test times_tests::a_log_line_splits_into_times_words_and_tags ... ok

test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.97s

   Doc-tests calternal_daily

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Command: PROPTEST_CASES=20000 PROPTEST_MAX_GLOBAL_REJECTS=50000 cargo test -j4 -p calternal-daily (test-2). Exit 0.

    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s
     Running unittests src/lib.rs (target/debug/deps/calternal_daily-691b5ddc4e1590e8)

running 23 tests
test day::tests::midnight_follows_the_device_in_ist ... ok
test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok
test day::tests::titles_read_like_the_web_app ... ok
test day::tests::names_and_ids ... ok
test tests::bad_input_is_refused_kindly ... ok
test tests::an_existing_day_file_is_reused_whatever_its_id ... ok
test tests::log_add_then_close_makes_a_range ... ok
test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok
test tests::no_file_until_the_first_keystroke ... ok
test tests::opening_the_same_day_at_once_makes_one_note ... ok
test tests::shared_vectors ... ok
test tests::today_follows_the_device_offset ... ok
test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok
test tests::any_text_is_safe_to_read_and_plan ... ok
test tests::close_turns_one_open_entry_into_a_range ... ok
test times_tests::a_line_with_only_tags_stays_words ... ok
test times_tests::invalid_spaced_twelve_hour_suffix_stays_a_word_after_a_24_hour_time ... ok
test times_tests::midnight_followed_by_pm_at_india_offset_keeps_the_word_when_making_a_note ... ok
test times_tests::only_a_day_note_has_times ... ok
test times_tests::any_line_is_safe ... ok
test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok
test times_tests::trailing_tags_on_any_line ... ok
test times_tests::a_log_line_splits_into_times_words_and_tags ... ok

test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.96s

   Doc-tests calternal_daily

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Command: PROPTEST_CASES=20000 PROPTEST_MAX_GLOBAL_REJECTS=50000 cargo test -j4 -p calternal-daily (test-3). Exit 0.

    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s
     Running unittests src/lib.rs (target/debug/deps/calternal_daily-691b5ddc4e1590e8)

running 23 tests
test day::tests::midnight_follows_the_device_in_ist ... ok
test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok
test day::tests::titles_read_like_the_web_app ... ok
test day::tests::names_and_ids ... ok
test tests::bad_input_is_refused_kindly ... ok
test tests::an_existing_day_file_is_reused_whatever_its_id ... ok
test tests::log_add_then_close_makes_a_range ... ok
test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok
test tests::no_file_until_the_first_keystroke ... ok
test tests::opening_the_same_day_at_once_makes_one_note ... ok
test tests::shared_vectors ... ok
test tests::today_follows_the_device_offset ... ok
test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok
test tests::any_text_is_safe_to_read_and_plan ... ok
test tests::close_turns_one_open_entry_into_a_range ... ok
test times_tests::a_line_with_only_tags_stays_words ... ok
test times_tests::invalid_spaced_twelve_hour_suffix_stays_a_word_after_a_24_hour_time ... ok
test times_tests::midnight_followed_by_pm_at_india_offset_keeps_the_word_when_making_a_note ... ok
test times_tests::only_a_day_note_has_times ... ok
test times_tests::any_line_is_safe ... ok
test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok
test times_tests::trailing_tags_on_any_line ... ok
test times_tests::a_log_line_splits_into_times_words_and_tags ... ok

test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.03s

   Doc-tests calternal_daily

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Command: cargo fmt --all --check (fmt). Exit 0.

Command: cargo clippy -j4 -q -p calternal-daily --all-targets -- -D warnings (clippy). Exit 0.

Finished on branch `issue/610-pm-midnight`, head `93f0ada2aa900efdad4be12349a230e75aaea3d8`. PR into dev: https://git.kayg.org/kayg/calternal/pulls/685. No merge, deployment, or main/dev push was performed. The issue remains open. Cause and decision: the historical failure was caused by rejecting a valid midnight time when followed by an invalid 12-hour suffix. The AH fix already handles this on the supplied base a779a46f. The reported BM recurrence cannot be reproduced on this base: both the archived seed and the exact padded and unpadded midnight lines pass without parser or generator changes. The existing generator formats two-digit hours and excludes suffix conflicts; +05:30 is applied after the log parser. ADR 0026 requires lenient reading, so keeping the valid midnight time and preserving pm as words is the correct existing behavior. The cause of the claimed BM recurrence remains unconfirmed; no new parser bug was demonstrated. Change: preserve the relevant archived seed in crates/daily/proptest-regressions/times_tests.txt and add literal unit coverage for `- 0:00 pm` and `- 00:00 pm` at +05:30. The test verifies midnight start, absent end/tags, the pm word, and exact note rewriting. A replay-only run with PROPTEST_CASES=0 and PROPTEST_VERBOSE=2 confirms the persisted seed is loaded. The random stream replays its current unshrunk case, while the literal test permanently covers the historical shrunk case. Independent code review found no substantive issues. Only these two files under crates/daily were committed. All five gates below ran sequentially through build-slot.sh, sourcing the unchanged ops env.sh inside each slot and prepending /home/kayg/.nix-profile/bin to PATH. Failure persistence remained enabled. Output below is verbatim; fmt and Clippy emitted no output and exited 0. Command: `PROPTEST_CASES=20000 PROPTEST_MAX_GLOBAL_REJECTS=50000 cargo test -j4 -p calternal-daily` (test-1). Exit 0. ```text Compiling calternal-daily v0.1.0 (/home/kayg/Developer/wt/daily-pm-midnight/crates/daily) Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s Running unittests src/lib.rs (target/debug/deps/calternal_daily-691b5ddc4e1590e8) running 23 tests test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok test day::tests::midnight_follows_the_device_in_ist ... ok test day::tests::titles_read_like_the_web_app ... ok test day::tests::names_and_ids ... ok test tests::bad_input_is_refused_kindly ... ok test tests::an_existing_day_file_is_reused_whatever_its_id ... ok test tests::log_add_then_close_makes_a_range ... ok test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok test tests::no_file_until_the_first_keystroke ... ok test tests::opening_the_same_day_at_once_makes_one_note ... ok test tests::shared_vectors ... ok test tests::today_follows_the_device_offset ... ok test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok test tests::any_text_is_safe_to_read_and_plan ... ok test tests::close_turns_one_open_entry_into_a_range ... ok test times_tests::a_line_with_only_tags_stays_words ... ok test times_tests::invalid_spaced_twelve_hour_suffix_stays_a_word_after_a_24_hour_time ... ok test times_tests::midnight_followed_by_pm_at_india_offset_keeps_the_word_when_making_a_note ... ok test times_tests::only_a_day_note_has_times ... ok test times_tests::any_line_is_safe ... ok test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok test times_tests::trailing_tags_on_any_line ... ok test times_tests::a_log_line_splits_into_times_words_and_tags ... ok test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.97s Doc-tests calternal_daily running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ``` Command: `PROPTEST_CASES=20000 PROPTEST_MAX_GLOBAL_REJECTS=50000 cargo test -j4 -p calternal-daily` (test-2). Exit 0. ```text Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s Running unittests src/lib.rs (target/debug/deps/calternal_daily-691b5ddc4e1590e8) running 23 tests test day::tests::midnight_follows_the_device_in_ist ... ok test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok test day::tests::titles_read_like_the_web_app ... ok test day::tests::names_and_ids ... ok test tests::bad_input_is_refused_kindly ... ok test tests::an_existing_day_file_is_reused_whatever_its_id ... ok test tests::log_add_then_close_makes_a_range ... ok test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok test tests::no_file_until_the_first_keystroke ... ok test tests::opening_the_same_day_at_once_makes_one_note ... ok test tests::shared_vectors ... ok test tests::today_follows_the_device_offset ... ok test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok test tests::any_text_is_safe_to_read_and_plan ... ok test tests::close_turns_one_open_entry_into_a_range ... ok test times_tests::a_line_with_only_tags_stays_words ... ok test times_tests::invalid_spaced_twelve_hour_suffix_stays_a_word_after_a_24_hour_time ... ok test times_tests::midnight_followed_by_pm_at_india_offset_keeps_the_word_when_making_a_note ... ok test times_tests::only_a_day_note_has_times ... ok test times_tests::any_line_is_safe ... ok test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok test times_tests::trailing_tags_on_any_line ... ok test times_tests::a_log_line_splits_into_times_words_and_tags ... ok test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.96s Doc-tests calternal_daily running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ``` Command: `PROPTEST_CASES=20000 PROPTEST_MAX_GLOBAL_REJECTS=50000 cargo test -j4 -p calternal-daily` (test-3). Exit 0. ```text Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s Running unittests src/lib.rs (target/debug/deps/calternal_daily-691b5ddc4e1590e8) running 23 tests test day::tests::midnight_follows_the_device_in_ist ... ok test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok test day::tests::titles_read_like_the_web_app ... ok test day::tests::names_and_ids ... ok test tests::bad_input_is_refused_kindly ... ok test tests::an_existing_day_file_is_reused_whatever_its_id ... ok test tests::log_add_then_close_makes_a_range ... ok test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok test tests::no_file_until_the_first_keystroke ... ok test tests::opening_the_same_day_at_once_makes_one_note ... ok test tests::shared_vectors ... ok test tests::today_follows_the_device_offset ... ok test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok test tests::any_text_is_safe_to_read_and_plan ... ok test tests::close_turns_one_open_entry_into_a_range ... ok test times_tests::a_line_with_only_tags_stays_words ... ok test times_tests::invalid_spaced_twelve_hour_suffix_stays_a_word_after_a_24_hour_time ... ok test times_tests::midnight_followed_by_pm_at_india_offset_keeps_the_word_when_making_a_note ... ok test times_tests::only_a_day_note_has_times ... ok test times_tests::any_line_is_safe ... ok test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok test times_tests::trailing_tags_on_any_line ... ok test times_tests::a_log_line_splits_into_times_words_and_tags ... ok test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.03s Doc-tests calternal_daily running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ``` Command: `cargo fmt --all --check` (fmt). Exit 0. ```text ``` Command: `cargo clippy -j4 -q -p calternal-daily --all-targets -- -D warnings` (clippy). Exit 0. ```text ```
Author
Owner

Coordinator check (26 Oct): Codex job ran the train BM seed against dev and it passes, along with 3 × 20,000-case runs. I compared the code train BM tested (archive/train-bm-proptest-seed) with port/composer and dev: crates/daily is the same apart from the seed file and a one-line change in lib.rs (visible_text) that doesn't touch the parser. The parser doesn't read the clock, the timezone or the environment. So the same code passes now that failed in BM. The most likely cause is that BM ran a stale build (as in train AB), but I can't prove that. PR #685 keeps the seed and adds exact tests for the line, so if this ever comes back, it fails every time instead of at random.

Coordinator check (26 Oct): Codex job ran the train BM seed against `dev` and it passes, along with 3 × 20,000-case runs. I compared the code train BM tested (`archive/train-bm-proptest-seed`) with `port/composer` and `dev`: `crates/daily` is the same apart from the seed file and a one-line change in `lib.rs` (`visible_text`) that doesn't touch the parser. The parser doesn't read the clock, the timezone or the environment. So the same code passes now that failed in BM. The most likely cause is that BM ran a stale build (as in train AB), but I can't prove that. PR #685 keeps the seed and adds exact tests for the line, so if this ever comes back, it fails every time instead of at random.
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#610
No description provided.