Skip to content

feat: make the Windows device kit beside both Linux kits in every release candidate - #2138

Merged
yansfil merged 4 commits into
mainfrom
feat/release-windows-kit
Nov 6, 2026
Merged

yansfil merged 4 commits into
mainfrom
feat/release-windows-kit

Conversation

@yansfil

@yansfil yansfil commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Related: with-hide/hide-private#501 (N3 release-kits), base #2130 (N2), companion with-hide/hide-private#625 (N4 publisher-mac-kit)

Summary

릴리스 후보가 Windows 기기용 묶음을 만들지 않아서, Mac이나 Linux 코어가 릴리스로 Windows PC를 기기로 붙일 수 없었습니다.
이제 후보 실행의 device bundles 작업이 Linux 두 묶음 옆에 Windows x64 묶음을 만듭니다.
Windows 묶음은 Windows 앱이 싣는 바로 그 바이트(compile (windows) 산출물)와 고정된 ConPTY로 만들고, Windows를 두 번 빌드하지 않습니다.
묶음 목록(device-bundles.json)은 공개 쪽이 만들지 않습니다. 비공개 배포 쪽이 서명된 Mac 묶음을 더해 네 묶음의 목록을 씁니다(#625).
Mac 패키지는 더 이상 묶음을 릴리스 폴더에 복사하지 않습니다.

스크린샷 없음: 화면을 바꾸지 않는 릴리스 스크립트와 workflow 변경입니다.

Review

  • 판단해 주세요: receipt schema 5는 device_helpers를 없애고 device_kits(목록 항목 그대로: asset, sha256, size, files)로 바꿉니다. 배포 쪽은 이 항목을 목록에 그대로 옮깁니다.
  • 조심해서 볼 파일:
    • .github/workflows/package.yml - device bundles가 이제 compile (windows)를 기다리고, package (macos)는 묶음을 기다리지 않음. 후보는 main과 다른 package.yml을 가진 source를 거부하므로(release-candidate.yml:75) rc는 이 PR과 #625가 모두 들어간 뒤에.
    • .github/workflows/release-candidate.yml - receipt 작업이 묶음과 그 원본 빌드(두 Linux helper, Windows compile)를 함께 받아, 묶음 안 프로그램이 기록된 빌드와 같은 바이트인지 main의 검사기로 확인.
    • desktop/scripts/device-helpers.mjs - makeDeviceKit, readDeviceKit, writeDeviceManifest를 #625가 공개 checkout에서 import해서 씀. 이름과 인자 순서가 계약.
    • desktop/scripts/package.mjs - 릴리스 Mac 패키지의 묶음 복사를 지움(engineering principle 1).
  • 질문: #2130이 먼저 머지되면 이 PR과 #625가 들어갈 때까지 모든 릴리스가 자산 게이트에서 거부됩니다(의도된 실패). 셋을 연달아 머지해 주세요.

Evidence

  • 확인한 것:
    • device-helpers.test.mjs 20개: 후보 묶음 3개(목록 없음), Windows 묶음이 compile 산출물 바이트와 ConPTY 8개 파일을 담음, 다른 identity·바뀐 바이너리·ConPTY 없음 거부, 4개 항목으로 쓴 format 4 목록을 readDeviceKit·stageDeviceKit가 받아들임, 모자란 목록·바뀐 archive·다른 버전 이름 거부.
    • release-candidate.test.mjs 13개: schema 5 receipt가 세 묶음의 항목을 기록, 다른 버전·추가 archive·기록과 다른 Windows 빌드 거부, 한 번만 채움.
    • test_release_candidate.py, test_release_assets.py, test_ci_plan.py 121개 통과; 자산 게이트는 여전히 20개 파일과 태그의 identity를 가진 format 4 목록을 요구하고, 모자란 묶음 메시지에서 N3 언급을 뺌.
    • 로컬에서 실제 device-helpers.mjs bundle을 가짜 프로그램 바이트 + 실제 fetch-conpty.py로 돌려 세 archive를 만들고, Windows archive가 .exe 4개와 holder-conpty/ 4개를 담는 것을 tar -tzvf로 확인.
    • scripts/check-device-kits-single-source.py 통과, desktop eslint 통과.
  • 확인하지 못한 것:
    • 실제 릴리스 후보 실행: 이 PR에서 돌릴 수 없음. 이 PR의 package 레인 device bundles 작업 산출물이 c1의 CI 증거이고, 첫 실제 후보 실행이 남은 증거입니다.
    • receipt 작업(release-candidate.yml)은 dispatch로만 돌아서 CI에서 실행되지 않음; 단위 테스트로만 확인.
    • 실제 기기로 Mac/Linux 코어에서 Windows 기기 연결: N5(rc 뒤)의 몫.
    • 로컬 전체 unittest discover에서 부하(load 146) 때 test_ci_verification_entrypoints, test_agent_live_protection이 subprocess timeout으로 실패했고 단독 재실행에서 71개 통과.
Verification record

base feat/device-kit-contract 2c6f4bd, head 7881f05.
node --test scripts/tests/*.test.mjs 55 pass; vitest run scripts (desktop) 31 pass; pytest scripts/tests/test_release_candidate.py test_release_assets.py test_ci_plan.py 121 pass.

…ease candidate

The candidate's device bundles job now archives the Windows x86_64 kit from
compile (windows)'s binaries and the pinned ConPTY runtime, the bytes the
Windows app ships, beside both Linux kits, and writes no manifest: the
private publisher adds the Mac kit and writes the release's manifest with
makeDeviceKit, readDeviceKit and writeDeviceManifest. Receipt schema 5
records every candidate kit's manifest entry (device_kits) after checking
each program against its recorded build. No package copies kits anymore.

Part of with-hide/hide-private#501 (N3 release-kits).
Base automatically changed from feat/device-kit-contract to main November 6, 2026 02:44
@yansfil
yansfil added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 481a4e9 Nov 6, 2026
82 checks passed
@yansfil
yansfil deleted the feat/release-windows-kit branch November 6, 2026 09:47
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