-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
ci: add macos clippy test #34272
ci: add macos clippy test #34272
Conversation
0aaa7ca
to
41f303c
Compare
thanks! looking pretty good. is this a problem? also i think @CriesofCarrots mentioned that there's a bench that still fails macos clippy, but i don't see it raised here. not sure if it's been fixed or we aren't running against benches? |
where did you get this one 🤔 this is mine from here
weird. I don't see any complains from this pipeline. let's wait for her insight! |
weird. looks fine on this run. not sure how to dig through historical ones, but it showed an error when i first reviewd |
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.
That bench that fails clippy on my machine is doing so because it calls jit_compile()
, which is only available for x86_64. I'm on silicon and do not have rosetta installed, whereas the CI runner is intel.
I think we can move forward with this PR for now, but it might be nice to add an arm64 runner in the future.
Meanwhile, I'll PR tagging that bench as x86_64-only. (edit) #34282
bd5ec46
to
57f3530
Compare
@CriesofCarrots sorry for the force push. I didn't notice you already have a PR for tagging the bench test. just removed mine. |
Hey @yihau , the macos clippy job didn't run on this PR to v1.16, and hence automerge did not work. |
yeah! we should have it for v1.16 and v1.17! thank you for brining this up! |
Backports to the stable branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. |
Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis. |
* ci: add clippy test for macos and windows * ci: remove windows from clippy test * ci: cancel cargo clippy on Github Actions when new commits comming * ci: set -e for .github/scripts/cargo-clippy-before-script.sh (cherry picked from commit 4832b4e)
* ci: add clippy test for macos and windows * ci: remove windows from clippy test * ci: cancel cargo clippy on Github Actions when new commits comming * ci: set -e for .github/scripts/cargo-clippy-before-script.sh (cherry picked from commit 4832b4e)
* ci: add macos clippy test (#34272) * ci: add clippy test for macos and windows * ci: remove windows from clippy test * ci: cancel cargo clippy on Github Actions when new commits comming * ci: set -e for .github/scripts/cargo-clippy-before-script.sh (cherry picked from commit 4832b4e) * scripts/cargo-clippy.sh: Extract our non-trivial cargo clippy command (manual backport of #33982) --------- Co-authored-by: Yihau Chen <a122092487@gmail.com> Co-authored-by: yihau <yihau.chen@icloud.com>
* ci: add macos clippy test (#34272) * ci: add clippy test for macos and windows * ci: remove windows from clippy test * ci: cancel cargo clippy on Github Actions when new commits comming * ci: set -e for .github/scripts/cargo-clippy-before-script.sh (cherry picked from commit 4832b4e) * scripts/cargo-clippy.sh: Extract our non-trivial cargo clippy command (manual backport of #33982) --------- Co-authored-by: Yihau Chen <a122092487@gmail.com> Co-authored-by: yihau <yihau.chen@icloud.com>
Problem
we may accidentally merge some code that can break the macOS/Windows build
Summary of Changes
run clippy for macos.
(I would like to have Windows as well but it takes me too much time to fix 😢 so let's ship macos first)