Uh oh!
There was an error while loading. Please reload this page.
Migrate x86_64-fortanix-unknown-sgx-lvirun-make test to rmake - #129055
Conversation
rustbot
commented
Aug 13, 2024
rustbot
commented
Aug 13, 2024
This PR modifies cc @jieyouxu |
I'm going to be real with you, I have absolutely no clue about sgx. So I'm going to request help from our sgx target maintainers after I take a look and try to guess what the test is trying to test. |
Uh oh!
There was an error while loading. Please reload this page.
workingjubilee
commented
Aug 15, 2024
This is about verifying that LLVM cross-compiles SGX code with load value injection defenses. It should be possible to make it work after building the cross-compile target. |
workingjubilee
commented
Aug 15, 2024
This target is tier 2 so we should be building the cross-compilation artifacts every time anyways. |
1f9cc33 to
dc650f6Compareworkingjubilee
commented
Aug 15, 2024
So: per policy, tests don't have to pass on SGX, a tier 2 target, in order to merge this. As this is an SGX-only test, we can just merge this through. I do know, however, that the SGX maintainers do in fact run the CI regularly and add ignore-sgx, etc. and are reasonably responsive, usually. @jethrogb@raoulstrackx@mzohreva Can we get your review? |
raoulstrackx
commented
Aug 16, 2024
Thanks for tagging @workingjubilee ! I have a day off today, but I'll try to look at it on Monday. |
jieyouxu
left a comment
There was a problem hiding this comment.
Thanks for the port, I have several questions (that we will need help from the sgx maintainers).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@raoulstrackx Thank you very much for helping out! ❤️ |
dc650f6 to
aa15961Comparerustbot
commented
Aug 16, 2024
The run-make-support library was changed cc @jieyouxu |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
aa15961 to
df2ec7dCompare
raoulstrackx
left a comment
There was a problem hiding this comment.
At the moment this PR breaks CI. See comments. Can you please check it? You shouldn't have to have an SGX machine as the enclaves don't need to be executed.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
9e0ff38 to
ffdde64CompareUh oh!
There was an error while loading. Please reload this page.
ffdde64 to
b5a6a38Compareraoulstrackx
commented
Aug 21, 2024
There are other issues as well. Please apply: |
b5a6a38 to
6a9e9fcCompare
Oh dear, I should have watched where my editor's multiple cursors were going. Thank you so much once again! Changes applied. |
raoulstrackx
left a comment
There was a problem hiding this comment.
Now the tests all pass. :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
6a9e9fc to
e276d22Compare
I deleted both Thank you so much for all your help!! This would have been much harder without a fortanix-rust maintainer. |
jieyouxu
commented
Aug 22, 2024
@raoulstrackx thank you so much for helping to review and test 💚 |
jieyouxu
commented
Aug 22, 2024
They're still in the change history, and now the rmake.rs version reimplements them, so we shouldn't keep them. |
jieyouxu
left a comment
There was a problem hiding this comment.
Thanks, this LGTM as well. Feel free to r=me after PR CI is green.
Uh oh!
There was an error while loading. Please reload this page.
jieyouxu
commented
Aug 22, 2024
@bors delegate+ |
bors
commented
Aug 22, 2024
✌️ @Oneirical, you can now approve this pull request! If @jieyouxu told you to " |
Oneirical
commented
Aug 22, 2024
bors
commented
Aug 22, 2024
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#127623 (fix: fs::remove_dir_all: treat internal ENOENT as success) - rust-lang#128876 (Ship MinGW-w64 runtime DLLs along with `rust-lld.exe` for `-pc-windows-gnu` targets) - rust-lang#129055 (Migrate `x86_64-fortanix-unknown-sgx-lvi` `run-make` test to rmake) - rust-lang#129386 (Use a LocalDefId in ResolvedArg.) - rust-lang#129400 (Update `compiler_builtins` to `0.1.120`) - rust-lang#129414 (Fix extern crates not being hidden with `doc(hidden)`) - rust-lang#129417 (Don't trigger refinement lint if predicates reference errors) - rust-lang#129433 (Fix a missing import in a doc in run-make-support) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#127623 (fix: fs::remove_dir_all: treat internal ENOENT as success) - rust-lang#128876 (Ship MinGW-w64 runtime DLLs along with `rust-lld.exe` for `-pc-windows-gnu` targets) - rust-lang#129055 (Migrate `x86_64-fortanix-unknown-sgx-lvi` `run-make` test to rmake) - rust-lang#129386 (Use a LocalDefId in ResolvedArg.) - rust-lang#129400 (Update `compiler_builtins` to `0.1.120`) - rust-lang#129414 (Fix extern crates not being hidden with `doc(hidden)`) - rust-lang#129417 (Don't trigger refinement lint if predicates reference errors) - rust-lang#129433 (Fix a missing import in a doc in run-make-support) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#129055 - Oneirical:fortanix-fortification, r=jieyouxu Migrate `x86_64-fortanix-unknown-sgx-lvi` `run-make` test to rmake Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). The final Makefile! Every Makefile test is now claimed. This is difficult to test due to the uncommon architecture it is specific to. I don't think it is in the CI (I didn't find it in `jobs.yml`, but if there is a way to test it, please do. Locally, on Linux, it compiles and panics at the `llvm_filecheck` part (if I replace the `x86_64-fortanix-unknown-sgx` with `x86_64-unknown-linux-gnu`, of course), which is expected. For this reason, the Makefile and associated script have been kept, but with a leading underscore.
Part of #121876 and the associated Google Summer of Code project.
The final Makefile! Every Makefile test is now claimed.
This is difficult to test due to the uncommon architecture it is specific to. I don't think it is in the CI (I didn't find it in
jobs.yml, but if there is a way to test it, please do.Locally, on Linux, it compiles and panics at the
llvm_filecheckpart (if I replace thex86_64-fortanix-unknown-sgxwithx86_64-unknown-linux-gnu, of course), which is expected.For this reason, the Makefile and associated script have been kept, but with a leading underscore.