Skip to content

Key the app build on skills/ and migrations contents; skip wasm in the app image - #170

Merged
ndbroadbent merged 2 commits into
mainfrom
app-skills-key-and-wasm-flag
Dec 4, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
app-skills-key-and-wasm-flag

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #169, as the coordinator asked.

  • app/build.rs: rerun-if-changed on database/migrations and ../skills, plus a content hash in VISUALCI_MIGRATIONS_HASH / VISUALCI_SKILLS_HASH, read with env! in lib.rs and skills.rs. include_dir! isn't tracked by cargo's or kache's compile keys, so before this a skills-only change could reuse a stale cached compile.
  • frontend/scripts/wasm.mjs: VISUALCI_SKIP_WASM=1 skips the wasm build with an info line, no warning. docker/app.Dockerfile sets it: the app server 404s site paths (app/src/http/hosts.rs), and only docs.html, served by the site Worker, loads the Compare page.

Checked: cargo clippy --workspace --all-targets -D warnings clean on the build pool.


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 #397 · 392 unchanged · no changes

This PR vs base: 1 changed since #371, across 2 builds

docspring/visualci · journeys · build #392 · 30 unchanged · no changes

This PR vs base: 12 changed since #368, across 2 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

…e app image

include_dir! doesn't tell cargo or kache when the embedded folders change, so a
skills or migrations edit could reuse a stale compile. build.rs now reruns on
those folders and passes a content hash through rustc-env, which the crate reads,
so the compile key follows the contents.

The app image serves no Compare page (the site's Worker does), so its frontend
build sets VISUALCI_SKIP_WASM=1 and wasm.mjs skips the wasm build on purpose.
@ndbroadbent
ndbroadbent force-pushed the app-skills-key-and-wasm-flag branch from 2046905 to c21257f Compare December 4, 2026 05:18
@ndbroadbent
ndbroadbent merged commit a2e0351 into main Dec 4, 2026
16 checks passed
@ndbroadbent
ndbroadbent deleted the app-skills-key-and-wasm-flag branch December 4, 2026 05:27
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