Repository navigation
CLI 0.2.26: the pull request's base branch from every CI provider; API calls retry through a deploy; a floating v0 tag; Action and orb defaults follow each release (sc-9247) - #200
Merged
Conversation
VisualCIdocspring/visualci · build #750 · 521 unchanged · no changes This PR vs base: 69 changed, 107 added since #577, across 2 builds docspring/visualci · journeys · build #746 · 50 unchanged · no changes This PR vs base: 3 changed, 8 added since #548, across 2 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
…er (VISUALCI_BASE_BRANCH overrides); API calls try again through a deploy's 502/503/504; the release moves a floating v0 tag; the Action's and orb's default version follow each release (sc-9247)
ndbroadbent
force-pushed
the
cli-base-branch
branch
from
December 4, 2026 15:31
ac1f4f4 to
fdeaf07
Compare
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.
CLI 0.2.26, the client half of sc-9247. The server half (#178) is live, which this needs: the API refuses unknown fields, and CI's visual and journeys jobs run this PR's CLI against production.
What changes
The pull request's base branch is sent with every build, from each CI provider:
GITHUB_BASE_REF, else the event payload);CI_MERGE_REQUEST_TARGET_BRANCH_NAME);CHANGE_TARGET);VISUALCI_BASE_BRANCHoverrides it. The Action'sworkflow_runpath sets it from the triggering run. The server compares a PR build with its base branch's approved build (A pull request build compares with its base branch's approved build, never an unapproved one (sc-9247) #178).API calls retry through a deploy:
Retry-After;This was docspring Blog infrastructure for visualci.com/blog (no posts yet) #101: a 503 while a deploy had no healthy pod failed the CI job.
The release workflow moves a floating
v0tag to each release, so workflows can useDocSpring/visualci/clients/github-action@v0. Marketing switches the docs once it exists.Default versions: the Action's and the CircleCI orb's default
versionis the release they ship in (it was stuck at 0.2.8).cli_version.shfails when they don't match the workspace version, and AGENTS.md says so.Release note (from GitHub Action: a missing token fails the step instead of passing quietly; VISUALCI_TOKEN from the env works too (sc-9246) #180): an empty token no longer skips the Action, except on forks and for Dependabot. A workflow that relied on that (a scheduled job in a repository without the secret, say) now fails until it passes the token or drops the step.
Tests
api_calls_try_again_while_a_deploy_has_no_healthy_upstream: answers of 503, 502, 504 and 429 make 5 requests and then succeed.api_calls_give_up_after_ten_tries_and_never_retry_a_server_error.ci.rs's tests.--locked, and 87 CLI and core tests pass on the rebased commit.cli_version.shwas checked to fail with the old 0.2.8 defaults.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.