Changelog
What changed in each release of the CirCI app, the circi CLI and the Vitest plugin, kept in step with the project's release notes.
Release notes for the three things that are versioned and released: the app (the Docker image ghcr.io/cir-ci/circi:<version>), the circi CLI and the Vitest plugin. The newest release is first in each list. The notes are the CHANGELOG.md files of the main repository, and this page is rebuilt from them after each release, so it follows a release without anyone editing it. Before you upgrade a server, read Upgrades and migrations.
The app
Section titled “The app”The version of @circi/server: what circi --version and /healthz report, and the tag of the image.
Latest release: @circi/server 0.2.0.
0.2.0
Minor Changes
- #44: Removed the Argos-compatible
/v2API, which never worked with the real Argos SDKs (they reject CirCI's token format and localhost, and expect a different baseline reply). Upload withcirci upload, the Vitest plugin or the Cypress plugin. A migration drops the unusedcommit_ancestrytable (builds.history_sourcestays for one more release so a rolling deploy is safe), and builds that recordedsdkas their baseline source now show none. The Projects empty state no longer mentions Argos.
0.1.1
Patch Changes
-
#7:
circi admin doctor's hosted-sites warning links to https://circi.dev/self-hosting/site-domains/ instead of a file in the source repository, and so do the deploy files (the Caddyfile, the Caddy overlay,.env.exampleand the Terraform module). -
#25: CirCI now has a Helm chart for running it on an existing Kubernetes cluster such as EKS, published with each release as
oci://ghcr.io/cir-ci/charts/circi. You bring Postgres, the S3 bucket and the IAM role; the chart runs the app (together or as separate serve and worker pods), reads secrets as files, and can run Caddy for hosted sites or use an Ingress for the dashboard. The Terraform module for a Docker host is unchanged. -
#38: The site kind detection tests each have their own name, so Flakiness.io can track them separately. Nothing changes in how sites are detected.
-
#23: The Terraform module will be on the Terraform Registry as
cir-ci/circi/docker, one version per release, sosource = "cir-ci/circi/docker"withversion = "<release>"replaces the Git URL (which keeps working). The module now reads aCaddyfileinside its own folder; the Caddy configuration it applies is unchanged. -
#33: A test of the stored GitHub App no longer fails now and then: its fake private key could show up by chance in the encrypted value it checks. Nothing changes for people running CirCI.
-
#40: Push notifications no longer stop for everyone now and then. About 1 in 256 of the server's web push keys was read back as invalid, so the server made new keys and dropped every device's subscription, and people had to turn push on again. Keys made before this release keep working.
-
#38: A ListRow test no longer fails now and then on a busy machine: it no longer depends on where an earlier test left the mouse pointer. Nothing changes in the component.
-
#39: The server and dashboard tests run in about half the time: test files now share loaded modules instead of loading the server again for each one. Nothing changes in the app.
-
#39: The image library is loaded when the server first reads, diffs or resizes an image, not when it starts, which makes startup and the test suite faster. Image handling is unchanged.
-
#34: Server-side test cleanup, with nothing to change in how the app or the packages behave: shared helpers for seeded builds and members, the mail fake, sign-in by email code, PNG builders, temp directories, the auth secret and fake timers; duplicated and wrapper-only tests removed (each assertion still has a test that covers it); fixed waits in the live-stream tests replaced by ordered marker events; one database per file in the triage tests; the CLI's slow spawned test kept only where the exit code matters.
@circi/vitest's slow plugin test (a real nested Vitest run in Chromium) now runs as its ownpnpm test:vitesttask, part ofpnpm gate, instead of on the Node tests' critical path. -
#8: The repository's READMEs are about the code, and using and running CirCI is documented on https://circi.dev only: the root README links the site and maps the code's folders,
deploy/README.mdanddeploy/terraform/README.mdexplain how the image and the Terraform module are built (their usage is on the Docker Compose and Terraform pages), and thedocs/folder is gone, its pages being on the site..env.example's GitHub App note links https://circi.dev/integrations/github/. -
#26: The Terraform module works from a Windows Git checkout (it no longer relies on a symlink for its
Caddyfile), and each version on the Terraform Registry holds the module exactly as it was released, with the license.
0.1.0
Minor Changes
- #3: The app has versions: each release publishes
ghcr.io/cir-ci/circi:<version>andcirci-caddy:<version>,circi --versionand/healthzreport the version a server runs, anddeploy/terraformruns a given version on a Docker host (circi_version).
Patch Changes
- #3: Every server setting reaches the container in both deploys. The Terraform module takes the server's settings in groups (smtp, s3, sso, github_app, jobs, ...), each key named after its setting (smtp.host is SMTP_HOST), in place of the open environment/secrets maps: a misspelled key, a value of the wrong type or a half-set pair fails the plan, and a setting left out stays unset, so nothing is locked in the dashboard by accident. Secrets go in as files named by
_FILE, which the server now reads for any setting (circi admin storage migrate too), so the rest of the environment shows in plan output. database = { host, port, name, user, tls, ca_certificate } runs against your own Postgres such as Amazon RDS (verify-full, with RDS's CA bundle); passwords are URL-encoded. Caddy is the one proxy the app trusts, in Terraform and in the Compose overlay (a fixed subnet and address: CIRCI_SUBNET, CADDY_ADDRESS), instead of every private range. Route53 keys have their own sensitive variable, and the bundled Postgres's password can be rotated with ALTER USER. docker-compose.yml passes every setting (Slack, GitLab sign-in, S3 and the tuning settings never reached the server before) and .env.example names them all. The image sets HOST explicitly.
The CLI
Section titled “The CLI”@circi/cli on npm, the circi command that uploads screenshots from CI (CLI reference).
Latest release: @circi/cli 0.3.0.
0.3.0
Minor Changes
- #44: Removed
circi argos-env: the Argos SDKs never accepted CirCI tokens, so usecirci upload, the Vitest plugin or the Cypress plugin instead.
0.2.1
Patch Changes
-
#35: For tools built on the CLI (
@circi/vitest,@circi/storybook): addsCirciOptions.Common(the options they share),uploadCaptures(upload a folder of captures when a run ends: credentials from the options or the environment, a notice and no upload without them, a failed upload reported rather than thrown),writeCapture,mapLimit,shardFlag,shardFromArgs,shardFromEnv(CIRCI_SHARD),ignoreBrokenPipe,debugOnandreportError, and a browser-safe@circi/cli/names(screenshot naming,DEFAULT_DIR,STABILIZE_CSS). Thecircicommand is unchanged. -
#35: Adds
toolDir(dir, tool)to@circi/cli/names: each tool that writes captures owns<dir>/<tool>(.circi/screenshots/vitest,.circi/screenshots/storybook), so tools sharing a project never upload or clean each other's files. A shard with no screenshots (more shards than tests, or every test skipped) now still reports in, so the parallel build completes instead of waiting for it. -
#35: Adds
uploadSiteAfter, which tools built on the CLI use to host a built site (Storybook, Vitest's HTML report) after their screenshots: only when the screenshots were uploaded, with an address and a token, from the first shard, and a failed upload is logged and fails the run only withstrict. -
#30: The npm descriptions and keywords say what the packages are for: uploading screenshots to CirCI, the self-hosted visual regression testing server.
@circi/vitest's no longer mentions the screenshot helper removed in 0.3.0. -
#34: Server-side test cleanup, with nothing to change in how the app or the packages behave: shared helpers for seeded builds and members, the mail fake, sign-in by email code, PNG builders, temp directories, the auth secret and fake timers; duplicated and wrapper-only tests removed (each assertion still has a test that covers it); fixed waits in the live-stream tests replaced by ordered marker events; one database per file in the triage tests; the CLI's slow spawned test kept only where the exit code matters.
@circi/vitest's slow plugin test (a real nested Vitest run in Chromium) now runs as its ownpnpm test:vitesttask, part ofpnpm gate, instead of on the Node tests' critical path.
0.2.0
Minor Changes
-
#3: New exports:
parseShard(reads2/4as the second of four jobs) anderrorLine(the CLI's one-line text for an error).uploadnow asks the server for the project while it reads git, andsite uploadpacks the site while it looks up the branch, so both start sending sooner.--api-urlnow names CIRCI_API_URL in--help, where it is read from when the flag is left out.@circi/vitest: the reporter uploads the screenshot folder as it is, instead of copying every screenshot to a temporary folder that was never deleted. A failed upload is reported with the CLI's error text, including its hints for the address and the token.
Patch Changes
- #3: Updated dependencies: commander 15.1.0 and tar 7.5.23.
0.1.0
Minor Changes
- be08f90: First public release.
The Vitest plugin
Section titled “The Vitest plugin”@circi/vitest on npm (Vitest plugin).
Latest release: @circi/vitest 0.4.0.
0.4.0
Minor Changes
-
#35: New
siteoption oncirci():site: truealso hosts Vitest's HTML report as a site namedvitest-report(kindvitest-report), so reviewers can open the run's results next to the screenshots. The plugin adds Vitest'shtmlreporter when@vitest/uiis installed, waits for it to finish writing, and uploads the report after the screenshots, from the first shard only.site: { name, dir }renames the site or hosts a folder of your own. Off by default. -
#35: Screenshots are now written to
.circi/screenshots/vitest/<test file>/<name>.pnginstead of.circi/screenshots/<test file>/<name>.png, so other tools can use their own folders next to it. Thediroption is still the parent (default.circi/screenshots), and screenshot names in CirCI don't change. If you read the files yourself (a CI artifact path, say), point them at thevitestsubfolder. A shard that has no screenshots still reports in, so a parallel build is no longer left waiting for it.
Patch Changes
-
#30: The npm descriptions and keywords say what the packages are for: uploading screenshots to CirCI, the self-hosted visual regression testing server.
@circi/vitest's no longer mentions the screenshot helper removed in 0.3.0. -
#34: Server-side test cleanup, with nothing to change in how the app or the packages behave: shared helpers for seeded builds and members, the mail fake, sign-in by email code, PNG builders, temp directories, the auth secret and fake timers; duplicated and wrapper-only tests removed (each assertion still has a test that covers it); fixed waits in the live-stream tests replaced by ordered marker events; one database per file in the triage tests; the CLI's slow spawned test kept only where the exit code matters.
@circi/vitest's slow plugin test (a real nested Vitest run in Chromium) now runs as its ownpnpm test:vitesttask, part ofpnpm gate, instead of on the Node tests' critical path. -
#35: Internal: the reporter's upload step, screenshot naming and shard parsing now come from
@circi/cli, shared with@circi/storybook. Options, names, defaults, exit codes and exports (includingShard,shardFromArgs,DEFAULT_DIR,STABILIZE_CSS) are unchanged.
0.3.0
Minor Changes
- #3: Removed:
circiScreenshotandscreenshotPath, deprecated in 0.2.0. Use Vitest'sawait expect(locator).toMatchScreenshot('name')with thecirci()plugin; see the migration section of the Vitest docs.@circi/vitest/browserstill exportssettlePage,STABILIZE_CSSandDEFAULT_DIR.
Patch Changes
-
#3: New exports:
parseShard(reads2/4as the second of four jobs) anderrorLine(the CLI's one-line text for an error).uploadnow asks the server for the project while it reads git, andsite uploadpacks the site while it looks up the branch, so both start sending sooner.--api-urlnow names CIRCI_API_URL in--help, where it is read from when the flag is left out.@circi/vitest: the reporter uploads the screenshot folder as it is, instead of copying every screenshot to a temporary folder that was never deleted. A failed upload is reported with the CLI's error text, including its hints for the address and the token. -
#3: Updated dependencies: commander 15.1.0 and tar 7.5.23.
0.2.0
Minor Changes
-
591d2e8: New
circi()Vitest plugin: tests keep Vitest's ownawait expect(locator).toMatchScreenshot('name')with no CirCI import. Add the plugin topluginsinvitest.config.tsand it registers the reporter and writes each screenshot to.circi/screenshots/<test file>/<name>.pngfor upload. Thelocaloption (defaultfalse) chooses who gates:falsenever compares or stores references on the machine running the tests, so a test never fails on pixels and CirCI is the gate;truealso runs Vitest's normal comparison. The reporter'scleanoption empties the folder when the run starts, which the plugin turns on.Deprecated:
circiScreenshot(a warning prints the first time it's called, and it's removed in the next minor release). See the migration section of the Vitest docs.Removed: the reporter's
collectToMatchScreenshotoption and thecollectToMatchScreenshotexport.local: truecovers it.
0.1.0
Minor Changes
- be08f90: First public release.