Skip to content

Skip API builds for isolated website changes - #369

Merged
0thernet merged 1 commit into
mainfrom
codex/api-build-selection-20261005
Oct 5, 2026
Merged

0thernet merged 1 commit into
mainfrom
codex/api-build-selection-20261005

Conversation

@0thernet

@0thernet 0thernet commented Oct 5, 2026

Copy link
Copy Markdown
Member

Website-only changes currently rebuild the Slopcamera API even when its source and dependencies are unchanged. Add a conservative preinstall selection command that skips the API only for a nonempty diff confined to website source, assets, or scripts. Missing history, a mismatched head, non-ancestor comparisons, shared inputs, workspace manifests, and explicit same-commit redeploys continue to build.

The API source tests check physical workspace imports and runtime package exports as well as TypeScript declarations, including a package whose declarations hide a website dependency. Static asset imports are checked; the documented manual review of runtime filesystem reads found the hosted runtime uses its temporary per-request workspace and SDK assets. Future API reads from website directories must remove those directories from skip eligibility. Existing source, preview, and site-production checks stay intact.

Qualification: 2 of 25 distinct successful main-deployment transitions in a 100-deployment API sample contained only eligible website changes. One documentation-only deployment repeated ten TypeScript passes, then spent 119.390 seconds creating a 450.41 MB cache and 6.069 seconds uploading it. These are historical applicability and work measurements, not a dollar-savings forecast.

Validation: bun run check:api passed type checks, lint, and 44 tests / 513 assertions; the helper's focused lint passed. Independent source and boundary review passed. The exact-head full CI and preview remain the delivery gates.

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
slopcamera Ready Ready Preview Oct 5, 2026 5:42pm UTC
slopcamera-api Ready Ready Preview Oct 5, 2026 5:42pm UTC

Request Review

@0thernet
0thernet enabled auto-merge (squash) October 5, 2026 17:42
@0thernet
0thernet merged commit 948089b into main Oct 5, 2026
24 checks passed
@0thernet
0thernet deleted the codex/api-build-selection-20261005 branch October 5, 2026 17:46

This branch was successfully deployed

2 active deployments
Preview – slopcamera-api — 54d69c06 Deployed Oct 5, 2026 by vercel[bot]
Preview – slopcamera — 54d69c06 Deployed Oct 5, 2026 by vercel[bot]
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