feat(fastdeploy): treat blocks.gen.json as content in the content-only gate#28
Merged
Merged
Conversation
…y gate Studio content commits touch two paths: .deco/blocks/** and the regenerated bundled snapshot src/server/cms/blocks.gen.json (kept in lockstep for HMR). The gate only accepted the former, so every Studio commit was classified as a code change and skipped fast-deploy. Content-only now means: every changed file is under .deco/blocks/ OR equals src/server/cms/blocks.gen.json. Adds unit tests for isContentOnly and decofileName. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
igoramf
approved these changes
Jul 8, 2026
nicacioliveira
approved these changes
Jul 8, 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.
Studio content commits touch two paths, not one: the decofile blocks (
.deco/blocks/**) and the regenerated bundled snapshotsrc/server/cms/blocks.gen.json(kept in lockstep for HMR). The content-only gate only accepted the former — so every real Studio commit was classified as a code change and never fast-deployed.Content-only now means: every changed file is under
.deco/blocks/or equalssrc/server/cms/blocks.gen.json.internal/deploy/target.go— extractedisContentPath(prefix or exact-file match);blocksGenFileconstant documents why the gen file carries no code change (it's derived from the blocks).internal/deploy/target_test.go— new unit tests forisContentOnly(incl. the real Studio-commit shape and the.deco/blocks-oldsibling case) anddecofileName(sanitization + 63-char cap).docs/fast-deploy-webhook.md— updated rule description.Note: the KV sync itself is unchanged — the syncer reads
.deco/blocks/*.json; the gen file just rides along in the commit.🤖 Generated with Claude Code
Summary by cubic
Expand the content-only fast-deploy gate to include the generated snapshot
src/server/cms/blocks.gen.json, so Studio content commits fast-deploy instead of triggering a full build. KV sync behavior is unchanged..deco/blocks/**or exactlysrc/server/cms/blocks.gen.json(extractedisContentPath, addedblocksGenFile).isContentOnlyanddecofileName(covers Studio commit shape and edge cases).docs/fast-deploy-webhook.mdto reflect the new rule.Written for commit 8274e2b. Summary will update on new commits.