Skip to content
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

Merged
merged 1 commit into from
Apr 19, 2020

Conversation

tiziano88
Copy link
Collaborator

@tiziano88 tiziano88 commented Apr 17, 2020

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

@tiziano88 tiziano88 force-pushed the tzn_repro_index branch 5 times, most recently from 59e5aee to aff745a Compare April 17, 2020 16:46
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
@tiziano88 tiziano88 requested a review from ipetr0v April 17, 2020 16:47
@tiziano88 tiziano88 marked this pull request as ready for review April 17, 2020 16:47
@tiziano88 tiziano88 requested a review from daviddrysdale April 17, 2020 16:52
@@ -0,0 +1,10 @@
61fdf25b4e2b4171a579dd9e4716b24348fb3f9f90ad936f9c91046618c93ed5 ./target/wasm32-unknown-unknown/release/abitest_0_frontend.wasm
Copy link
Contributor

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?

Copy link
Collaborator Author

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
Copy link
Contributor

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 ?

Copy link
Collaborator Author

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?

cargo build --package=oak_loader

We should probably switch that to --release, at which point we can change this list too.

@tiziano88 tiziano88 merged commit 27f7d42 into project-oak:master Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants