Fix the flaky logger test and stop timing tests failing (#12) #25

Merged
eric merged 1 commit from eric/fix-12-failing-tests into master 2026-10-12 15:49:54 -05:00 AGit
Owner

Closes #12

Flaky logger test: the cause wasn't test_log_level_info_filtering itself. test_write_without_initialization was the only logger test without #[serial_test::serial]. It ran at the same time as the others and cleared the shared global log file while they were writing, so whichever test was running lost its messages. It's now serial too.

  • Ran cargo test --test logger_tests 30 times: 9/30 failed before, 0/30 after.
  • --test-threads=1 is no longer needed.

Timing tests: test_buffer_clearing_performance, test_buffer_comparison_performance and test_large_list_rendering assert time limits. They fail in debug builds and whenever the machine is busy (all three failed during a full parallel run on tatsoi). They're now #[ignore] with a reason. To run them by hand:

cargo test --release --test buffer_performance_tests -- --ignored

They pass that way (3/3).

Result: full suite 206 passed, 0 failed, 5 ignored (3 new plus 2 that were already ignored), three runs in a row.

🤖 Generated with Claude Code

https://claude.ai/code/session_01E2XefpQijvBcJBfgzuaoWA

Closes #12 **Flaky logger test:** the cause wasn't `test_log_level_info_filtering` itself. `test_write_without_initialization` was the only logger test without `#[serial_test::serial]`. It ran at the same time as the others and cleared the shared global log file while they were writing, so whichever test was running lost its messages. It's now serial too. - Ran `cargo test --test logger_tests` 30 times: 9/30 failed before, 0/30 after. - `--test-threads=1` is no longer needed. **Timing tests:** `test_buffer_clearing_performance`, `test_buffer_comparison_performance` and `test_large_list_rendering` assert time limits. They fail in debug builds and whenever the machine is busy (all three failed during a full parallel run on tatsoi). They're now `#[ignore]` with a reason. To run them by hand: ``` cargo test --release --test buffer_performance_tests -- --ignored ``` They pass that way (3/3). **Result:** full suite 206 passed, 0 failed, 5 ignored (3 new plus 2 that were already ignored), three runs in a row. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01E2XefpQijvBcJBfgzuaoWA
test_write_without_initialization was the only logger test without
#[serial]. It ran alongside the others and set the global LOG_FILE to
None while they were writing, so a different logger test failed on
about 1 run in 3.

The three buffer tests that assert wall-clock limits fail in debug
builds and under load. They're now #[ignore]d with a note on how to run
them by hand in release mode.

Closes #12

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E2XefpQijvBcJBfgzuaoWA
eric merged commit 3949e39fef into master 2026-10-12 15:49:54 -05:00
Sign in to join this conversation.
No reviewers
No labels
bug
chore
feature
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
spinach-dev/movies!25
No description provided.