Repository navigation
Repo layout: frontend/ at the top level, app/ in the root workspace - #137
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #157 · 339 unchanged · no changes This PR vs base: 1 changed since #141, across 3 builds docspring/visualci · journeys · build #155 · 12 unchanged · no changes This PR vs base: 2 changed since #138, across 3 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
repo-layout
branch
from
December 3, 2026 14:49
2dcd3eb to
db253a0
Compare
This was referenced Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two layout changes in one mechanical PR (approved by the coordinator). Nothing is kept for the old paths.
server/frontend/→frontend/git mv server/frontend frontend.server/is gone; after #132 it held only the frontend. Every reference changed with it:.github/workflows/ci.yml:working-directory,package_json_file, the visual job'sfrontend/srcupload, and thedist-siteartifact paths. The site job deploys fromfrontend/site.docker/app.Dockerfile: the frontend stage now runs in/src/frontend, and the image copies/src/frontend/disttopublic/.scripts/ci/visual.sh,scripts/journeys/run.sh,scripts/screenshots/capture.mjs,scripts/brand/build.mjs.frontend/scripts/skills.mjs,site.mjs,wasm.mjs: their repo-root paths went from../..to...crates/visualci-cli/src/config_file.rs: the schema test now reads../../frontend/public/visualci.schema.json.app/src/skills.rs,app/src/http/app_shell.rs,app/public/index.html(comments)..gitignore,.dockerignore,AGENTS.md,docs/design.md,docs/deploy.md.skills/*/SKILL.md,GEMINI.md,.cursor-plugin/plugin.json, regenerated withnode scripts/skills.mjs. Only the "Generated from …" header line changed. The plugin version is bumped from 0.1.49 to 0.1.50.app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill-2.json: the same header line.After the change,
git grep server/frontendfinds nothing.git grep server/finds only an unrelated BrowserStack URL infrontend/content/pages/compare/percy.md. No blog post or doc names the old path, so no history needs listing.app/joins the root Cargo workspaceCargo.tomlnow hasmembers = ["crates/*", "app"]. app/'s[workspace]section is gone andapp/Cargo.lockis deleted. app/ had no[workspace.dependencies],[patch]or lints to merge.debug = "line-tables-only",debug = falsefor dependencies, andopt-level = 3fornum-bigint-digandrsa. Its image and sha2 opt-levels were already identical to the root's. The CLI's dev builds now also use line-tables-only debug info.appjob runs from the root withcargo test --locked -p visualci-app. Therust-cacheworkspaces: appsetting is gone. The job's fmt and clippy steps are gone too: the lint job'scargo fmt --allandcargo clippy --workspacenow cover app/.testjob runscargo test --locked --workspace --exclude visualci-app. That keeps the app's dependency features (serde_json'spreserve_orderand others) out of the CLI's tests. It's the isolation the separate workspace used to give.cargo build --locked -p visualci-app --bin visualci-appfrom the root.docker/app.Dockerfile: cargo-chef now prepares the root workspace (Cargo.toml,Cargo.lock,crates/,app/) and cooks-p visualci-app. The build runscargo build --release --locked -p visualci-app --bin visualci-app, and the binary is copied from/src/target/release/visualci-app.scripts/ci/visual.shandscripts/journeys/run.shnow default totarget/debug/visualci-app.scripts/on-dev testwith no package named runs--workspace --exclude visualci-app, because app/'s tests need the test database. With-p …it passes the arguments through unchanged.fixandfmtnow cover app/ through the workspace.AGENTS.md: the build rule now describes app/ asvisualci-appin the root workspace and says how to run its tests.cli-version: an app/-only change still doesn't trip it. It diffs onlycrates/visualci-cliandcrates/visualci-core, and app's version (0.0.0) isn't the workspace version. This PR does trip it, through the schema test's path incrates/visualci-cli/src/config_file.rs, so the CLI goes to 0.2.21. Its lockfile also moved (see the table). The docs'VISUALCI_VERSION=pins move in a follow-up after the release.Dependency versions
The root
Cargo.lockis the union of the two old lockfiles, resolved by cargo, and app/'s resolved versions are all unchanged. Where both lockfiles held semver-compatible versions of the same crate, they had to unify, so these changed for the CLI's crates (the old root lock):Every other crate kept its version. The app's crates (sqlx, laravel-rust, rmcp and the rest) appear as additional entries.
A side effect to know about
The
imagesjob's renderer-inputs hash includesCargo.lock. Because the lockfile now includes app/'s dependencies, a change to the app's dependencies rebuilds the renderer image and rolls the renderers. Render cache keys useRENDERER_VERSION, so pixels don't change. Narrowing the hash would be a follow-up.Checks (agents-build-1)
cargo fmt --all --checkcargo clippy --locked --workspace --all-targets -- -D warnings, plus snapshot-diff with--no-default-featurescargo test --locked --workspace --exclude visualci-app,cargo test --locked -p visualci-app(Postgres 17 and RustFS), and the fullcargo test --locked --workspacecargo check -p visualci-wasm --target wasm32-unknown-unknownnode scripts/skills.mjs --check,pnpm install --frozen-lockfile && pnpm build && pnpm test,node scripts/site.mjsdocker build -f docker/app.Dockerfile .VisualCI build
I expect it to be unchanged. The visual job uploads
frontend/srcwith the same--prefix components/, so snapshot names don't move. No page content changed. The skills header line appears only in the MCP JSON golden (json/mcp/get_skill…), which shows that one-line path change.Open PRs that touch these paths
server/frontend/...files move tofrontend/.... Itsapp/Cargo.lockchange has to go into the rootCargo.lockinstead, regenerated on a build box. Its CLI version bump touches the rootCargo.tomlandCargo.lock.