Skip to content

Local builds that are never finalized finish quietly instead of failing (sc-8795) - #24

Merged
ndbroadbent merged 1 commit into
mainfrom
local-expiry
Dec 2, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
local-expiry

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

sc-8795, second part. A local run that never calls visualci build finalize was expired as a failure after an hour ("the CI job most likely stopped"). That happens with a per-test helper in a test runner with no hook at exit, such as Rust test binaries. Since #21, visualci test -- <command> finalizes a run when it ends. For runs without it, a quiet local build now ends quietly too.

  • builds::Model::expire_abandoned handles a build with nothing new for an hour by its mode:

    • a CI build still fails, with ABANDONED;
    • a local build becomes a subset build that may be empty, and is finalized and compared like any other. Nothing it didn't send counts as removed, and the snapshots compare --wait already checked keep their results. It carries the warning LOCAL_FINISHED, which says it finished without visualci build finalize and points to visualci test. Processing keeps that warning (it rebuilds a build's warnings from its settings).

    It returns Expired { failed, finished }.

  • workers::expire_abandoned is one helper for the three callers: build create (REST and MCP) and the builds:expire task.

    • Failed builds get their check concluded, as before.
    • Finished ones go to the processing worker, after the same out-of-credits stop a finalize does.
  • Docs: the local runs page says a never-finalized local build isn't a failure. The local-runs skill is regenerated, plugin 0.1.32. (main is at 0.1.31.)

Test: the abandoned-build request test now also creates a local build and ages both by two hours. The CI one fails with ABANDONED. The local one isn't failed or receiving: it's a subset, may be empty, has finalized_at set, no error, and LOCAL_FINISHED as its last warning. A second sweep finds nothing. API and MCP request tests pass on docspring-dev, and clippy is clean.

Review: no screenshots change.

… an hour with nothing new, a local build is finalized as a subset of what arrived and compared, with a warning saying so, instead of failing like an abandoned CI build; one workers::expire_abandoned for build create (REST, MCP) and builds:expire; the local runs page says so; plugin 0.1.30
@visualci-com

visualci-com Bot commented Dec 2, 2026

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #134 · 302 unchanged · no changes

This PR vs base: nothing since #132, across 1 build

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent merged commit f76c253 into main Dec 2, 2026
10 checks passed
@ndbroadbent
ndbroadbent deleted the local-expiry branch December 2, 2026 06:59
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