At the moment, we have a choice between systems with sufficient memory to build
LLVM and those that have the FPU needed to run the test-suite in a reasonable
amount of time. This patch uses the GCS bucket to transfer the just-built clang
to a machine more suited to running the test-suite.
Details
- Reviewers
- None
Diff Detail
Event Timeline
You could just use curl/urllib/requests to download the file into the build. No need to have gsutil as a dependency where it is not needed. In fact, the code to do this is already in zorg in the llvmlab tool.
I mainly used gsutil for symmetry but it was also more convenient since it allowed me to re-use the gsutil:// URL by sending it to the triggered builder in a property. I don't mind changing it to use construct an HTTP GET request (or adding a dependency on llvmlab and having that do it) if that's what we prefer. The change will require additional SetProperty steps and an extra forwarded property to forward the information needed to build the request but that's not difficult.
Would you like me to switch this over?
Which ever you think is best. I used an HTTP get for my jobs to avoid the dependency, but either way is fine. I was able to use requests, so it was super simple to do it. I think for a few jobs, it won’t matter either way.
Ok, I think I'd prefer to stick to gsutil for now and change it later if others start to use this code but don't like the dependency.
Is it ok to commit it?
It seems that this patch fell through the cracks so: Refresh and ping.
Looking back at the comments, I had a LGTM from @cmatthews that was conditonal
on @gkistanova also approving it.