Repository navigation
test(vercel): tie the root-config marker to the reconciliation flag - #721
Merged
Merged
Conversation
The native lane's NATIVE_REMOTE_BUILD_SIGNATURE is consumed as an exact-ordered, all-present signature, and since #697 its last entry, `wrote vercel.json`, is conditional rather than guaranteed: the vercel target drops the root config from its emitted artifacts when `build.vercel.reconcileVercelJson` is false, which is the prebuilt-CI configuration. Nothing was broken, because the flag defaults to true and no fixture sets it, but pointing that lane at a prebuilt-only project would have failed the parser for doing exactly what it was configured to do. `parseNativeBuildProvenance` now takes `reconcilesVercelJson` (default true) and follows it in both directions: the marker is required when reconciliation is on and must be ABSENT when it is off, since reconciliation that happens anyway means the opt-out never reached the builder. A signature mismatch also names the offending marker now — missing, duplicated, out-of-order, or unexpected — instead of reporting only "native Vercel source build provenance is incomplete", which gave no clue which of seven markers moved. Test-only; no package behaviour changes. Co-Authored-By: Claude Opus 5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
blove
enabled auto-merge (squash)
September 18, 2026 00:40
blove
temporarily deployed
to
vercel-preview
September 18, 2026 00:41 — with
GitHub Actions
Inactive
This branch was successfully deployed
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.
Follow-up from #697. I raised this on #691 while that PR owned these lines; it closed unmerged and the
b4.funcrename landed through #717 instead, leaving the note unactioned and the lines free.The latent trap
NATIVE_REMOTE_BUILD_SIGNATUREinpackages/cli/test/helpers/vercel-native-fixture.tsis consumed as an exact-ordered, all-present signature:exactOrderedSignaturerequires every entry to appear exactly once, in increasing index order. Since #697 its last entry,wrote vercel.json, is conditional rather than guaranteed, because the vercel target drops the root config from its emitted artifacts whenbuild.vercel.reconcileVercelJsonisfalse. That is the prebuilt-CI configuration the flag exists for.Nothing was broken. The flag defaults to true and no fixture in this lane sets it, so the marker is always emitted and the lane stays green. The trap is for whoever next points that fixture at a prebuilt-only project: the parser would reject a build for doing exactly what it was configured to do, and the failure surfaced as
native Vercel source build provenance is incompletewith no indication which of seven markers moved.What changed
parseNativeBuildProvenancetakesreconcilesVercelJson, defaulting totrueto match the target's own default.Tests
Two new cases in
vercel-native-lane.test.ts, both in the ungated lane, so they run without Docker or a real Vercel project:reconcilesVercelJson: false, and rejected asunexpected markerwhen it appears despite the opt-out;The first test fails against the previous parser on its first assertion, which is how I confirmed it binds rather than passing vacuously.
Locally: lint, cli typecheck,
check-docs, and the four vercel suites (vercel-native-lane,vercel-target,build-targets,vercel-stores, 470 tests) all pass.Test-only, so no changeset. The changeset check agrees: no user-facing changes detected.
🤖 Generated with Claude Code