-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add script to generate reproducibility index file #860
Conversation
59e5aee
to
aff745a
Compare
Also add a cloud build step to build the Rust oak_loader binary. Unfortunately, the artifacts are not actually reproducibly buildable right now, so we cannot enforce this yet, but I'm checking in the generated file that I get on my machine, which seems to differ between my machine and GCP. When we figure out the source of the discrepancy, then we can enforce that the hashes are actually checked in when changes are made to the source. Ref project-oak#861
aff745a
to
e7db323
Compare
@@ -0,0 +1,10 @@ | |||
61fdf25b4e2b4171a579dd9e4716b24348fb3f9f90ad936f9c91046618c93ed5 ./target/wasm32-unknown-unknown/release/abitest_0_frontend.wasm |
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.
Should it be in a separate artifact
directory?
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.
- we don't have an
artifact
folder (yet) - if we had one, its contents would not be checked in, but this file should still be checked in
so I would leave this here for now, but happy to restructure things more generally at some point
readonly REPRODUCIBLE_ARTIFACTS=( | ||
./target/wasm32-unknown-unknown/release/*.wasm | ||
./bazel-clang-bin/oak/server/loader/oak_runner | ||
./target/debug/oak_loader |
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.
Maybe it's better to use release
than debug
?
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.
AFAICT that's not what is built / used by the other scripts?
Line 50 in 55a93d7
cargo build --package=oak_loader |
We should probably switch that to --release
, at which point we can change this list too.
Also add a cloud build step to build the Rust oak_loader binary.
Unfortunately, the artifacts are not actually reproducibly buildable
right now, so we cannot enforce this yet, but I'm checking in the
generated file that I get on my machine, which seems to differ between
my machine and GCP.
When we figure out the source of the discrepancy, then we can enforce
that the hashes are actually checked in when changes are made to the
source.
Ref #861