Skip to content

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

Open
ndbroadbent wants to merge 3 commits into
mainfrom
sc-8866
Open

ndbroadbent wants to merge 3 commits 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.

…ine came from (sc-8866): finalize takes empty_reason (REST, MCP finalize_build, CLI build finalize --empty-reason; implies allow_empty; builds.empty_reason, migration 000042); 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.13; plugin 0.1.39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant