Skip to content

CI: the renderer image rebuilds only when its own inputs change - #139

Merged
ndbroadbent merged 1 commit into
mainfrom
ci-renderer-inputs
Dec 3, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
ci-renderer-inputs

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Since #137 put app/ in the root workspace, the renderer's input hash covered the whole Cargo.lock and Cargo.toml, so every app/ dependency change and every CLI version bump rebuilt the renderer image and rolled the renderers for nothing (render caches key on RENDERER_VERSION, so no pixels changed, but builds waiting on renders felt the restart).

The hash now covers:

  • the workspace crates the renderer is built from, found with cargo tree -p visualci-renderer (today: visualci-core, snapshot-diff and visualci-renderer itself), by their files;
  • every other crate in its dependency tree, by name and version (229 today);
  • docker/renderer.Dockerfile, docker/renderer.version, rust-toolchain.toml;
  • Cargo.toml without its version = line (profiles and workspace settings still count).

The images job installs the pinned toolchain first, for cargo tree. The hash changes once with this PR, so the renderer rebuilds one last time when it merges. actionlint is clean; the commands were run on agents-build-1.


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

…crates, its dependency tree, the build settings)
@ndbroadbent
ndbroadbent merged commit 5104435 into main Dec 3, 2026
14 checks passed
@ndbroadbent
ndbroadbent deleted the ci-renderer-inputs branch December 3, 2026 15:52
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