From 8b45b801d536a0838962e022dd208363dae4f772 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 2 Dec 2026 21:11:27 +1300 Subject: [PATCH] Docs pin CLI 0.2.12: visualci test's VISUALCI_MODE (local or ci) in the CLI reference and on the local runs page, for test helpers deciding whether to fail a test on its changes; plugin 0.1.36 --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- .cursor-plugin/plugin.json | 2 +- gemini-extension.json | 2 +- server/frontend/content/docs/ci/bitbucket.md | 2 +- server/frontend/content/docs/ci/buildkite.md | 2 +- server/frontend/content/docs/ci/circleci.md | 2 +- server/frontend/content/docs/ci/github-actions.md | 12 ++++++------ server/frontend/content/docs/ci/gitlab.md | 2 +- server/frontend/content/docs/ci/jenkins.md | 2 +- server/frontend/content/docs/ci/semaphore.md | 2 +- server/frontend/content/docs/ci/teamcity.md | 2 +- server/frontend/content/docs/ci/travis.md | 2 +- server/frontend/content/docs/local-runs.md | 4 ++-- server/frontend/content/docs/quick-start.md | 2 +- server/frontend/content/docs/reference/cli.md | 4 ++-- .../frontend/content/docs/snapshots/laravel-rust.md | 4 ++-- server/frontend/public/ci.md | 2 +- skills/visualci-bitbucket/SKILL.md | 2 +- skills/visualci-buildkite/SKILL.md | 2 +- skills/visualci-circleci/SKILL.md | 2 +- skills/visualci-github-actions/SKILL.md | 12 ++++++------ skills/visualci-gitlab/SKILL.md | 2 +- skills/visualci-jenkins/SKILL.md | 2 +- skills/visualci-laravel-rust/SKILL.md | 4 ++-- skills/visualci-local-runs/SKILL.md | 4 ++-- skills/visualci-semaphore/SKILL.md | 2 +- skills/visualci-teamcity/SKILL.md | 2 +- skills/visualci-travis/SKILL.md | 2 +- skills/visualci/SKILL.md | 2 +- 30 files changed, 45 insertions(+), 45 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index a3d31c2f..045eec54 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -5,7 +5,7 @@ "plugins": [ { "name": "visualci", - "version": "0.1.35", + "version": "0.1.36", "description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.", "author": { "name": "DocSpring", "url": "https://visualci.com" }, "homepage": "https://visualci.com/docs/skills/", diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 13c6797b..7dcbb9d6 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "visualci", - "version": "0.1.35", + "version": "0.1.36", "description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.", "author": { "name": "DocSpring", "url": "https://visualci.com" }, "homepage": "https://visualci.com/docs/skills/", diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 119443f3..aa6ede5e 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "visualci", "displayName": "VisualCI", - "version": "0.1.35", + "version": "0.1.36", "description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.", "author": { "name": "DocSpring" diff --git a/gemini-extension.json b/gemini-extension.json index 57e45261..d7585f9a 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,6 +1,6 @@ { "name": "visualci", - "version": "0.1.35", + "version": "0.1.36", "description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.", "mcpServers": { "visualci": { diff --git a/server/frontend/content/docs/ci/bitbucket.md b/server/frontend/content/docs/ci/bitbucket.md index 538df009..78a23fc7 100644 --- a/server/frontend/content/docs/ci/bitbucket.md +++ b/server/frontend/content/docs/ci/bitbucket.md @@ -14,7 +14,7 @@ pipelines: name: Test image: node:24 script: - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR=/usr/local/bin sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR=/usr/local/bin sh - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u # write snapshots instead of failing; see the snapshot guides - visualci upload --from auto src tests diff --git a/server/frontend/content/docs/ci/buildkite.md b/server/frontend/content/docs/ci/buildkite.md index 639538d4..42de03da 100644 --- a/server/frontend/content/docs/ci/buildkite.md +++ b/server/frontend/content/docs/ci/buildkite.md @@ -11,7 +11,7 @@ The CLI reads the commit from `BUILDKITE_COMMIT`, the branch from `BUILDKITE_BRA steps: - label: ":test_tube: Tests" command: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$$HOME/bin" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$$HOME/bin" sh export PATH="$$HOME/bin:$$PATH" export VISUALCI_BUILD_ID=$$(visualci build create) npm test -- -u diff --git a/server/frontend/content/docs/ci/circleci.md b/server/frontend/content/docs/ci/circleci.md index 229b2234..0d920847 100644 --- a/server/frontend/content/docs/ci/circleci.md +++ b/server/frontend/content/docs/ci/circleci.md @@ -16,7 +16,7 @@ jobs: - checkout - run: name: Install VisualCI - command: curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$HOME/bin" sh + command: curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$HOME/bin" sh - run: name: Start a VisualCI build command: echo "export VISUALCI_BUILD_ID=$($HOME/bin/visualci build create)" >> "$BASH_ENV" diff --git a/server/frontend/content/docs/ci/github-actions.md b/server/frontend/content/docs/ci/github-actions.md index 6d06d42c..57d930f9 100644 --- a/server/frontend/content/docs/ci/github-actions.md +++ b/server/frontend/content/docs/ci/github-actions.md @@ -17,7 +17,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha || github.sha }} fetch-depth: 0 # VisualCI finds the baseline through the commit's ancestors - run: npm test -- -u # write snapshots instead of failing; see the snapshot guides - - uses: DocSpring/visualci/clients/github-action@v0.2.10 + - uses: DocSpring/visualci/clients/github-action@v0.2.12 if: always() with: token: ${{ secrets.VISUALCI_TOKEN }} @@ -50,7 +50,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from browser: [chromium, webkit] steps: # ... checkout and tests ... - - uses: DocSpring/visualci/clients/github-action@v0.2.10 + - uses: DocSpring/visualci/clients/github-action@v0.2.12 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize: false @@ -62,7 +62,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: DocSpring/visualci/clients/github-action@v0.2.10 + - uses: DocSpring/visualci/clients/github-action@v0.2.12 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize-only: true @@ -106,7 +106,7 @@ jobs: - uses: actions/checkout@v4 # your default branch: the fork's commits are only fetched with: fetch-depth: 0 - - uses: DocSpring/visualci/clients/github-action@v0.2.10 + - uses: DocSpring/visualci/clients/github-action@v0.2.12 with: token: ${{ secrets.VISUALCI_TOKEN }} artifact: visualci @@ -173,7 +173,7 @@ jobs: - 'templates/**' - name: Install VisualCI run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Start a VisualCI build # A skipped run sends nothing: --subset carries every snapshot forward. @@ -217,7 +217,7 @@ jobs: fetch-depth: 0 - name: Install VisualCI run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Start a VisualCI build run: echo "VISUALCI_BUILD_ID=$(visualci build create)" >> "$GITHUB_ENV" diff --git a/server/frontend/content/docs/ci/gitlab.md b/server/frontend/content/docs/ci/gitlab.md index 652c43b7..0b9eb0ee 100644 --- a/server/frontend/content/docs/ci/gitlab.md +++ b/server/frontend/content/docs/ci/gitlab.md @@ -13,7 +13,7 @@ visual: variables: GIT_DEPTH: 0 # VisualCI finds the baseline through the commit's ancestors script: - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR=/usr/local/bin sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR=/usr/local/bin sh - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u - visualci upload --from auto src tests diff --git a/server/frontend/content/docs/ci/jenkins.md b/server/frontend/content/docs/ci/jenkins.md index 62fd8c64..4940de54 100644 --- a/server/frontend/content/docs/ci/jenkins.md +++ b/server/frontend/content/docs/ci/jenkins.md @@ -16,7 +16,7 @@ pipeline { stages { stage('Test') { steps { - sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$WORKSPACE/bin" sh' + sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$WORKSPACE/bin" sh' sh ''' export PATH="$WORKSPACE/bin:$PATH" export VISUALCI_BUILD_ID=$(visualci build create) diff --git a/server/frontend/content/docs/ci/semaphore.md b/server/frontend/content/docs/ci/semaphore.md index dd3fec1b..07903a34 100644 --- a/server/frontend/content/docs/ci/semaphore.md +++ b/server/frontend/content/docs/ci/semaphore.md @@ -23,7 +23,7 @@ blocks: - name: Test commands: - checkout - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$HOME/bin" sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$HOME/bin" sh - export PATH="$HOME/bin:$PATH" - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u # write snapshots instead of failing; see the snapshot guides diff --git a/server/frontend/content/docs/ci/teamcity.md b/server/frontend/content/docs/ci/teamcity.md index 87a23ef0..c16a69dc 100644 --- a/server/frontend/content/docs/ci/teamcity.md +++ b/server/frontend/content/docs/ci/teamcity.md @@ -16,7 +16,7 @@ The CLI doesn't read TeamCity's parameters by itself: pass them as environment v Then a command-line step: ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$PWD/bin" sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$PWD/bin" sh export PATH="$PWD/bin:$PATH" export VISUALCI_BUILD_ID=$(visualci build create) npm test -- -u # write snapshots instead of failing; see the snapshot guides diff --git a/server/frontend/content/docs/ci/travis.md b/server/frontend/content/docs/ci/travis.md index 4df350a3..fd004270 100644 --- a/server/frontend/content/docs/ci/travis.md +++ b/server/frontend/content/docs/ci/travis.md @@ -14,7 +14,7 @@ git: depth: false install: - npm ci - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$HOME/bin" sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$HOME/bin" sh script: - export PATH="$HOME/bin:$PATH" - export VISUALCI_BUILD_ID=$(visualci build create) diff --git a/server/frontend/content/docs/local-runs.md b/server/frontend/content/docs/local-runs.md index 32f7b5c7..3a946b3d 100644 --- a/server/frontend/content/docs/local-runs.md +++ b/server/frontend/content/docs/local-runs.md @@ -23,9 +23,9 @@ visualci test -- npx jest visualci test -- pytest -n auto ``` -It creates the build, runs the command with `VISUALCI_BUILD_ID` set, and finalizes the build when the command ends, even when tests fail or you press Ctrl-C. Then it prints what changed, with links. Every process the command starts adds to that build: each `tests/*.rs` binary of `cargo test`, nextest's processes, pytest-xdist and Jest workers. Without it, each process would make a build of its own. A local run is a subset, so a filtered run (`cargo test signup`) doesn't count the snapshots it skipped as removed. It exits with the tests' status when they failed, otherwise as `visualci build finalize --wait` does: in the default `review` mode, changes don't fail the run; they wait for review, and the helpers below fail the tests that made them. `--upload` also sends visualci.yml's `uploads` after the command, for test runners that write snapshot files. +It creates the build, runs the command with `VISUALCI_BUILD_ID` and `VISUALCI_MODE` (`local` here, `ci` in CI) set, and finalizes the build when the command ends, even when tests fail or you press Ctrl-C. Then it prints what changed, with links. Every process the command starts adds to that build: each `tests/*.rs` binary of `cargo test`, nextest's processes, pytest-xdist and Jest workers. Without it, each process would make a build of its own. A local run is a subset, so a filtered run (`cargo test signup`) doesn't count the snapshots it skipped as removed. It exits with the tests' status when they failed, otherwise as `visualci build finalize --wait` does: in the default `review` mode, changes don't fail the run; they wait for review, and the helpers below fail the tests that made them. `--upload` also sends visualci.yml's `uploads` after the command, for test runners that write snapshot files. -The helpers below then only send and compare: `visualci test` creates and finalizes the build around them. +The helpers below then only send and compare: `visualci test` creates and finalizes the build around them. A helper that fails tests on their changes should do so when `VISUALCI_MODE` is `local`, and leave changes for review when it's `ci`. ## Environments diff --git a/server/frontend/content/docs/quick-start.md b/server/frontend/content/docs/quick-start.md index e5737d06..080f1585 100644 --- a/server/frontend/content/docs/quick-start.md +++ b/server/frontend/content/docs/quick-start.md @@ -25,7 +25,7 @@ On Linux (x86_64 or arm64) or macOS: curl -fsSL https://visualci.com/install.sh | sh ``` -It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the download's SHA-256. In CI, pin the version with `VISUALCI_VERSION=0.2.10`, so a new release never changes a build by surprise. It downloads the latest [GitHub release](https://github.com/DocSpring/visualci/releases) for Linux (x86_64 and arm64) or macOS. Anywhere else with Rust, build it from source: +It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the download's SHA-256. In CI, pin the version with `VISUALCI_VERSION=0.2.12`, so a new release never changes a build by surprise. It downloads the latest [GitHub release](https://github.com/DocSpring/visualci/releases) for Linux (x86_64 and arm64) or macOS. Anywhere else with Rust, build it from source: ```sh cargo install --git https://github.com/DocSpring/visualci visualci-cli diff --git a/server/frontend/content/docs/reference/cli.md b/server/frontend/content/docs/reference/cli.md index 9d4e3ee7..d5e4d922 100644 --- a/server/frontend/content/docs/reference/cli.md +++ b/server/frontend/content/docs/reference/cli.md @@ -3,7 +3,7 @@ title: CLI reference description: Every visualci command and option, and the environment variables the CLI reads. --- -Install it on Linux or macOS with `curl -fsSL https://visualci.com/install.sh | sh` (set `VISUALCI_VERSION=0.2.10` to pin a release, and `VISUALCI_INSTALL_DIR` for somewhere other than `/usr/local/bin`), or anywhere with Rust with `cargo install --git https://github.com/DocSpring/visualci visualci-cli`. `visualci --help` and `visualci --help` print the same options. +Install it on Linux or macOS with `curl -fsSL https://visualci.com/install.sh | sh` (set `VISUALCI_VERSION=0.2.12` to pin a release, and `VISUALCI_INSTALL_DIR` for somewhere other than `/usr/local/bin`), or anywhere with Rust with `cargo install --git https://github.com/DocSpring/visualci visualci-cli`. `visualci --help` and `visualci --help` print the same options. Every command that talks to the server takes `--token` (default `$VISUALCI_TOKEN`, a project token, else the token `visualci login` kept) and `--api-url` (default `$VISUALCI_API_URL`, else `https://api.visualci.com`). With a personal token, it also needs the project: `--project org/project`, `$VISUALCI_PROJECT`, or `project:` in visualci.yml. Errors exit with status 2. @@ -80,7 +80,7 @@ Prints a build's status as JSON. `--build `, default `$VISUALCI_BUILD_ID`. ## visualci test -`visualci test -- ` runs a test command inside one build. It creates the build, runs the command with `VISUALCI_BUILD_ID` set, so every test, process and worker adds to it, and finalizes it when the command ends, even when the tests fail or are interrupted. Then it waits for the result and prints what changed. It takes `build create`'s options. A local run is always a subset. Options: +`visualci test -- ` runs a test command inside one build. It creates the build, runs the command with `VISUALCI_BUILD_ID` set, so every test, process and worker adds to it, and `VISUALCI_MODE` (`local` or `ci`, as the build was made: `local` unless the CLI detects a CI provider, or `--mode`), so test helpers can fail a test on its changes in a local run and leave them for review in CI. It finalizes the build when the command ends, even when the tests fail or are interrupted. Then it waits for the result and prints what changed. It takes `build create`'s options. A local run is always a subset. Options: - `--upload` also sends visualci.yml's `uploads` after the command. - `--no-wait` finalizes without waiting for the result. diff --git a/server/frontend/content/docs/snapshots/laravel-rust.md b/server/frontend/content/docs/snapshots/laravel-rust.md index c15e3ad2..61ae0374 100644 --- a/server/frontend/content/docs/snapshots/laravel-rust.md +++ b/server/frontend/content/docs/snapshots/laravel-rust.md @@ -49,7 +49,7 @@ For snapshots without a browser, `default-features = false` leaves the browser o Then the CLI, and a project token (see [Quick start](/docs/quick-start/)): ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 sh export VISUALCI_TOKEN=vci_... ``` @@ -76,7 +76,7 @@ On GitHub Actions: node-version: 22 - run: npx -y playwright@1.65.2 install --with-deps --only-shell chromium - run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$HOME/bin" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$HOME/bin" sh echo "$HOME/bin" >> "$GITHUB_PATH" - run: visualci test -- cargo test --locked env: diff --git a/server/frontend/public/ci.md b/server/frontend/public/ci.md index 14bac407..df07db92 100644 --- a/server/frontend/public/ci.md +++ b/server/frontend/public/ci.md @@ -6,7 +6,7 @@ https://visualci.com/install.md for the whole setup). The token is the CI secret Every provider runs the same three steps around the tests: ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$HOME/bin" sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$HOME/bin" sh export VISUALCI_BUILD_ID=$(visualci build create) # run the tests (writing snapshots instead of failing), then: visualci upload # sends visualci.yml's uploads diff --git a/skills/visualci-bitbucket/SKILL.md b/skills/visualci-bitbucket/SKILL.md index d8bc0412..4bac4b12 100644 --- a/skills/visualci-bitbucket/SKILL.md +++ b/skills/visualci-bitbucket/SKILL.md @@ -19,7 +19,7 @@ pipelines: name: Test image: node:24 script: - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR=/usr/local/bin sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR=/usr/local/bin sh - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u # write snapshots instead of failing; see the snapshot guides - visualci upload --from auto src tests diff --git a/skills/visualci-buildkite/SKILL.md b/skills/visualci-buildkite/SKILL.md index 0b00f167..e8bca2c0 100644 --- a/skills/visualci-buildkite/SKILL.md +++ b/skills/visualci-buildkite/SKILL.md @@ -16,7 +16,7 @@ The CLI reads the commit from `BUILDKITE_COMMIT`, the branch from `BUILDKITE_BRA steps: - label: ":test_tube: Tests" command: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$$HOME/bin" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$$HOME/bin" sh export PATH="$$HOME/bin:$$PATH" export VISUALCI_BUILD_ID=$$(visualci build create) npm test -- -u diff --git a/skills/visualci-circleci/SKILL.md b/skills/visualci-circleci/SKILL.md index 77403a72..aa495f96 100644 --- a/skills/visualci-circleci/SKILL.md +++ b/skills/visualci-circleci/SKILL.md @@ -21,7 +21,7 @@ jobs: - checkout - run: name: Install VisualCI - command: curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$HOME/bin" sh + command: curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$HOME/bin" sh - run: name: Start a VisualCI build command: echo "export VISUALCI_BUILD_ID=$($HOME/bin/visualci build create)" >> "$BASH_ENV" diff --git a/skills/visualci-github-actions/SKILL.md b/skills/visualci-github-actions/SKILL.md index 36c7459a..37844063 100644 --- a/skills/visualci-github-actions/SKILL.md +++ b/skills/visualci-github-actions/SKILL.md @@ -22,7 +22,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha || github.sha }} fetch-depth: 0 # VisualCI finds the baseline through the commit's ancestors - run: npm test -- -u # write snapshots instead of failing; see the snapshot guides - - uses: DocSpring/visualci/clients/github-action@v0.2.10 + - uses: DocSpring/visualci/clients/github-action@v0.2.12 if: always() with: token: ${{ secrets.VISUALCI_TOKEN }} @@ -55,7 +55,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from browser: [chromium, webkit] steps: # ... checkout and tests ... - - uses: DocSpring/visualci/clients/github-action@v0.2.10 + - uses: DocSpring/visualci/clients/github-action@v0.2.12 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize: false @@ -67,7 +67,7 @@ Every job of a workflow run that uses the same `name` joins one build. Send from - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: DocSpring/visualci/clients/github-action@v0.2.10 + - uses: DocSpring/visualci/clients/github-action@v0.2.12 with: token: ${{ secrets.VISUALCI_TOKEN }} finalize-only: true @@ -111,7 +111,7 @@ jobs: - uses: actions/checkout@v4 # your default branch: the fork's commits are only fetched with: fetch-depth: 0 - - uses: DocSpring/visualci/clients/github-action@v0.2.10 + - uses: DocSpring/visualci/clients/github-action@v0.2.12 with: token: ${{ secrets.VISUALCI_TOKEN }} artifact: visualci @@ -178,7 +178,7 @@ jobs: - 'templates/**' - name: Install VisualCI run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Start a VisualCI build # A skipped run sends nothing: --subset carries every snapshot forward. @@ -222,7 +222,7 @@ jobs: fetch-depth: 0 - name: Install VisualCI run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Start a VisualCI build run: echo "VISUALCI_BUILD_ID=$(visualci build create)" >> "$GITHUB_ENV" diff --git a/skills/visualci-gitlab/SKILL.md b/skills/visualci-gitlab/SKILL.md index 392b09b2..8036a903 100644 --- a/skills/visualci-gitlab/SKILL.md +++ b/skills/visualci-gitlab/SKILL.md @@ -18,7 +18,7 @@ visual: variables: GIT_DEPTH: 0 # VisualCI finds the baseline through the commit's ancestors script: - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR=/usr/local/bin sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR=/usr/local/bin sh - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u - visualci upload --from auto src tests diff --git a/skills/visualci-jenkins/SKILL.md b/skills/visualci-jenkins/SKILL.md index d2647889..47b3e896 100644 --- a/skills/visualci-jenkins/SKILL.md +++ b/skills/visualci-jenkins/SKILL.md @@ -21,7 +21,7 @@ pipeline { stages { stage('Test') { steps { - sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$WORKSPACE/bin" sh' + sh 'curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$WORKSPACE/bin" sh' sh ''' export PATH="$WORKSPACE/bin:$PATH" export VISUALCI_BUILD_ID=$(visualci build create) diff --git a/skills/visualci-laravel-rust/SKILL.md b/skills/visualci-laravel-rust/SKILL.md index 96401e89..be13842d 100644 --- a/skills/visualci-laravel-rust/SKILL.md +++ b/skills/visualci-laravel-rust/SKILL.md @@ -54,7 +54,7 @@ For snapshots without a browser, `default-features = false` leaves the browser o Then the CLI, and a project token (see [Quick start](https://visualci.com/docs/quick-start.md)): ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 sh export VISUALCI_TOKEN=vci_... ``` @@ -81,7 +81,7 @@ On GitHub Actions: node-version: 22 - run: npx -y playwright@1.65.2 install --with-deps --only-shell chromium - run: | - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$HOME/bin" sh + curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$HOME/bin" sh echo "$HOME/bin" >> "$GITHUB_PATH" - run: visualci test -- cargo test --locked env: diff --git a/skills/visualci-local-runs/SKILL.md b/skills/visualci-local-runs/SKILL.md index ba7a80ea..eee2621d 100644 --- a/skills/visualci-local-runs/SKILL.md +++ b/skills/visualci-local-runs/SKILL.md @@ -28,9 +28,9 @@ visualci test -- npx jest visualci test -- pytest -n auto ``` -It creates the build, runs the command with `VISUALCI_BUILD_ID` set, and finalizes the build when the command ends, even when tests fail or you press Ctrl-C. Then it prints what changed, with links. Every process the command starts adds to that build: each `tests/*.rs` binary of `cargo test`, nextest's processes, pytest-xdist and Jest workers. Without it, each process would make a build of its own. A local run is a subset, so a filtered run (`cargo test signup`) doesn't count the snapshots it skipped as removed. It exits with the tests' status when they failed, otherwise as `visualci build finalize --wait` does: in the default `review` mode, changes don't fail the run; they wait for review, and the helpers below fail the tests that made them. `--upload` also sends visualci.yml's `uploads` after the command, for test runners that write snapshot files. +It creates the build, runs the command with `VISUALCI_BUILD_ID` and `VISUALCI_MODE` (`local` here, `ci` in CI) set, and finalizes the build when the command ends, even when tests fail or you press Ctrl-C. Then it prints what changed, with links. Every process the command starts adds to that build: each `tests/*.rs` binary of `cargo test`, nextest's processes, pytest-xdist and Jest workers. Without it, each process would make a build of its own. A local run is a subset, so a filtered run (`cargo test signup`) doesn't count the snapshots it skipped as removed. It exits with the tests' status when they failed, otherwise as `visualci build finalize --wait` does: in the default `review` mode, changes don't fail the run; they wait for review, and the helpers below fail the tests that made them. `--upload` also sends visualci.yml's `uploads` after the command, for test runners that write snapshot files. -The helpers below then only send and compare: `visualci test` creates and finalizes the build around them. +The helpers below then only send and compare: `visualci test` creates and finalizes the build around them. A helper that fails tests on their changes should do so when `VISUALCI_MODE` is `local`, and leave changes for review when it's `ci`. ## Environments diff --git a/skills/visualci-semaphore/SKILL.md b/skills/visualci-semaphore/SKILL.md index 542140b3..1d1c3d74 100644 --- a/skills/visualci-semaphore/SKILL.md +++ b/skills/visualci-semaphore/SKILL.md @@ -28,7 +28,7 @@ blocks: - name: Test commands: - checkout - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$HOME/bin" sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$HOME/bin" sh - export PATH="$HOME/bin:$PATH" - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u # write snapshots instead of failing; see the snapshot guides diff --git a/skills/visualci-teamcity/SKILL.md b/skills/visualci-teamcity/SKILL.md index 615e62a6..c923db58 100644 --- a/skills/visualci-teamcity/SKILL.md +++ b/skills/visualci-teamcity/SKILL.md @@ -21,7 +21,7 @@ The CLI doesn't read TeamCity's parameters by itself: pass them as environment v Then a command-line step: ```sh -curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$PWD/bin" sh +curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$PWD/bin" sh export PATH="$PWD/bin:$PATH" export VISUALCI_BUILD_ID=$(visualci build create) npm test -- -u # write snapshots instead of failing; see the snapshot guides diff --git a/skills/visualci-travis/SKILL.md b/skills/visualci-travis/SKILL.md index 81d99ef1..4955fe1a 100644 --- a/skills/visualci-travis/SKILL.md +++ b/skills/visualci-travis/SKILL.md @@ -19,7 +19,7 @@ git: depth: false install: - npm ci - - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.10 VISUALCI_INSTALL_DIR="$HOME/bin" sh + - curl -fsSL https://visualci.com/install.sh | VISUALCI_VERSION=0.2.12 VISUALCI_INSTALL_DIR="$HOME/bin" sh script: - export PATH="$HOME/bin:$PATH" - export VISUALCI_BUILD_ID=$(visualci build create) diff --git a/skills/visualci/SKILL.md b/skills/visualci/SKILL.md index 2bc72491..7a037650 100644 --- a/skills/visualci/SKILL.md +++ b/skills/visualci/SKILL.md @@ -30,7 +30,7 @@ On Linux (x86_64 or arm64) or macOS: curl -fsSL https://visualci.com/install.sh | sh ``` -It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the download's SHA-256. In CI, pin the version with `VISUALCI_VERSION=0.2.10`, so a new release never changes a build by surprise. It downloads the latest [GitHub release](https://github.com/DocSpring/visualci/releases) for Linux (x86_64 and arm64) or macOS. Anywhere else with Rust, build it from source: +It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the download's SHA-256. In CI, pin the version with `VISUALCI_VERSION=0.2.12`, so a new release never changes a build by surprise. It downloads the latest [GitHub release](https://github.com/DocSpring/visualci/releases) for Linux (x86_64 and arm64) or macOS. Anywhere else with Rust, build it from source: ```sh cargo install --git https://github.com/DocSpring/visualci visualci-cli