-
Notifications
You must be signed in to change notification settings - Fork 617
CI: add Rust SDK checks #3512
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?
CI: add Rust SDK checks #3512
Conversation
261eea4 to
d82a50a
Compare
3f239f0 to
c62d5ea
Compare
|
LGTM from my side but since this is a new Action, would ask Primiano also to comment on this just to double check I haven't missed anything from the security perspective. |
Will do. No rush do merge this. But I uploaded #3513 in case you want to get a release out and have crates published before. As I've unfortunately not been able to claim the names without the |
c62d5ea to
552be7d
Compare
|
Not particularly in a rush to get the release out. I think we can wait a few more days. Honestly renaming the crates sounds like a good idea anyway though given the situation. I'll LGTM that but let's wait a few more days to hear back. |
primiano
left a 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.
Security-wise it seems alright
My only question is: how long does this take? Would it be possible / worth using caching for the installation of the toolchain like we do for our other prebuilts?
A bit lukewarm on the nightly format-check. That bot is doomed to become red and get ignored. Maybe it's better if for now this is only done locally.
You could (ask AI to) update our tools/format-sources, and create a tools/code_format_rust.py which runs only if the toolchain is installed.
Also separately we should probably have a --rust option to tools/install-build-deps which installs the relevant binaries to build rust (can do in a separate PR)
552be7d to
8c2d59b
Compare
I don't know about installation of the toolchain but building and running it only takes a couple of minutes locally. I'll look at caching things once I know how long it takes in CI. Having trouble just testing it right now. Do I need the change to be approved before it runs more CI jobs?
It uses a pinned version of nightly to ensure that the correct format doesn't change over time. I added some comments about this but can also remove the test for now if you prefer that?
Yes, didn't know if you'd be OK with that but I think it would be a good idea to have install-build-deps be able to pull down the specific rust toolchains needed to build and test the rust SDK. Updating format-sources makes sense too. I'll work on both of these tasks as follow up changes. |
|
hm, looks like I'm getting this error: https://github.com/google/perfetto/actions/runs/19079295703 |
Hmm
|
0106453 to
13a858e
Compare
13a858e to
898da1d
Compare
898da1d to
12219cd
Compare
|
I kicked off a rerun of the jobs to see if it works. Out of curiosity did you try adding contents:read to both analyze.yml and the rust workflow? |
|
|
12219cd to
a1259c4
Compare
Only FYI and don't prevent CI from being green. Fixes: #3497
a1259c4 to
35a1548
Compare
Only FYI and don't prevent CI from being green.
Fixes: #3497