Skip to content

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
ndbroadbent merged 1 commit into
mainfrom
cli-base-branch
Dec 4, 2026

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

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 (GITHUB_BASE_REF, else the event payload);
    • GitLab (CI_MERGE_REQUEST_TARGET_BRANCH_NAME);
    • Jenkins (CHANGE_TARGET);
    • Bitbucket, Buildkite, Semaphore and Travis.

    VISUALCI_BASE_BRANCH overrides it. The Action's workflow_run path 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:

    • they try up to 10 times on 429, 502, 503, 504, timeouts and connection errors;
    • they back off 0.5, 1, 2, 4 and then 8 s, with jitter, honouring Retry-After;
    • each retry is printed to stderr;
    • a 500 is never retried.

    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 v0 tag to each release, so workflows can use DocSpring/visualci/clients/github-action@v0. Marketing switches the docs once it exists.

  • Default versions: the Action's and the CircleCI orb's default version is the release they ship in (it was stuck at 0.2.8). cli_version.sh fails 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.
  • The base branch per provider, and the override, are covered in ci.rs's tests.
  • fmt, clippy --locked, and 87 CLI and core tests pass on the rebased commit.
  • cli_version.sh was checked to fail with the old 0.2.8 defaults.

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

@visualci-com

visualci-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/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
ndbroadbent merged commit 42e4a7a into main Dec 4, 2026
16 checks passed
@ndbroadbent
ndbroadbent deleted the cli-base-branch branch December 4, 2026 15:41
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