Repository navigation
feat: make the Windows device kit beside both Linux kits in every release candidate - #2138
Merged
Merged
Conversation
…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).
…eat/release-windows-kit
… Windows tar needs
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.
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
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).Evidence
device-helpers.test.mjs20개: 후보 묶음 3개(목록 없음), Windows 묶음이 compile 산출물 바이트와 ConPTY 8개 파일을 담음, 다른 identity·바뀐 바이너리·ConPTY 없음 거부, 4개 항목으로 쓴 format 4 목록을readDeviceKit·stageDeviceKit가 받아들임, 모자란 목록·바뀐 archive·다른 버전 이름 거부.release-candidate.test.mjs13개: schema 5 receipt가 세 묶음의 항목을 기록, 다른 버전·추가 archive·기록과 다른 Windows 빌드 거부, 한 번만 채움.test_release_candidate.py,test_release_assets.py,test_ci_plan.py121개 통과; 자산 게이트는 여전히 20개 파일과 태그의 identity를 가진 format 4 목록을 요구하고, 모자란 묶음 메시지에서 N3 언급을 뺌.device-helpers.mjs bundle을 가짜 프로그램 바이트 + 실제fetch-conpty.py로 돌려 세 archive를 만들고, Windows archive가.exe4개와holder-conpty/4개를 담는 것을tar -tzvf로 확인.scripts/check-device-kits-single-source.py통과, desktop eslint 통과.package레인device bundles작업 산출물이 c1의 CI 증거이고, 첫 실제 후보 실행이 남은 증거입니다.release-candidate.yml)은 dispatch로만 돌아서 CI에서 실행되지 않음; 단위 테스트로만 확인.unittest discover에서 부하(load 146) 때test_ci_verification_entrypoints,test_agent_live_protection이 subprocess timeout으로 실패했고 단독 재실행에서 71개 통과.Verification record
base
feat/device-kit-contract2c6f4bd, head 7881f05.node --test scripts/tests/*.test.mjs55 pass;vitest run scripts(desktop) 31 pass;pytest scripts/tests/test_release_candidate.py test_release_assets.py test_ci_plan.py121 pass.