store, runs: the log of a check that ended as t's own error is kept only until its job's row is consumed; the run still names it and t log then says the blob is missing #105

Open
opened 2026-11-18 15:22:12 +00:00 by xemmerling · 0 comments
Owner

A question with the facts behind it, not a fault I claim: the one log t does not keep is the log of a check that ended as t's own error, and the run that shows the check still names it.

What I met

Run r80eecae1e1 on production (d748ed8d), check test-x86_64/tilo-app-cli, ended error with cause cache_unreachable at 13:28:43Z on 2026-11-18 (issue 104).

  • 13:32Z: t log --run r80eecae1e1 test-x86_64/tilo-app-cli gave the log, 13 lines.
  • 15:17Z: the same command gave t: no log f6cada01aa6d…: blob f6cada01aa6d… missing.

The same for r31362d141f, test/snippets, the error of 10:13Z (no log bd35c754e084…). Logs of failed checks of head runs of the same hours are whole (test/tilo-session of 09:17Z and 12:46Z, 10,000 lines each).

Why, as the code has it

  • db/refs.sql is every hash the store's collection keeps for a row. Logs come from four places: result_latest.log, publications.log, fixes.log and jobs.end_ ->> 'log'. A run's finished event is not among them.
  • db/results.rs, its head: "A verdict t caused (its end was t's) is never passed in: a t-caused failure is never kept as the code's verdict". So an errored check has no row in result_latest.
  • Its job's row names the log until the run has taken the end (db/runs.rs:879, DELETE FROM jobs). At 15:19Z jobs held neither j611-35284 nor j611-35287 and blob_refs had no row for the hash.
  • The store's volume is short, so the collection runs back to back: thirty passes in the two hours I read, each deleting 7 to 19 GB as "what nothing names past the short grace".

So such a log lives from the job's end to the first pass after its grace, and server/logs.rs:53 then answers not found. docs/storage.md says what it says: "Logs never age: a verdict's, a publication's, a fix's or a stored job end's log is kept for as long as the row naming it". The row is gone within seconds.

Why I ask

  • A person whose check erred by t's fault is told error with a one-line excerpt, and an hour later cannot read the log of it. The message they get is a missing blob, which reads as something broken.
  • These are the failures whose logs are needed to find t's faults. Twice today a refused job's own files were gone before a capture read them, and the run's log was what was left; then it was gone too.
  • The run's event keeps naming a hash nothing holds.

What could be meant

  1. It is meant, and t log says so: "the log of a check that ended as t's error is not kept", in place of a missing blob.
  2. An errored check's log is kept for as long as its run's row, as one more line of blob_refs, with the run's end as its age so that a short volume can still let old ones go.

I do not know which you intend, and I change nothing. My own capture now fetches such a run's log within seconds of the server's line.

A question with the facts behind it, not a fault I claim: the one log t does not keep is the log of a check that ended as t's own error, and the run that shows the check still names it. ## What I met Run r80eecae1e1 on production (d748ed8d), check `test-x86_64/tilo-app-cli`, ended `error` with cause `cache_unreachable` at 13:28:43Z on 2026-11-18 (issue 104). - 13:32Z: `t log --run r80eecae1e1 test-x86_64/tilo-app-cli` gave the log, 13 lines. - 15:17Z: the same command gave `t: no log f6cada01aa6d…: blob f6cada01aa6d… missing`. The same for r31362d141f, `test/snippets`, the error of 10:13Z (`no log bd35c754e084…`). Logs of failed checks of head runs of the same hours are whole (`test/tilo-session` of 09:17Z and 12:46Z, 10,000 lines each). ## Why, as the code has it - `db/refs.sql` is every hash the store's collection keeps for a row. Logs come from four places: `result_latest.log`, `publications.log`, `fixes.log` and `jobs.end_ ->> 'log'`. A run's `finished` event is not among them. - `db/results.rs`, its head: "A verdict t caused (its end was t's) is never passed in: a t-caused failure is never kept as the code's verdict". So an errored check has no row in `result_latest`. - Its job's row names the log until the run has taken the end (`db/runs.rs:879`, `DELETE FROM jobs`). At 15:19Z `jobs` held neither j611-35284 nor j611-35287 and `blob_refs` had no row for the hash. - The store's volume is short, so the collection runs back to back: thirty passes in the two hours I read, each deleting 7 to 19 GB as "what nothing names past the short grace". So such a log lives from the job's end to the first pass after its grace, and `server/logs.rs:53` then answers not found. `docs/storage.md` says what it says: "Logs never age: a verdict's, a publication's, a fix's or a stored job end's log is kept for as long as the row naming it". The row is gone within seconds. ## Why I ask - A person whose check erred by t's fault is told `error` with a one-line excerpt, and an hour later cannot read the log of it. The message they get is a missing blob, which reads as something broken. - These are the failures whose logs are needed to find t's faults. Twice today a refused job's own files were gone before a capture read them, and the run's log was what was left; then it was gone too. - The run's event keeps naming a hash nothing holds. ## What could be meant 1. It is meant, and `t log` says so: "the log of a check that ended as t's error is not kept", in place of a missing blob. 2. An errored check's log is kept for as long as its run's row, as one more line of `blob_refs`, with the run's end as its age so that a short volume can still let old ones go. I do not know which you intend, and I change nothing. My own capture now fetches such a run's log within seconds of the server's line.
Sign in to join this conversation.
No labels
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
tilo/t#105
No description provided.