Repository navigation
ci: build complete unsigned desktop candidates on GitHub Actions - #582
Merged
Merged
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 588cda59ad
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
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.
Adds GitHub-hosted macOS arm64 and Windows x64 builds for complete unsigned development candidates. Both platforms use one full source SHA and matching prerelease versions. PR builds produce Actions artifacts; an explicit manual
create_draft=truerun on main can assemble a new Draft prerelease after both platforms pass. Existing tags/releases are preserved. No signing certificate, PAT or model API secret is required.All 57 gstack skills, platform-native tools and FFmpeg are retained. Chrome for Testing and TestSavant weights download from fixed official sources on first use, verify pinned sizes and SHA-256, and publish atomically into private application caches. Subsequent use verifies cached content locally; failed acquisition blocks the affected operation. Version-matched original licenses, source materials, notices and SBOM accompany the candidates.
Windows final-archive verification uses a fixed, checked official full 7-Zip tool on the build host because the builder's standalone 7za cannot open NSIS. The downloaded SFX is opened as archive data rather than executed. The final installer retains the original reviewed plug-in bytes.
Windows installation preserves deep gstack paths during extraction, copying, upgrade backup/restore and uninstall. The private, hash-bound stock template overlay uses extended-length paths and system robocopy. Exhausted copy retries return exit code 2 instead of silently registering a partial installation. Existing installation discovery and the stock traversal/rename/restore algorithm are retained. Native regression coverage checks actual embedded archive bytes, custom-path installation, upgrade without
/D, complete fixture removal, and a forced locked-file copy failure. The complete candidate additionally compares every installed file, exact registration and shortcut AppUserModelIDs, starts the installed Electron runtime, and uninstalls it. Registration verification follows the pinned stock template: the uninstall display name includes the version, and the installation path comes from the separate install key.Bun 1.4.4 API-compiled Windows executables report
import.meta.main=false, causing the browser CLI to return success without starting its server. The packaged CLI plugin now validates the exact unique upstream terminal entry and invokes it explicitly with its original error handler. Imported dependencies retain their main guards. Native regression coverage checks asynchronous startup, rejection with exit code 1, and dependency isolation. The real browser smoke also requires nonempty--versionoutput and the expected no-autostart failure before exercising first download, page interaction, stop and cache restart.macOS uses ad-hoc signing and strict final-archive signature verification. The installer adaptation's reviewed source digest was independently rebound earlier in this PR; the other packaging/native pins remain checked. The browser entry fix does not alter either Office or codesign reviewed source closure.
Model-cache lock recovery also handles NTFS reusing the deleted directory's file ID: a fresh type/permission/canonical-path observation can authorize only
ESTALEretry under the original deadline. It never authorizes reading/deleting an owner or publishing from the obsolete observation. Persistent aliases and persistentEBADFstay rejected. Independent review verified all 1535 source digests and approved rebinding the one changed model-cache source digest.Review triage: the installer
ExecToStackpop-order report is a false positive. The fixed NSIS v3.04 documentation/source specify return code first, then output; the native locked-copy probe independently returns 2 without registering a partial install. The three CodeQL test-only code-sanitization comments concern JSON literals imported as base64 JavaScript modules. There is no HTML/script-element sink; hostile quote and</script>fixtures remain string data. They do not identify executable input injection in this test context.Validation at
76bc6bc90107e1e2013a2fee7755da295521e32e:Local model-cache/state regressions: 37 passed, 0 failed. The two deterministic file-ID-reuse cases fail without the fix. An independent run of the model-cache file passed 34/34.
Native Windows model-cache contracts: passed, including 20 repetitions of the concurrent orphan-recovery fixtures.
Native Windows browser/installer contracts: 2 browser entry tests and 6 installer tests passed, including the 280-character install/registered-path upgrade/uninstall fixture and locked-copy exit code 2 without partial registration.
Full product CI: passed. A fresh PR full-ci run also passed all 13 jobs at this same source SHA.
Complete native candidates: both macOS arm64 and Windows x64 passed, from this exact source SHA. Both contain all 57 gstack skills. macOS verifies the actual DMG/ZIP payloads and ad-hoc signatures. Windows verifies all 35,642 installed payload files, registration/shortcuts, same-version upgrade, installed Electron startup and uninstall. Both platforms passed official browser first download, page interaction, stop, cache reuse with zero network requests, unavailable-proxy restart and owned-service cleanup.
Downloaded the actual candidates from run
40172853176: macOS artifact12591873318and Windows artifact12591532926. Verified each complete ZIP against GitHub's size and SHA-256 metadata, then admitted only the exact 11 expected plain files. The productiondesktop-release.mjs assemblesucceeded against those bytes with matching provenance; independentshasum -a 256 -c checksums.txtpassed for all 11 files. Combined manifest SHA-256:cb4d277f21df240882bf01ffeb500ec61182ec130a13437c2d7f9a728019ee2d; checksums file SHA-256:85300a7eb169656ba89be2f7c6023845dd4ce0fd880b9b2c4ba5c79d476a634f.Flake evidence
At
291e06d5, the full native multi-file suite hit the orphan-recovery success fixture's artificial 1000 ms acquisition deadline after 1167 ms, while the dedicated native workflow and its 20 orphan-recovery samples passed. A fixed 1100 ms I/O/request delay reproduces the same deadline failure. The specific slow hosted I/O operation was not traced; cross-file resource contention is an isolation hypothesis, not a proven defect in a particular tool.This model-cache test is introduced by this PR and has no equivalent on main; the before-isolation comparison uses
291e06d5. The native contract lane now runs independent test files with--test-concurrency=1. The actual test, real 1000 ms deadline, all assertions and within-file two-writer/32-writer concurrency are unchanged. For the fixed mutation disabling empty-lock recovery, both the previous invocation and the serialized invocation failed 20/20 through the existing deadline: empiricalP(fail | that regression)remains 1.00. No timeout, retry or skip was added. Both complete native contract lanes and final package checks passed at76bc6bc9.These are development candidates: macOS has no Developer ID/notarization and Windows has no Authenticode publisher signing. Hosted archive/runtime/browser checks do not establish real-user GUI, model, Office or Computer Use acceptance. Historical Canvas source-graph limitations and
releaseEligible: falseremain explicit. No tag, Draft or public release has been created.Operator instructions: GitHub Actions desktop builds.