Repository navigation
修复 main 上 CI 失败:部署脚本测试在 runner 上解析 JSON 出错 + react-router 审计告警 - #121
Merged
todosdev[bot] merged 1 commit intoOct 17, 2026
Merged
Conversation
- disable pnpm's verify-deps-before-run in the D1 migration test so `pnpm exec wrangler --json` no longer prints "Already up to date" / "Done in ... using pnpm" to stdout and corrupts the JSON - bump react-router-dom to ^7.18.2 (resolves 7.18.4), clearing the two high and three moderate advisories - make the dependency-audit job blocking now that the advisories are resolved Checkpoint: bphcfujQfhRLfAF6R3vVx
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.
Summary
Test deploy scriptsCI failure:pnpm exec wrangler d1 execute --local --jsonemitted non-JSON lines (Already up to date/Done in … using pnpm) to stdout on the runner, corrupting the JSON parsed by the test andd1_query. Root cause is pnpm 11's defaultverify-deps-before-run=install, not wrangler itself.pnpm auditby bumpingreact-router-domto^7.18.2(resolves7.18.4), clearing 2 high + 3 moderate advisories.Changes
.github/scripts/test-d1-migrations.mjs— setpnpm_config_verify_deps_before_run=falsein the fixture env sopnpm exec wranglerno longer runs a deps-check install and pollutes stdout. Production deploy scripts (d1-prepare-migrations.sh/d1-prefixed-migrations.sh,--remotepath) run fromapps/workerwith deps in sync, so they are unaffected (already proven by Deploy #183).apps/web/package.json/pnpm-lock.yaml—react-router-dom^7.0.0→^7.18.2(lockfile resolves7.18.4)..github/workflows/ci.yml— removecontinue-on-error: truefrom theauditjob, per the original chore(deps): update dependency wrangler to v4.84.1 #3 intent to make it blocking once the react-router advisories were resolved.Testing
node --test .github/scripts/test-d1-migrations.mjs .github/scripts/test-deploy-checks.mjs— 17/17 pass locally (macOS).pnpm audit --prod --audit-level=high→ "No known vulnerabilities found".pnpm check/pnpm typecheck/pnpm buildall pass.