Skip to content

A build finished empty on purpose says why, and where its baseline came from (sc-8866) - #44

Merged
ndbroadbent merged 1 commit into
mainfrom
sc-8866
Dec 2, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
sc-8866

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

A CI run that skips a suite's jobs (DocSpring's cache markers on a docs-only push, DocSpring PR 1452) finishes that suite's build with --allow-empty. The build passes, but its check and page only said "0 unchanged, 0 changed…", which reads like something broke.

  • finalize takes empty_reason (REST, MCP finalize_build, CLI build finalize --empty-reason). It implies allow_empty, and is stored in builds.empty_reason (migration 000042), 1 to 200 characters.
  • The summary line (GitHub check, build page, get_build) of a build that sent nothing on purpose reads "No snapshots this run (inputs unchanged): baseline from #N". Without a reason it reads "No snapshots this run: baseline from #N", and with no base, "no baseline yet".
  • Docs:
    • The CircleCI guide explains cache-skipped jobs (with --allow-empty until 0.2.13 is out).
    • The API reference documents empty_reason.
    • The CLI docs move to --empty-reason in the commit after the release, with the VISUALCI_VERSION lines.
  • CLI 0.2.13, plugin 0.1.39 (visualci-circleci skill).

Tests: a_build_empty_on_purpose_says_why_and_where_its_baseline_came_from (a subset build carries everything from its ancestor, concludes unchanged, and its summary line names the reason and the base), and finalize_takes_a_reason_for_having_no_snapshots (REST). Full workspace: 264 passed on docspring-dev; clippy and fmt are clean.

@ndbroadbent
ndbroadbent force-pushed the sc-8866 branch 2 times, most recently from 3ee6cd7 to e7d7347 Compare December 2, 2026 11:27
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #189 · 331 unchanged · no changes

This PR vs base: 7 changed, 34 added, 17 removed since #162, across 5 builds

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

@ndbroadbent ndbroadbent closed this Dec 2, 2026
@ndbroadbent
ndbroadbent deleted the sc-8866 branch December 2, 2026 12:04
@ndbroadbent
ndbroadbent restored the sc-8866 branch December 2, 2026 12:04
@ndbroadbent ndbroadbent reopened this Dec 2, 2026
…ine came from (sc-8866): finalize takes empty_reason (REST, MCP finalize_build, CLI build finalize --empty-reason, sent only when given; implies allow_empty; builds.empty_reason, migration 000047); the summary line (GitHub check, build page, get_build) reads 'No snapshots this run (inputs unchanged): baseline from #N'; the CircleCI guide explains cache-skipped jobs; CLI 0.2.16; plugin 0.1.44
@ndbroadbent
ndbroadbent merged commit 0351f1a into main Dec 2, 2026
10 checks passed
@ndbroadbent
ndbroadbent deleted the sc-8866 branch December 2, 2026 12:27
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