Skip to content

Tasks/diagnostic tooling - #5

Merged
mikezupper merged 6 commits into
mainfrom
tasks/diagnostic-tooling
Jul 11, 2026
Merged

Tasks/diagnostic tooling#5
mikezupper merged 6 commits into
mainfrom
tasks/diagnostic-tooling

Conversation

@mikezupper

Copy link
Copy Markdown
Contributor

No description provided.

mikezupper and others added 6 commits July 11, 2026 08:11
seeded_event_prices has no `id` column (PK is chain_id, tx_hash, log_index,
asset), so `SELECT MAX(id)` errored ("column id does not exist") every cycle.
The seed pass runs first in run_all, so it aborted the whole valuator before
the ETH/LPT/multi passes ran — pricing stopped and no finalized_at cursors were
written. Use count(*) (append-only table => monotonic change signal), which
fits the BIGINT marker column. Verified end-to-end against a seeded DB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… path

The seed marker (seeded_event_prices row count) was only written after the bulk
batch, but the steady-state exit returns early at "no candidates" before that.
So the marker was never stored, the change-detector never matched, and the
expensive has_seed_candidates EXISTS scan (~4s) ran every 60s cycle anyway.
Extract a record_seed_marker helper and call it on both exit paths. Verified
end-to-end: the SEED cursor row is now written on the no-candidates path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Move metrics_handler above the test module in daemon http.rs and run
cargo fmt --all across the workspace.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Add a GIT_SHA build-arg to the Dockerfile that self-reports as both a
LABEL (git_sha) and ENV var on the runtime image, so a deployed image
answers "which commit is this?" without log archaeology — the exact
question that cost us a cycle when a stale :latest was serving an older
binary. Placed last in the runtime stage so a changed SHA never
invalidates the Rust/FE build cache. Wire it through docker-compose.yml's
build section from a GIT_SHA env var (defaults to "unknown").

Verify a deploy with:
  docker image inspect <img> --format '{{.Config.Labels.git_sha}}'
  docker exec <container> printenv GIT_SHA   # catches stale-:latest

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mikezupper
mikezupper merged commit 0ffc3c4 into main Jul 11, 2026
4 checks passed
@mikezupper
mikezupper deleted the tasks/diagnostic-tooling branch July 11, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant