Title: A component can't build a frontend: the artifact is the git tree, and deploy only runs `uv sync` · Issue #86 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: A component can't build a frontend: the artifact is the git tree, and deploy only runs `uv sync` · Issue #86 · cloudfall-dev/cloudfall
X Title: A component can't build a frontend: the artifact is the git tree, and deploy only runs `uv sync` · Issue #86 · cloudfall-dev/cloudfall
Description: Problem Found while deploying Abecra's staging (Cloudfall's customer zero) on 2026-10-19. Abecra is a Python API plus a Vite web app in one repository. Cloudfall can ship the API but not the web build: artifact build (engine/src/cloudfal...
Open Graph Description: Problem Found while deploying Abecra's staging (Cloudfall's customer zero) on 2026-10-19. Abecra is a Python API plus a Vite web app in one repository. Cloudfall can ship the API but not the web bu...
X Description: Problem Found while deploying Abecra's staging (Cloudfall's customer zero) on 2026-10-19. Abecra is a Python API plus a Vite web app in one repository. Cloudfall can ship the API but not th...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/86
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A component can't build a frontend: the artifact is the git tree, and deploy only runs `uv sync`","articleBody":"## Problem\n\nFound while deploying Abecra's staging (Cloudfall's customer zero) on 2026-10-19. Abecra is a Python API plus a Vite web app in one repository. Cloudfall can ship the API but not the web build:\n\n- `artifact build` (`engine/src/cloudfall_engine/artifact.py`) clones the repository at a ref and tars the source tree (or `repository.subdirectory`). No build step runs, so `web/dist/` is never in the artifact\n- `cloudfall_deploy` (`engine/ansible/roles/cloudfall_deploy/tasks/main.yml`) asserts `runtime.packageManager == \"uv\"` and materializes the release with `uv sync`; nothing else runs on the server\n- `component.schema.json` accepts `runtime.type: node | pm2` and `packageManager: npm | pnpm | yarn`, and ROADMAP M4 says \"native Python and Node builds\", but the deploy role refuses anything that is not uv. The schema promises more than the engine does\n\nThe workaround is a side script in the fleet repository that clones the same commit, runs `pnpm install && pnpm build`, rsyncs `dist/` to `/srv/apps/\u003capp>/web/releases/\u003csha>`, flips its own `current` symlink, and only then runs `cloudfall deploy`. That second release tree has no digest check, no receipt, no rollback with the API release, and can drift from it (the API's `current` and the web's `current` are switched by different tools).\n\n## Proposal\n\nA declared build step that runs on the controller before packaging, whose outputs go into the same artifact:\n\n```yaml\nspec:\n build:\n - workingDirectory: web\n command: [pnpm, install, --frozen-lockfile]\n - workingDirectory: web\n command: [pnpm, build]\n artifact:\n include: [web/dist] # build outputs kept even if gitignored\n```\n\n- Runs inside the clean checkout `artifact build` already makes, with a declared toolchain (`node` version, package manager) checked like `required_tools`; a missing tool fails with a typed error before cloning\n- Build outputs land in the tarball, so the existing digest, receipt, symlink switch and rollback cover them unchanged\n- The `ArtifactMetadata` records the build steps and toolchain versions that produced it\n- Separately: until Node runtimes deploy, `component.schema.json` should reject `runtime.type: node | pm2` and the non-uv package managers instead of failing in the role (or the docs should say they are reserved)\n\n## Alternatives\n\n- Keep frontends outside Cloudfall (a CDN or a side script): this is what Abecra does now, and it splits one release into two unrelated rollouts\n- A separate `static` component kind with its own artifact: cleaner for SPAs with no backend, but two artifacts for one commit still need a joint rollback\n\n## Acceptance\n\n- A component declaring a `pnpm build` step: `artifact build --ref \u003csha>` produces a tarball containing `web/dist/`, and its metadata lists the steps\n- `cloudfall deploy` of that release puts `web/dist/` under `releases/\u003crelease>/`; `cloudfall rollback` restores the previous release's web build with the API\n- A build step that exits non-zero fails `artifact build` with a typed error and writes no artifact\n- `cloudfall config validate` on a component with `runtime.type: node` either deploys it or fails validation; it never passes validation and fails in the role\n\nDepends on cloudfall-dev/cloudfall#113\nDepends on cloudfall-dev/cloudfall#114\nDepends on cloudfall-dev/cloudfall#115","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-10-19T18:01:47Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/86"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:22299199-c06e-20ff-763c-c0d93ed4c94f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC92:31EE77:26D971F:32AD124:6B0550D4 |
| html-safe-nonce | d476b9165cb14f8e68105b6f5c35ed496963305a73b43c09d77242b43dbdf836 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzkyOjMxRUU3NzoyNkQ5NzFGOjMyQUQxMjQ6NkIwNTUwRDQiLCJ2aXNpdG9yX2lkIjoiNjA5NzQwMzI4NDgwMzYzNzQ2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a0f18755b838a0b5e649e6bf5762da9944d289265118e82a1ec2733aec566e86 |
| hovercard-subject-tag | issue:5928925121 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/86/issue_layout |
| twitter:image | https://opengraph.githubassets.com/83a6dc25838774d84b99db69bd6cb5519733b5f01a627a4193a458f56e897664/cloudfall-dev/cloudfall/issues/86 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/83a6dc25838774d84b99db69bd6cb5519733b5f01a627a4193a458f56e897664/cloudfall-dev/cloudfall/issues/86 |
| og:image:alt | Problem Found while deploying Abecra's staging (Cloudfall's customer zero) on 2026-10-19. Abecra is a Python API plus a Vite web app in one repository. Cloudfall can ship the API but not the web bu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width