codeburn/windows/src-tauri/src
iamtoruk a2885c263b test(windows): stop the cross-process test starving itself on a loaded runner
The test ran 100 rounds a side, both taking the lock, while a reader thread
hammered the same file. Production allows a 2s wait with a 50ms poll, which
suits a UI that writes on a click but starves under that much contention: a
waiter that loses the race after each poll can exceed the budget, and the
acquire then fails by design. That is what turned main red on the merge,
not a lost update.

24 rounds a side keeps the property under test and the harness stops being
the thing that fails. Measured on this machine, ten runs each way: the test
still fails 10 out of 10 with CB_TRAY_XPROC_NOLOCK=1 and passes 10 out of
10 with the lock, so it detects the bug exactly as reliably as before.

The production budget and poll are untouched. If sustained contention ever
becomes a real workload rather than a test, the poll is the thing to
revisit, not the budget.
2026-09-03 12:52:25 -07:00
..
autostart.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
cli.rs fix(windows): tray telemetry off the UI thread, bounded, and Linux-clean 2026-09-03 03:06:12 -07:00
config.rs feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
dock.rs test(windows): stop the cross-process test starving itself on a loaded runner 2026-09-03 12:52:25 -07:00
fx.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
glance.rs feat(windows): cache the Capacity Dock's glance data in Rust 2026-09-02 08:16:48 -07:00
lib.rs fix(windows): tray telemetry off the UI thread, bounded, and Linux-clean 2026-09-03 03:06:12 -07:00
main.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
plan.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
refresh.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
session.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
settings.rs fix(windows): wait out a reader when replacing a preference file 2026-09-03 11:10:33 -07:00
telemetry.rs fix(windows): tray telemetry off the UI thread, bounded, and Linux-clean 2026-09-03 03:06:12 -07:00
tray_badge.rs feat(windows): the tray says when a paired device did not report 2026-09-02 01:39:10 -07:00
tray_linux.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
tray_status.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
update.rs feat(windows): report updates and point at GitHub instead of installing them 2026-09-02 23:09:36 -07:00
usage_guard.rs chore(windows): remove what nothing reads 2026-09-02 00:23:16 -07:00