-
Notifications
You must be signed in to change notification settings - Fork 25
chore: update toolchain and fix clippy #708
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,5 @@ | ||||||||||||
| #![allow(clippy::manual_is_multiple_of)] | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this needed because
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, unfortunately solana uses older toolchain to build, but clippy runs with newer one, we have to silence it until solana upgrades the toolchain to 1.87 or higher. |
||||||||||||
|
|
||||||||||||
|
Comment on lines
+1
to
+2
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Document the toolchain constraint with an inline comment. The crate-level allow is justified given Solana's older toolchain constraint (as explained in the discussion). However, add an inline comment explaining why this exists and when it can be removed to help future maintainers. Apply this diff to add documentation: +// TODO: Remove once Solana upgrades to toolchain 1.87+
+// Needed because Solana build uses older toolchain but clippy runs with 1.91.1
#![allow(clippy::manual_is_multiple_of)]📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
| use solana_pubkey::declare_id; | ||||||||||||
| pub mod consts; | ||||||||||||
| pub mod error; | ||||||||||||
|
|
||||||||||||
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.
Inconsistent toolchain versions across CI jobs.
The build job uses 1.91.1 (line 27), but the run_integration_tests job still uses 1.84.1 (line 68). This creates a mismatch: code compiled with one toolchain is tested with another, which can mask toolchain-specific bugs or inconsistencies.
Update line 68 to 1.91.1 to maintain consistency across all CI jobs.
Apply this diff to fix the inconsistency:
- uses: ./magicblock-validator/.github/actions/setup-build-env with: build_cache_key_name: "magicblock-validator-ci-test-integration-${{ github.ref_name }}-${{ hashFiles('magicblock-validator/Cargo.lock') }}" - rust_toolchain_release: "1.84.1" + rust_toolchain_release: "1.91.1" github_access_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}Also applies to: 68-68
🤖 Prompt for AI Agents