Skip to content

fix: prepare isolated Python before candidate builds - #2035

Merged
yansfil merged 1 commit into
mainfrom
fix/candidate-python-runtime
Nov 3, 2026
Merged

yansfil merged 1 commit into
mainfrom
fix/candidate-python-runtime

Conversation

@yansfil

@yansfil yansfil commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Mac 후보 빌드가 Python의 TOML 모듈을 찾지 못해 중단되던 문제를 고칩니다.
mini와 hosted 모두 웹/WASM 빌드 전에 Python 3.12를 명시적으로 준비하고 지원 여부를 확인합니다.

Review

  • 판단해 주세요: 기존 정리 경계 안에 설치되는 Python을 선택했습니다. 고정 설치 경로와 계정 권한 변경이 필요한 setup-python은 이 runner에 맞지 않습니다.
  • 조심해서 볼 파일: .github/workflows/release-candidate.yml의 준비 순서와 임시 디렉터리, action SHA와 uv 내장 체크섬 조합을 확인해 주세요.
  • 제품 코드, 서명·게시 흐름, runner hooks·권한·산출물은 바꾸지 않습니다.

Evidence

  • 후보 workflow와 기존 runner 격리·정리 검사 21개가 통과했습니다. 준비 단계 삭제, Python 3.10 지정, compile 이후 준비 이동은 각각 회귀 검사에서 실패했습니다.
  • 로컬 macOS ARM64의 격리 폴더에서 체크섬으로 확인한 uv가 Python 3.12.13을 설치했고, PATH의 python3가 tomllib로 실제 Cargo.lock의 399개 패키지를 읽었습니다. 런타임 폴더 정리를 확인했습니다.
  • 독립 리뷰 지적 사항은 0건입니다. 별도 로컬 harness에서 고정 action의 setup/post 실행, Python 선택, 실패 전파와 기존 cleanup hook을 검증했습니다. 실제 GitHub runner 실행은 별도입니다.
  • 전체 로컬 게이트 FAIL: Rust lint는 통과했지만 Rust 재실행 1회에서 lifecycle::a_holder_runs_its_shell_and_carries_input_and_output_across_connections가 화면 크기 응답 전 ProgramExited로 실패했습니다. 해당 suite는 66 PASS / 1 FAIL이며 뒤의 Rust suite는 실행되지 않았습니다.
  • 같은 head에서 해당 lifecycle 테스트는 최초 실행 PASS(fullgate.log:24538), 재실행 FAIL(rust-rerun-1.log:24019)입니다. ProgramExited와 before "40 100" 진단은 기존 flaky issue #426과 일치하며, 제품 runtime 소스는 변경하지 않았습니다. docs/TESTING.md의 flaky 정책을 적용하되 로컬 Rust 종료값은 FAIL로 보존합니다.
  • 최초 Rust 실행은 xterm 의존성 미설치로 6개가 준비 단계에서 실패했습니다. 의존성 설치로 그 6개는 통과했고, 최초 로그와 재실행 실패를 모두 보존했습니다. 추가 Rust 재실행이나 범위 밖 코드 수정은 하지 않았습니다.
  • 별도로 처음 실행한 web 게이트는 PASS: 웹 2,482 PASS / 3 skipped, 데스크톱 307 PASS / 4 skipped, typecheck·lint·web/phone/desktop build 통과.
  • 로컬 Flaky e2e: agent-tab-groups가 외부에서 만든 포커스 탭을 막대에 못 붙임 (Linux) #426 실패는 운영자 승인으로 예외 처리했습니다. 실패 로그는 유지하며 전체 CI와 병합 전 검사는 계속 필수입니다.
  • 전체 CI는 실패한 Windows VT 작업만 한 번 재실행한 뒤 성공했습니다. 최초 records 실패는 기존 #403과 같은 증상이며 원본을 보존했습니다.
  • 첫 CI의 브라우저 기록 9개는 518개 통과, 실패·flaky·실제 재시도 0개입니다. 재실행 성공을 Windows 테스트의 안정성 증거로 확대하지 않습니다.
  • 실제 mini Python 경로는 SSH 연결 시간 초과로 확인하지 못했습니다. 수정 workflow의 GitHub 실행과 새 release candidate는 병합 후 별도 검증합니다.
Verification record
  • Base: 0dc604011e0c0c52292585e750c1e4400030169e
  • Head: 17228a2814e3bc152df17c6d2c378cdabe9d78dc
  • Original failure: candidate 41594338337, attempt 1, job 125779231253, 2026-11-03T07:12:26Z, missing tomllib; original log SHA256 d394f86cbd58639579927dbdbb6de610a42d3abe5cf2ee0bdf4157da6b6465cf preserved.
  • Focused tests: python3 -m unittest scripts.tests.test_release_candidate scripts.tests.test_candidate_runner, 21 PASS; 3 predicted mutations rejected.
  • Policy: workstation identity and agents namespace PASS; the first identity check rejected an absolute hosted cache path in documentation, removed before commit.
  • Runtime preparation: local isolated uv/Python smoke PASS, not a GitHub runner execution.
  • Rust lint: PASS; original test-scoped: 4,758 PASS / 6 FAIL / 35 ignored; approved rerun 1 after dependency preparation: 4,763 PASS / 1 FAIL / 35 ignored. Counts cover completed suites only, not the unrun remainder.
  • Web gate: exit 0.
  • Independent review and verification: same head, zero findings; actual pinned action setup/post and cleanup hook executed in an isolated local harness.
  • Cleanup: owned checkout processes 0; private Python smoke runtime removed; tracked tree clean. Heavy slot returned.
  • Local check exception: maintainer decision 20; original and one rerun failures retained, no CI or premerge waiver.
  • CI: run 41599193543, attempt 1 failed only Windows VT and its aggregator; attempt 2 succeeded after failed-jobs-only rerun.
  • First-attempt Playwright: 9 reports, tested merge 3007c60755023ec204630dd57c513eb20696bd91, 518 expected / 0 skipped / 0 unexpected / 0 flaky / 0 actual retries.
  • Superseded body-edit run 41599400599 was cancelled to avoid duplicate full verification; this final body edit is checked separately.
  • Scope: 3 files, no product runtime changes.

@yansfil
yansfil marked this pull request as ready for review November 3, 2026 07:52
@yansfil
yansfil merged commit 1fbe27d into main Nov 3, 2026
157 of 166 checks passed
@yansfil
yansfil deleted the fix/candidate-python-runtime branch November 3, 2026 08:41
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