Skip to content

ci(checks): enforce the duplicate code gate - #181

Merged
PerfectPan merged 2 commits into
masterfrom
ci/duplicates-gate
Nov 18, 2026
Merged

PerfectPan merged 2 commits into
masterfrom
ci/duplicates-gate

Conversation

@PerfectPan

@PerfectPan PerfectPan commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Run the existing pnpm duplicates check after lint in the pull request build job. The shared jscpd configuration has a zero threshold. The current master reports zero clones, so any newly reported clone fails CI.
  • Add the gate to the existing contributor and review checklists. pnpm duplicates:audit remains available for a report.

Validation

  • pnpm install --frozen-lockfile passed with the lockfile unchanged.
  • pnpm duplicates on master at db7faf7 printed Found 0 clones. and exited 0. After cp packages/shared/src/upload.ts packages/shared/src/dup-probe.ts, it identified both files, printed Found 1 clones. and exited 1. After removing the copy, it printed Found 0 clones. and exited 0.
  • pnpm lint, pnpm typecheck and pnpm test passed. All 54 unit tests passed.
  • pnpm --filter @blog/web build and pnpm --filter @blog/web exec wrangler deploy -c dist/server/wrangler.json --dry-run passed. The worker measured 1,200.72 KiB gzip against the 3,072 KiB limit.
  • E2E_BASE_URL=https://ci-duplicates-gate.preview.perfectpan.org pnpm exec playwright test tests/e2e/preview-smoke.spec.ts passed all three read-only smoke tests for page rendering and hydration, navigation, KaTeX and search. Preview deployment
  • The PR build ran pnpm duplicates and printed Found 0 clones. Actions log

Co-Authored-By: Codex <noreply@openai.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://ci-duplicates-gate.preview.perfectpan.org (commit 1244bc5)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://9acc9663.preview.perfectpan.org 1244bc5 2026-11-18T13:30:34.527Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://e2e2e225.preview.perfectpan.org 058d749 2026-11-18T13:17:28.263Z Visit the dashboard ↗

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PerfectPan
PerfectPan merged commit fdef9c8 into master Nov 18, 2026
5 checks passed
@PerfectPan
PerfectPan deleted the ci/duplicates-gate branch November 18, 2026 13:37
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