You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Roll out nightly signing pin, macOS archive layout, and profile reopen fix - #340
Update .github/nightly-signing-policy.json, .github/workflows/nightly.yml, and .github/workflows/nightly-sign.yml to craft-common-actions revision bf94b15b708089b95c4e2d1c978e66ecf1f2f4f3, and forward the 13 reviewed same-name signing secrets in nightly-sign.yml with corresponding regression tests in packaging/nightly-release-tests.py.
Stage macOS nightly notices under Contents/Resources/docs in packaging/macos/nightly.sh to match the Launcher's admitted layout, and add an end-to-end unsigned bundle layout test in packaging/macos/nightly_sign_tests.py.
Allow reopening nightly profiles after settings (app.ron) and session state (nightly-session.lock, nightly-session.json) are saved by validating ordinary regular files with private_regular_file while keeping directory-boundary checks for PROFILE_FOLDERS (Recovery, cache) in apps/materialcraft/src/profile_root.rs, plus a regression test in apps/materialcraft/src/profile_root.test.rs.
Validation
python3 packaging/nightly-release-tests.py — 29 tests OK
python3 packaging/macos/nightly_sign_tests.py — 17 tests OK
bash -n packaging/macos/nightly.sh — OK
rustfmt --edition 2024 --check --config-path rustfmt.toml apps/materialcraft/src/profile_root.rs apps/materialcraft/src/profile_root.test.rs — OK
git diff --check — OK
Rust builds/tests deferred to GitHub Actions CI.
Summary by CodeRabbit
New Features
Nightly releases now use updated build tooling and include signing for Apple, Azure, and Linux.
Bug Fixes
Nightly profiles can now be reopened with saved settings and session state. Profile folders must be directories, and files within profiles are checked to ensure they remain private and valid.
Improvements
macOS app notices are now grouped in a dedicated documentation folder within the app bundle.
No actionable comments were generated in the recent review.
Walkthrough
The pull request updates profile entry validation, nightly workflow revisions and signing secret forwarding, and macOS notice placement in unsigned bundles.
Changes: Profile Entry Validation
Layer / File(s)
Summary
Profile entry validation and reopening test apps/materialcraft/src/profile_root.rs, apps/materialcraft/src/profile_root.test.rs
Profile validation checks designated folders as directories and validates ordinary files. The test saves and reopens a profile, then checks that designated folders cannot be files.
Nightly Release Signing and Packaging
Layer / File(s)
Summary
Workflow revisions and secret forwarding checks .github/nightly-signing-policy.json, .github/workflows/nightly-sign.yml, .github/workflows/nightly.yml, packaging/nightly-release-tests.py
The nightly workflow references use the updated tooling revision. The signing caller forwards signing secrets. Tests validate signer and unsigned caller secret bindings.
macOS notice bundle layout and archive test packaging/macos/nightly.sh, packaging/macos/nightly_sign_tests.py
The macOS producer places notices under Resources/docs. The archive test checks notice contents, bundle paths, file properties, and unsigned verification.
This change pins the nightly signing tooling to a new revision and forwards the reviewed signing secrets. It moves macOS notices under Resources/docs and lets profile settings and session files be reopened as ordinary files. No concrete defect was found. The remaining checks are CI Rust builds and tests, and Launcher acceptance of the new notice layout.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names three changes: the nightly signing pin, the macOS archive layout, and the profile reopen fix. Each one matches a real part of the changeset. The raw summary shows the signing pin to co…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names three changes: the nightly signing pin, the macOS archive layout, and the profile reopen fix. Each one matches a real part of the changeset. The raw summary shows the signing pin to commit bf94b15 in the nightly workflows and policy, the macOS notices moved to Contents/Resources/docs, and profile_root.rs changes that let app.ron and session files reopen as regular files. The title is long at 12 words, but it stays specific and on topic.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 5cf7505 and 33390ab.
Files selected for processing: 8
.github/nightly-signing-policy.json
.github/workflows/nightly-sign.yml
.github/workflows/nightly.yml
apps/materialcraft/src/profile_root.rs
apps/materialcraft/src/profile_root.test.rs
packaging/macos/nightly.sh
packaging/macos/nightly_sign_tests.py
packaging/nightly-release-tests.py
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
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
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
.github/nightly-signing-policy.json,.github/workflows/nightly.yml, and.github/workflows/nightly-sign.ymltocraft-common-actionsrevisionbf94b15b708089b95c4e2d1c978e66ecf1f2f4f3, and forward the 13 reviewed same-name signing secrets innightly-sign.ymlwith corresponding regression tests inpackaging/nightly-release-tests.py.Contents/Resources/docsinpackaging/macos/nightly.shto match the Launcher's admitted layout, and add an end-to-end unsigned bundle layout test inpackaging/macos/nightly_sign_tests.py.app.ron) and session state (nightly-session.lock,nightly-session.json) are saved by validating ordinary regular files withprivate_regular_filewhile keeping directory-boundary checks forPROFILE_FOLDERS(Recovery,cache) inapps/materialcraft/src/profile_root.rs, plus a regression test inapps/materialcraft/src/profile_root.test.rs.Validation
python3 packaging/nightly-release-tests.py— 29 tests OKpython3 packaging/macos/nightly_sign_tests.py— 17 tests OKbash -n packaging/macos/nightly.sh— OKrustfmt --edition 2024 --check --config-path rustfmt.toml apps/materialcraft/src/profile_root.rs apps/materialcraft/src/profile_root.test.rs— OKgit diff --check— OKSummary by CodeRabbit