Skip to content

fix: deploy the phone site with a project-scoped token - #2031

Merged
yansfil merged 2 commits into
mainfrom
fix/phone-project-token-deploy
Nov 3, 2026
Merged

yansfil merged 2 commits into
mainfrom
fix/phone-project-token-deploy

Conversation

@yansfil

@yansfil yansfil commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • 프로젝트 전용 토큰을 구 CLI가 팀 조회 단계에서 거절해 폰 배포가 멈췄습니다.
  • Vercel CLI를 npm 배포본 65.10.0으로 고정해 프로젝트 조회가 허용된 토큰으로 CI 빌드 파일을 배포합니다.
  • 보존·CSP·해시·출처 확인과 실패 시 데스크톱 패키징 중단은 유지합니다.

Review

  • 조심해서 볼 파일: release-candidate.yml의 CLI pin과 test_phone_release.py의 실제 업로드·권한 거절 경계.
  • 판단해 주세요: 실제 토큰을 쓰는 main 후보 배포는 배포 담당자가 실행하고 production 확인 결과를 검토해야 합니다.

Evidence

  • 확인한 것: Node 22에서 npm CLI 50.1.3은 프로젝트 200·팀 403에 실패하고, 65.10.0은 준비된 파일과 동일한 바이트를 업로드했습니다.
  • 확인한 것: 프로젝트 404·다른 팀 오류·업로드 거절은 실패하며, 구 pin 복원 시 회귀검사가 실제 배포 단계 전에 실패합니다.
  • 확인한 것: 관련 Python 검사 14개(기존 Node 보존 검사와 실제 CLI 5개 시나리오 포함), actionlint, 경로·산출물 정책 검사 통과.
  • 확인하지 못한 것: 최초 전체 게이트는 테스트용 xterm 미설치로 holder 6건이 실패했습니다. 문서화된 선행조건 보완 후 동일 커밋의 Rust 1회 재실행과 전체 web 검사는 통과했습니다.
  • CI: 최종 verify는 성공했습니다. Windows 브라우저 2건은 자동 재시도 통과이며 Windows e2e: s2의 재시도에서 less를 q로 끝낸 뒤 셸 프롬프트가 돌아오지 않는다 #475·#296으로 추적되어 안정성 확인은 남습니다.
  • 미실행: 실제 토큰·production 업로드/확인·DNS·물리 폰 및 Linux/Windows 실제 CLI 실행.
  • 실제 CLI 회귀는 두 npm CLI 설치 경로를 지정하는 opt-in 검사이며, 기본 CI에서는 외부 실행파일 미설치로 명시적으로 건너뜁니다.
Verification record
  • Base: c27ecfb
  • Head: 1681c0e
  • Runtime: Node 22.23.4, pnpm 10.34.9, macOS arm64.
  • Focused evidence head: cab1549; workflow/test bytes unchanged at final head, phone BUILD delta unchanged.
  • Focused command: python3 -m unittest -v scripts.tests.test_phone_release scripts.tests.test_release_candidate, both CLI paths set: 14 tests PASS.
  • Actual npm artifacts: https://registry.npmjs.org/vercel/-/vercel-50.1.3.tgz, https://registry.npmjs.org/vercel/-/vercel-65.10.0.tgz.
  • CLI 65.10.0 npm integrity: sha512-dXoJ5FqmbnUqpIJ/wBRXJnc/+fiARikuPA80wFJF3IfhS0/dpH+rv2oIKfpylWTe7p4gtHAIX3svZBiUA81cng==.
  • Old-pin mutation: expected success fails with exit 1 and zero deployment requests; restored before commit.
  • Original worker reported static checks: actionlint .github/workflows/release-candidate.yml, git diff --check, check-no-workstation-identity.sh, check-harness-ignore-anchor.sh PASS.
  • Self-review: correctness, fragmentation, simplicity, module boundaries, ownership/limits and tests reviewed; no blocking finding.
  • Independent source review and separate final evidence verification: PASS at final clean head, no blocking findings.
  • Original full gate at final head: lint PASS, Rust exit 101; six failures at hide-holder/tests/it/support.rs:682, missing test xterm (docs/TESTING.md:611,621). Original logs retained.
  • Execution ownership: original focused checks and initial full gate by the original worker; prerequisite install, one Rust rerun and the first complete web gate by the conductor; recovery owner only inspected evidence.
  • Final retry: start/end/current head identical and clean; install_holder=0, rust_retry=0, web=0, final exit=0.
  • Rust retry: 7385 passed, 170 ignored; web: 2482 passed, 3 skipped; desktop: 307 passed, 4 skipped. Web/desktop lint, typecheck and builds passed.
  • Original and retry logs preserved with SHA-256 receipts locally. PR CI: https://github.com/with-hide/hide/actions/runs/41576834428, exact head, success; 42 jobs succeeded, 7 planned skips.
  • CI skips include macOS desktop/OS-contract/package lanes and fake-model journey; no claim that these ran.
  • Windows web E2E: 70 passed and 2 flaky after automatic retries. right-lane.spec.ts:249 (with-hide/hide-private#475) and s3.spec.ts:1296 (with-hide/hide-private#296); these flows remain unproven as stable.
  • Read CI Rust, Linux browser and Windows desktop reporter logs: no flaky test reported in those jobs. No manual CI rerun was started.
  • Evidence retained locally; no credentials, logs, installed packages or run artifacts committed.
  • Changed paths: .github/workflows/release-candidate.yml, scripts/tests/test_phone_release.py, docs/BUILD.md.

@yansfil
yansfil merged commit fe307d0 into main Nov 3, 2026
73 checks passed
@yansfil
yansfil deleted the fix/phone-project-token-deploy branch November 3, 2026 04:52
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