-
Notifications
You must be signed in to change notification settings - Fork 29
Switch to secure packages #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughIntroduce a local composite action to download and persist prebuilt cache artifacts; replace per-platform download/copy steps with that action across release workflows; upgrade multiple GitHub Actions checkout usages to v5; change x86_64-linux runner to ubuntu-24.04; remove macOS entries from CI matrices and supportedSystems; update nixpkgs source. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Workflow as Release Workflow
participant LocalAction as ./.github/actions/download-persist
participant GHStore as GitHub Artifact Store
participant FS as Artifacts Directory
Note over Workflow,LocalAction: New single-call flow per platform
Workflow->>LocalAction: invoke(inputs: arch, os)
LocalAction->>GHStore: download "magic-nix-cache-${arch}-${os}"
GHStore-->>LocalAction: artifact archive
LocalAction->>FS: copy magic-nix-cache.closure.xz → artifacts/${arch}-${os}
LocalAction-->>Workflow: completed
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/actions/download-persist.yaml (1)
1-25: Add descriptions to action inputs for better documentation.The action structure follows GitHub Actions best practices, but the input parameters lack description fields. While optional, these would improve clarity for future users of the action.
Apply this diff to add input descriptions:
inputs: arch: + description: 'Architecture of the binary (X64 or ARM64)' type: choice options: - X64 - ARM64 required: true os: + description: 'Operating system of the binary (Linux or macOS)' type: choice options: - Linux - macOS required: true
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.github/actions/download-persist.yaml(1 hunks).github/workflows/release-branches.yml(1 hunks).github/workflows/release-prs.yml(1 hunks).github/workflows/release-tags.yml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Nix and Rust checks
🔇 Additional comments (2)
.github/workflows/release-branches.yml (1)
34-50: ****The review comment is based on an incorrect assumption. The code is currently correct:
- Build matrix produces: X64-Linux, ARM64-Linux, ARM64-macOS
- Release workflows download: exactly these same three artifacts (ARM64 macOS + X64/ARM64 Linux)
- No platform mismatch exists between
build.yamland the release workflowsThe workflows are consistent and will not fail. macOS (aarch64-darwin) remains in the build matrix and produces the ARM64-macOS artifact that the release workflows download.
Likely an incorrect or invalid review comment.
.github/workflows/release-prs.yml (1)
39-55: ****The original review comment's premise is incorrect. macOS is not being removed from the build matrix—
aarch64-darwin(ARM64-macOS) is still present inbuild.yaml. The threedownload-persistcalls inrelease-prs.yml(lines 40-43, 46-49, 52-55) are valid and will succeed.However, there is an unrelated issue:
release-tags.ymlline 56 attempts to rename aX64-macOSartifact that does not exist in the build matrix. OnlyARM64-macOSis built for Darwin platforms.Likely an incorrect or invalid review comment.
|
CI still says there's pending checks for x86_64-darwin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You changed the runner type in build.yaml but not here?
Summary by CodeRabbit
Chores
New Features