Skip to content

fix: restore preview deploys and exclude Git metadata from traces - #3580

Merged
innolope-dev merged 1 commit into
devfrom
innolope/fix-vercel-preview-cli
Oct 5, 2026
Merged

innolope-dev merged 1 commit into
devfrom
innolope/fix-vercel-preview-cli

Conversation

@innolope-dev

@innolope-dev innolope-dev commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Preview deploys fail with Vercel CLI 62.4.0 because prebuilt function file maps reference version-control metadata. Pin the workflow to the last successful CLI, 62.2.0 (run 37360463386), and exclude both .git files and .git/** directories from all Next.js server traces.

The fresh build's intermediate NFT output traces the content submodule's src/content/.git pointer file in 34 routes, including /shhhhh (through the content-backed footer) and /app-help/[locale]/[article]. CLI 62.4.0's actual prebuilt file validator reproduces PREBUILT_FILEPATHMAP_VCS for both submodule pointer files and Git directory contents. The global tracing exclusion covers both layouts while preserving content and receipt font files. Keep the CLI pin until a complete 62.4.0 deployment is verified.

Validation:

  • Local vercel build --target=preview with CLI 62.4.0 passed, including TypeScript and 1,213 generated static pages. Used local project settings and LOCAL_BUILD=true to skip Sentry uploads.
  • All 205 final NFT traces and seven .vc-config.json files (6,447 file-map entries) contain zero VCS references. Runtime Markdown and receipt fonts are preserved.
  • CLI 62.4.0's actual prebuilt buildFileTree upload validator accepts the complete output without uploading it.
  • Prettier and git diff --check pass. Commit authored by innolope-dev, signature status G; GitHub reports the signature as valid.

The pinned preview deployment passed in run 37386932836. A live deployment with CLI 62.4.0 has not been attempted.

@innolope-dev innolope-dev self-assigned this Oct 5, 2026
@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
peanut-wallet Ready Ready Preview Oct 5, 2026 11:14pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: peanutprotocol/peanut-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd82c88c-a613-49a0-a2fc-89e1115190d6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

⚠️ This PR changes CI workflows or the backdoor scan itself

The scan in tests.yml runs this PR's own workflow, so a change here could switch it off. This check stays red until the change is merged. Someone other than the author must read these files before anyone runs the branch:

  • .github/workflows/preview.yaml

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Code-analysis diff

Painscore total: 9157.22 → 9157.22 (0)
Findings: 0 net (+0 new, -0 resolved)

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

⚠️ This PR changes CI workflows or the backdoor scan itself

The scan in tests.yml runs this PR's own workflow, so a change here could switch it off. This check stays red until the change is merged. Someone other than the author must read these files before anyone runs the branch:

  • .github/workflows/preview.yaml

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🧪 UI test report — ✅ all green

Suites

  • ✅ unit: 10962 ran, 0 failed, 0 skipped, 4.0m

📊 Coverage (unit)

metric %
statements 83.3%
branches 73.6%
functions 78.2%
lines 84.5%
⏱ 10 slowest test cases
time test
🐢 9.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › Network failure keeps loading while retries remain, then shows the generic error
4.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › MANTECA_SOURCE_OVER_MONTHLY_CAP fails fast with copy that names the real cause
4.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › User KYC not approved fails fast with copy that names the real cause
4.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › routes the KYC rejection on its wire code, and does not retry it
4.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › MANTECA_USER_NOT_PROVISIONED fails fast with copy that names the real cause
4.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › a refused idempotency key tells the user to scan again, not to contact support
4.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › MANTECA_MERCHANT_RECENT_REFUND fails fast with copy that names the real cause
4.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › MANTECA_MERCHANT_VOLUME_NEAR_CAP fails fast with copy that names the real cause
3.9s src/components/Card/share-asset/__tests__/shareAssetLayout.test.ts › never places two stickers in heavy overlap (broad seed sweep)
3.0s src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx › Scan that recovers on the retry lands on the payment screen, not an error
📍 Inline annotations are in the **Unit test report** check above. Coverage artifact: `coverage-unit`. Generated by `.github/workflows/tests.yml`.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

⚠️ This PR changes CI workflows or the backdoor scan itself

The scan in tests.yml runs this PR's own workflow, so a change here could switch it off. This check stays red until the change is merged. Someone other than the author must read these files before anyone runs the branch:

  • .github/workflows/preview.yaml

@chip-peanut-bot chip-peanut-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chip review — no blocking findings — this is not an approval

No actionable findings at the specified head; the pinned CLI completed a preview build and deployment.

Checked clean

  • Compared the exact base and head: the workflow pins Vercel CLI to 62.2.0 and tracing excludes only .git metadata paths.
  • The Deploy-Preview check completed successfully with CLI 62.2.0 at this head.
  • The backdoor scan was clean; its guard check is intentionally red because the PR changes a workflow file.
  • Typecheck, lint, unit tests, and formatting checks passed at this head.

Security review by moonshotai/kimi-k3: 0 finding(s), marked with the model name. It reads the diff only and answers only security, privacy and money, so treat its findings as advice.

Third opinion by claude-opus: 0 finding(s), marked with the model name. It answers only product truth, missing tests and the cross-repo contract, so treat its findings as advice.

Exact head: f44a2e232a41 · Context: repo · Took 3m

@innolope-dev
innolope-dev merged commit b89db49 into dev Oct 5, 2026
40 of 46 checks passed
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

English · Español · Español (Argentina) · Português (Brasil)

Open screen library dashboard

After merge: b3661e4 → b89db49. Capture complete in all locales.

This branch was successfully deployed

1 active deployment
Preview — f44a2e23 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