Files
meshcore-analyzer/cmd
openclaw-bot cb6bab577f test(#1724): RED — chunked tx_last_seen backfill behavior + edges
Adds the failing test suite for the new chunkedTxLastSeenBackfill helper
that will replace the single-statement #1690 backfill in the next commit.

Tests pin the contract reviewers flagged on the prior attempt:
  - Reader yields between batches (concurrent reader latency bounded —
    a single-tx fake would NOT satisfy this).
  - With seedN=12000 + batchSize=5000, progress callback fires >=3 times.
  - ctx cancel mid-loop -> context.Canceled + partial commits visible.
  - Concurrent INSERT of new last_seen=0 rows does not trap the loop
    (maxID snapshot bounds the scan).
  - Orphan transmissions (no observations) are skipped via EXISTS so
    the loop terminates deterministically.
  - Param validation: batchSize<=0 and negative yieldDelay are rejected
    (no <0 sentinel).
  - Error propagation: closed DB surfaces -> migration cannot silently
    report success.

Includes a minimal stub of chunkedTxLastSeenBackfill (returns zero/nil)
so the file compiles and the tests run to their assertions. The GREEN
commit replaces the stub with the real chunked implementation.
2026-06-16 18:31:00 +00:00
..