Skip to content

Reruns: an empty rerun finalizes and follows its suite's unfinished build (DocSpring PR #1482) - #273

Merged
ndbroadbent merged 2 commits into
mainfrom
rerun-adopt-receiving
Dec 5, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
rerun-adopt-receiving

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

A follow-up to #161 (sc-9044). It covers the case that turned "VisualCI: pdf" red on DocSpring PR #1482 (commit 0b7719c, pipeline 11248):

  1. In the first workflow, rspec_pdf uploaded to pdf build 144. Then rspec_features failed, so visualci_finalize never ran, and build 144 stayed receiving.
  2. "Rerun from failed" carried rspec_pdf over without running it. Its visualci_finalize finalized a new, empty pdf build 153, which failed with "No snapshots were sent": there was no finalized build to follow.

Change

  • When an empty CI build is finalized and no finalized build covers its commit, it looks for an earlier build that meets all of these:
    • same project, suite, environment, commit and branch;
    • still receiving;
    • follows no other build;
    • was sent at least one snapshot;
    • has had nothing arrive for 5 minutes.
  • If it finds one, the empty build follows that build. The earlier build is finalized (all its shards), gets a warning naming the rerun, and is queued. When it concludes, the empty build takes its result, as it does for a covered build today.
  • The 5 quiet minutes mean a workflow that's still uploading is never cut short. If nothing qualifies, the empty build fails as before.
  • This happens on finalizing (finalize_shard), before the empty build is processed. That way the two builds are processed one after the other, never one inside the other.
  • Processing keeps the adopted build's warning, as it keeps LOCAL_FINISHED.
  • Docs: a sentence each in the CircleCI, GitHub Actions and other-CI rerun sections, plus a changelog line. Skills are regenerated and the plugin is at 0.1.71 (Gallery versions (sc-9563): visualci release keeps what the gallery showed at each release #258 takes 0.1.69 and Docs: keep your committed snapshots (sc-8887) #247 0.1.70; it's renumbered at merge if the order changes).

Tests

  • an_empty_rerun_finalizes_the_unfinished_build_of_its_commit:
    • an unfinished build, quiet for 6 minutes, is finalized and processed with its two snapshots and the warning;
    • the empty rerun completes, passing, with its result and check;
    • a build sent a minute ago is left receiving, and its empty rerun fails as empty.
  • All 418 app tests pass and clippy is clean.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #1216 · 4 changed, 569 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent

#273: changelog line for empty reruns finalizing the first run's build.

This PR vs base: 32 changed, 12 added since #1094, across 3 builds

Snapshot What changed Close-up: before → after
screenshots/changelog/1440-dark (changed)
before · after

Content below here moved
screenshots/changelog/1440-light (changed)
before · after

Content below here moved
screenshots/changelog/390-dark (changed)
before · after

Content below here moved
screenshots/changelog/390-light (changed)
before · after

Content below here moved

docspring/visualci · journeys · build #1212 · 50 unchanged · no changes

This PR vs base: 16 changed since #1088, across 3 builds

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

…ite and commit (sent snapshots, quiet for 5 minutes) and follows it, when its finalizing job never ran (DocSpring PR #1482); plugin 0.1.71
…nded); count bundle uploads as activity; no reload in the request; claim before following
@ndbroadbent
ndbroadbent force-pushed the rerun-adopt-receiving branch from 1026523 to 5b9b063 Compare December 5, 2026 08:45
@ndbroadbent
ndbroadbent merged commit f6de347 into main Dec 5, 2026
17 checks passed
@ndbroadbent
ndbroadbent deleted the rerun-adopt-receiving branch December 5, 2026 08:57
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