Skip to content

ci(release): smoke test the published image after each release - #539

Open
tobyhede wants to merge 2 commits into
release/2.2from
test/released-image-smoke-test
Open

tobyhede wants to merge 2 commits into
release/2.2from
test/released-image-smoke-test

Conversation

@tobyhede

@tobyhede tobyhede commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Summary

After each 2.2.x release, CI now runs the full integration suite against the Docker image the release published, not only against an image built from source.
Until now, nothing tested the image customers actually pull from Docker Hub.
This pull request also runs that suite against the current 2.2 release image, cipherstash/proxy:2.2 (2.2.7), so its own CI checks verify 2.2.7.

Changes

  • Test harness (mise.toml): proxy:up takes a PROXY_IMAGE variable. When it is set, proxy:up pulls that published image and tags it cipherstash/proxy:latest (the image tests/docker-compose.yml runs) instead of building Proxy from source. Without it, nothing changes.
  • New workflow (.github/workflows/smoke-test.yml): runs mise run test:integration with PROXY_IMAGE set, on PostgreSQL 14, 15, 16 and 17. It can be called from another workflow with a version, and it also runs on a pull request that changes it, against cipherstash/proxy:2.2.
  • Release workflow (.github/workflows/release.yml): the publish job now exposes the version it tagged. A new Smoke test published image job runs after it, only for a published release, and calls the smoke test with that version.
  • Docs: DEVELOPMENT.md explains how to run the integration suite against a published image locally. The comment in tests/docker-compose.yml mentions PROXY_IMAGE.

Verification

  • actionlint on release.yml and smoke-test.yml: no findings in the new jobs. It reports only warnings that were already there (custom Blacksmith runner labels, and shellcheck notes on existing steps).
  • mise tasks info proxy:up parses the changed task.
  • The integration suite was not run locally: Docker and CipherStash credentials were not available on this machine.
  • This pull request's CI is the real test: the Test workflow covers the default build-from-source path, and the Smoke test workflow runs the suite against cipherstash/proxy:2.2.
  • The release.yml job runs only on a published release, so it is first exercised by the next 2.2.x release.

Review notes

  • The test clients (Rust, psql, Go, Python) still come from the checked-out commit. For a release, that commit is the release tag, so the image is tested with its own tests.
  • The release job runs after the image is published, so a failure flags a bad release rather than blocking it.
  • A pull request trigger is the only way to run the new workflow before it merges. workflow_dispatch only works for workflows on the default branch, and this one lives on release/2.2.
  • main (3.x) needs the same change separately. Its release.yml and test tasks differ.

Acknowledgment

By submitting this pull request, I confirm that CipherStash can use, modify, copy, and redistribute this contribution, under the terms of CipherStash's choice.

The integration suite only ever tested a Proxy image built from source,
because proxy:up always builds and tests/docker-compose.yml never pulls.
Nothing checked the image a release actually publishes to Docker Hub.

proxy:up now honours PROXY_IMAGE: it pulls that published image and tags
it as cipherstash/proxy:latest, the image the compose services run, and
skips the build. A new reusable Smoke test workflow runs the full
integration suite that way on PostgreSQL 14 to 17. release.yml calls it
once the multi-platform image is published, passing the version the
merge job tagged. A pull request that changes the workflow runs it
against the latest published 2.2.x image.
@tobyhede
tobyhede marked this pull request as ready for review December 4, 2026 06:24
Address review feedback on the release smoke test:

- Notify Slack when the smoke test fails on a release. The image is
  already published by then, and the shared notification action only
  fires on main, so a failure would otherwise alert nobody.
- Pull the published image only when it is missing. test:integration
  calls proxy:up many times, and each extra Docker Hub pull was another
  chance for a rate limit to fail a good release.
- Limit the token to contents: read and pass the five secrets the
  workflow uses instead of inheriting every secret.
- Update the two DEVELOPMENT.md passages that still said Proxy is always
  built from source for tests.

This branch has not been deployed

No deployments
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