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
Below is a summary of compliance checks for this PR:
Security Compliance
⚪
CI supply-chain drift
Description: Using floating runner/toolchain selections (runs-on: macos-latest and rustup update) makes CI builds non-reproducible and can unexpectedly pick up new images/toolchains that introduce compromised dependencies or altered build outputs (supply-chain hardening typically prefers pinning to a specific runner image and Rust toolchain version). ci-rust.yml [169-216]
Explicitly set the SDKROOT environment variable before the build step to ensure the linker can find the correct SDK when cross-compiling from ARM to x86_64 on macOS.
Why: This suggestion correctly identifies a potential cross-compilation issue on ARM-based macos-latest runners and provides a robust solution by explicitly setting SDKROOT, which is critical for preventing build failures.
High
General
Cache cargo dependencies
Add caching steps for the Cargo registry and Git index after checkout to speed up subsequent builds by reusing downloaded dependencies.
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 7
__
Why: This suggestion introduces caching for Cargo dependencies, which is a standard and effective optimization for Rust CI workflows that can significantly reduce build times.
Medium
Enforce locked builds
Add the --locked flag to all cargo build commands to ensure that builds are reproducible by respecting the Cargo.lock file.
Why: This suggestion improves build reproducibility by adding the --locked flag, ensuring that the exact dependencies from Cargo.lock are used, which is a best practice for CI environments.
Medium
Use official Rust setup action
Replace the manual rustup commands with the official actions/setup-rust GitHub Action to simplify toolchain and target management.
Why: This is a good practice suggestion that improves the workflow's maintainability and readability by using the official actions/setup-rust action instead of manual rustup commands.
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.
User description
🔗 Related Issues
The macOS-13 based runner images are now retired. As a result, the rust workflow is not working, e.g.:
https://github.com/SeleniumHQ/selenium/actions/runs/20556482131
💥 What does this PR do?
This PR changes
macos-13bymacos-latestin the Rust workflow.🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix
Description
Update macOS runner from retired macos-13 to macos-latest
Add x86_64-apple-darwin target to Rust toolchain setup
Fix CI workflow failures due to deprecated runner image
Diagram Walkthrough
File Walkthrough
ci-rust.yml
Update macOS runner and add x86_64 Rust target.github/workflows/ci-rust.yml
macos-13runner withmacos-latestin two jobs(macos-stable and macos-debug)
rustup target add x86_64-apple-darwincommand to Rust toolchainsetup in both jobs
both Intel and Apple Silicon architectures