Repository navigation
feat(release): add nightly build workflow, installers, npm alias and self-updater - #7123
Merged
Merged
Conversation
M4n5ter
added a commit
that referenced
this pull request
Nov 21, 2026
…e and updater
Fix all blocking, high, and medium review findings from the GPT-6.2-Astra review:
- Fix smokeTestBuiltBinaries to use `maka code --root <temp>` and assert
`CellObservation::Completed` + text marker, running post-sign on the bundled
macOS `Maka.app/Contents/MacOS/maka`.
- Use native ARM64 LLVM (`CLANG_BASE_PATH` + `clang_use_chrome_plugins=false`)
instead of Chromium's Linux_x64 clang download on `ubuntu-24.04-arm`.
- Fix BSD `sed -nE` capture group syntax when extracting macOS Developer ID.
- Sign macOS hardened-runtime `maka` and `Maka.app` with
`com.apple.security.cs.allow-jit` so V8 `MAP_JIT` works under Developer ID.
- Wait for exclusive `RootOwner::open` writer lease release in `stop_host`
instead of treating IPC disconnect/timeout as drain completion.
- Guard `maka update` against live desktop/CLI sessions unless `--force`, and
relaunch the updated Host via `startup::connect_root` when a Host was running.
- Move Windows Inno Setup `UninstallFilesDir` outside `{app}` so self-updates
never delete `unins000.exe`.
- Restrict leftover cleanup to dead-PID staging dirs and verify the active
staged dir still exists before retiring the Host.
- Enforce Ed25519 manifest signing matched against compiled
`MAKA_UPDATE_PUBLIC_KEY` before mutating releases; fail rollover on
incomplete downloads; pass `inputs.notes` via step env; gate npm install
notes on actual npm publication; expose `DISCLAIMER` and per-platform
`THIRD_PARTY_NOTICES-*.txt` as release assets.
- Distinguish `UpToDate` from unchecked `Idle` in desktop updater UI.
Generated-by: Maka (Gemini)
M4n5ter
added a commit
that referenced
this pull request
Nov 21, 2026
Address all 7 remaining issues found in the follow-up review of 056aa8a: - Cross-compile Linux ARM64 V8 on linux/x64 (v8-linux-arm64 job) using Chromium's pinned Clang 23 instead of Ubuntu LLVM 19 on ubuntu-24.04-arm (locked Chromium GN passes -fdiagnostics-show-inlining-chain which requires Clang 23), then stage and verify the bundle natively on ubuntu-24.04-arm. - Move Ed25519 signing keypair verification into prepare so missing or mismatched keys fail before building or publishing to npm. - Replace always() with !cancelled() in nightly.yml release job conditions and distinguish explicit HTTP 404 from transient API errors when checking for an existing nightly release before rollover. - Re-probe live Host state in maka update after staging, refuse updates while interactive sessions (such as an open desktop window) are connected, use atomic try_stop_idle_host (retire_with_options(false, false)) on the normal path, wait on closing Hosts, and clean up stale leftovers on CLI update. - Switch desktop shell's updating fence from AtomicBool to watch::channel so AppKit and Linux follow() loops pause during update and cleanly resume Host reconnection if stop_host or finish fails. - Gate Unix-only WAIT_LIMIT_SECS in maka-updater to eliminate Windows dead_code warnings. Generated-by: Maka (Gemini)
M4n5ter
added a commit
that referenced
this pull request
Nov 21, 2026
Address all 5 findings from the round-3 review: - Add refuse_active_sessions to Request::Retire and Client::retire_if_no_sessions so maka update --force atomically refuses connected desktop/CLI sessions under Host.access_gate while interrupting background runs when idle of sessions. - Return RootLease (holding RootOwner) from stop_host, try_stop_host_without_sessions, wait_for_root_release, and try_acquire_root_lease, holding the exclusive writer lease across finish() so no candidate Host can start mid-swap and catching pre-registration starting Hosts when discovery is still absent. - Clear desktop updating watch channel if spawn_restarted_desktop fails after finish(), so follow() resumes instead of hanging indefinitely. - Require needs.prepare.result == 'success' on v8-linux-arm64 so signing keypair failures in prepare never trigger an ARM64 V8 cross-build. - Check owner PID liveness for .nsh-updater-old-<pid>-* rollback backups as well as staged directories in remove_stale_leftovers(), preventing concurrent CLI checks from deleting active Windows rollback files. Generated-by: Maka (Gemini)
…self-updater Add a clean, manually dispatched nightly build & delivery pipeline targeting darwin-arm64, linux-x64-gnu, linux-arm64-gnu, and win32-x64, and integrate channel-isolated self-updates built on nsh-updater with durable Host restart recovery. - Add .github/workflows/nightly.yml (manual workflow_dispatch on ubuntu-latest, ubuntu-26.04-arm, macos-latest, and windows-latest; pre-build Ed25519 keypair validation; x64 cross-compiled Linux ARM64 V8 prebuilt stage when unpinned; rolling nightly + nightly-previous pre-releases with non-ASF developer warnings, DISCLAIMER, and per-platform notices; optional @nightly npm publish). - Make Maka.app self-contained on macOS (bundling maka and maka-python-worker inside Contents/MacOS with Developer ID inside-out signing, allow-jit entitlement, post-sign V8 smoke test, DMG packaging, and notarization/stapling). - Add per-user Windows Inno Setup packaging (UninstallFilesDir outside {app}, no elevation, user PATH management), Linux archives with install.sh, and packages/maka-agent as a thin alias for @maka-agent/cli. - Add products/maka/updater and wire channel-isolated nsh-updater checks, signed latest.json verification, desktop banner/settings UI, atomic session-safe Host retirement, RootLease + launch-lock fencing across finish_with_guard, SwapFence shutdown draining, and CLI `maka update`. Generated-by: Maka (Gemini)
M4n5ter
force-pushed
the
feat/nightly-build-and-updater
branch
from
November 21, 2026 13:01
141b3de to
6092e8d
Compare
This was referenced Nov 21, 2026
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.
Summary
Prepare the upcoming
rust-preview→maintransition with a clean, manually dispatched nightly build & delivery pipeline and channel-isolated self-updates built onnsh-updater:.github/workflows/nightly.yml): pureworkflow_dispatchtargeting 4 platforms (darwin-arm64,linux-x64-gnu,linux-arm64-gnu,win32-x64), removing the legacyworkflow_runchaining, rerun bans, draft byte-comparison loops, and attestation ceremony.nightlypre-release (with prominent non-ASF developer build warnings +DISCLAIMER) and automatically rolls the immediately preceding build intonightly-previous, linked under a dedicated Previous Nightly section in the release notes.darwin-arm64): bundlesmakaandmaka-python-workerinsideMaka.app/Contents/MacOS(while preserving compatibility with sibling dev/npm layouts), signs inside-out with Developer ID whenCSC_LINKis configured, notarizes and staples both the.dmgand.app, and outputs both.dmgand updater.tar.gz.win32-x64): per-user Inno Setup installer (%LOCALAPPDATA%\Programs\Maka, no elevation, manages userPATH) + portable/updater.zip.linux-x64-gnu,linux-arm64-gnu):.tar.gzcarryinginstall.sh, desktop icon, and legal files, plus top-levelscripts/install-nightly.shfor one-line installs; addsaarch64-unknown-linux-gnuDebian bullseye sysroot support toscripts/rust/compile-v8.mjsand exports newly built V8 archives as workflow artifacts for pinning.LICENSE,NOTICE,DISCLAIMER, andTHIRD_PARTY_NOTICES.txt.products/maka/updater, desktop shell, workbench UI,maka update):devdisabled;nightlystrictly tracksreleases/download/nightly/latest.jsonwith mandatory Ed25519 signature verification and-nightly.*SemVer filtering;releasestrictly tracks GitHublatestand rejects prereleases).nsh-updaterstaging (codesign --verify --deep --stricton macOS), explicit user confirmation fences Host auto-reconnect, callsHostClient::retire_with_options(..., true, true)to flush durable execution state and release binary locks, atomically swaps the installation, and relaunches cleanly so active runs resume on restart.maka-agentalias (packages/maka-agent): optionalpublish_npmdispatch toggle reuses the same built binaries to publish@maka-agent/cli-*,@maka-agent/cli, and the thinmaka-agentalias package under@nightly.Rollout
Before the first production dispatch of
nightly.yml, configure in thenightlyGitHub environment:node scripts/rust/nightly-manifest.mjs keygenand setMAKA_UPDATE_PUBLIC_KEY(environment variable) andMAKA_UPDATE_SIGNING_KEY(environment secret) so nightly clients verifylatest.json.sig.NPM_TOKEN(environment secret) if usingpublish_npm=true.v8-prebuilt-*artifacts to adeps-v8-*release and pin their digests inscripts/rust/v8-prebuilts.json.Verification
darwin-arm64):node scripts/ci.mjs check format,licenses,notices,tooling-tests(341 passed), andrun contracts(TypeScript + UI contracts) — all passed.cargo test --locked -p maka-updater --lib(9 passed, including cross-language Node Ed25519 signature verification against Rustnsh_updater::verifyand real.tar.gzatomic directory swap).cargo test --locked -p maka-desktop-shell --bins(17 passed, including self-containedMaka.applauncher resolution).Maka.app,.dmg,.tar.gz(verified withcodesign --verify --deep --strict), signedlatest.json, and offlinenpm installofmaka-agentalias invoking the nativemakabinary.x86_64):node --test scripts/rust/nightly-manifest.test.mjs scripts/rust/package-nightly.test.mjs(4 passed, including offlinemaka-agentalias execution) andsh -n scripts/install-nightly.sh.cargo test --locked -p maka-updater --lib(8 passed),cargo check --locked -p maka-desktop-shell, andcargo check --locked -p maka-cli --no-default-features.direct2d.rs,wait_for_restarting_pid) and Inno SetupISCC.exebuild; real Apple Developer ID notarization on GitHubmacos-latestrunner. These will be exercised by CI and the first manualnightly.ymlrun.AI use
Select exactly one:
Tool(s) and scope: Maka (Gemini) — implemented the nightly workflow, packaging/manifest scripts,
maka-agentalias package,maka-updatercrate, desktop/CLI/workbench updater integration, and tests.Checklist
Does this PR entail a change in behavior?