Repository navigation
Conversation
HugoXK-bot
requested changes
Nov 23, 2026
HugoXK-bot
left a comment
Collaborator
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES at 4ea3de4
- Missing screenshots: this is a console UI change —
src/views/pages.ts:4850-4851adds two rows to the/admin/metricsAutomation health card and:4854-4855rewrites its footer — and the PR carries no before/after pair (nothing in the body, no comment, and noevidence/1230orevidence/1249branch). - Attach a same-view, same-width before/after pair as raw links (for example an
evidence/1230branch, asevidence/659did for #1201 andevidence/1198-clock-fail-bannerfor #1202), both languages and both viewports; the tip itself does not need to move. - The rest of the diff read consistent and CI at this sha is green except
review-gate: the reaper writes the terminalreapedattempt in the same transaction (src/jobs/service.ts:1860),oldestLiveLease/lastReapedLeaseread those durable rows (src/db.ts:7683-7712), andFledgeLeaseReapedreads the counter the tick increments (deploy/prometheus/fledge-alerts.yml:80-91).
Written-by: HugoXK-bot
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Written-by: HugoXK
Fixes #1230
What changed
fledge_job_lease_age_seconds— the age of the oldest live lease, published on every scheduler tick and removed when no lease is live, so an empty panel means "none", not a stale reading.fledge_job_lease_renew_failures_total{kind}— a live job's heartbeat renewal was refused because the lease moved; a terminal row releasing its lease is the normal end and is not counted.fledge_lease_expired_total{kind}is the reaped count. The issue named a secondfledge_job_leases_reaped_total; adding it would count the same reap twice, so the alert and the card read the existing counter and the docs say which name means what.Store.oldestLiveLease()andStore.lastReapedLease()read the durablejobs/job_attemptsrows rather than an in-process counter. The reaped row is the terminalreapedattempt the reaper writes in the same transaction that finalises the job./admin/metricsAutomation health card now shows the oldest live lease (job, kind, repository, held-for, expires-in) and the newest reaped attempt (job, kind, repository, age). The card says the counters restart with the process while the two lease rows come from the database.FledgeLeaseReapedpages onincrease(fledge_lease_expired_total[15m]) > 0. Nofordelay: one reaped lease is enough to look.docs/architecture.md(Lease health) anddocs/observability.md(series, card, alert) record the semantics. Onechangelog.d/1230.added.mdfragment.test/leaseHealth.test.tscovers the two store reads, the card summary and the gauge presence/absence;test/automationHealth.test.tscovers the alert reading a series the code records; the existing card and page fixtures carry the new fields.Ran:
npx tsx --test test/leaseHealth.test.ts test/automationHealth.test.ts test/sloDefinitions.test.ts test/alertBuckets.test.ts— 19 pass, 0 failnpm run lint— 11 baseline warnings, unchangednpm run typecheck— passnpm run build— passnpm test— 3322 pass / 9 fail. The same 9 fail on the untouchedv0.5.0tree in a second worktree:deployAutomation(5),gateBaseTree(1),nginxCheck(2),securityHeaders(1). They are macOS host/tool failures, not this diff.Not run:
npm run checkon this macOS host is blocked by the same 9 pre-existing failures; lint, typecheck and build pass before them.Risks
fledge_lease_expired_totalis now described as the reaped count. That is the event the counter has always recorded; no value changes.deploy/,src/db.ts,src/jobs/,docs/architecture.md). The tip needs a PASS fromHugoXK-bot; the author of the tip may not PASS it. I have not posted one.Docs updated:
docs/architecture.md— Lease health (#1230);docs/observability.md— Core series, Automation health card and theFledgeLeaseReapedalert.