EverOS/tests
zhanghui 72c1facdbf
fix(cascade): record which beat lost the optimize commit race (#390)
The benign-conflict log said a commit race was lost but not by which
maintenance beat, and lance labels both beats' commit identically
("This Rewrite transaction was preempted by concurrent transaction ..."),
so the message alone cannot separate them. The costs differ sharply:

- a lost LIGHT beat is free — compaction retries ~10s later;
- a lost HEAVY beat means that table skipped a whole prune cadence, so
  its superseded files stay on disk until the next one lands.

Reading an index-dir growth incident off the logs therefore meant
back-inferring which beats were heavy from the 300s cadence. That was
done once during the storage soak to explain a 13-minute window where
one table's cleanup stalled with no failure logged, and it cost two
35-minute debug-level reruns to confirm — the field makes it a grep.

Adds `pruned` to the conflict log, mirroring the sibling failure log.
Log level (debug) and the benign-conflict semantics are unchanged: the
streak is still not incremented and no fallback rebuild is triggered.

Test asserts both beats in one run: the heavy beat's conflict logs
pruned=True and the light beat's logs pruned=False. Mutation-verified —
dropping the field fails the test with KeyError.

Co-authored-by: zhanghui <zhanghui@shanda.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Elliot Chen <2340896+cyfyifanchen@users.noreply.github.com>
2026-08-05 13:48:15 +08:00
..
e2e fix(lancedb): reclaim stale versions via write-locked prune (#379) 2026-08-03 15:41:13 +08:00
fixtures fix(lancedb): reclaim stale versions via write-locked prune (#379) 2026-08-03 15:41:13 +08:00
helpers chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
integration fix(cascade): per-kind prune staleness + rebuild safety (#384) 2026-08-04 20:03:01 +08:00
unit fix(cascade): record which beat lost the optimize commit race (#390) 2026-08-05 13:48:15 +08:00
__init__.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
_consistency_assertions.py chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
conftest.py refactor(config): make [embedding] and [rerank] soft dependencies (#361) 2026-07-29 11:05:23 +08:00