Skip to content

Add multi-stage full build and test - #9877

Merged
GMNGeoffrey merged 26 commits into
iree-org:mainfrom
GMNGeoffrey:ci-refactor
Jul 26, 2022
Merged

GMNGeoffrey merged 26 commits into
iree-org:mainfrom
GMNGeoffrey:ci-refactor

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented Jul 22, 2022 •

Copy link
Copy Markdown
Member

This creates jobs to build all of IREE on one machine and then test on
another, passing the build directory around. This same build directory
can be used in other jobs also (e.g. for GPU testing, which I'm punting
on for now).

I ran into issues using the GitHub action artifacts for this. I knew
we'd get suboptimal transfer speeds since it's hosted on Azure and
we'd probably want another solution eventually, but they were much
worse than I expected. So this uses a GCS bucket for the transfer
instead.

We don't want presubmit jobs to be able to affect builds from other
commits, so that's a bit tricky. To get around this, I have separate
buckets for presubmit and postsubmit. The runners only have "create"
and "read" permissions, not "delete" permissions, which means they
cannot remove or overwrite existing artifacts. They upload to a file
including the commit name in its path. If a file is already there, the
upload (and therefore the job) would fail. I think this avoids the
possibility of one build affecting another, even if someone were trying
to do so intentionally. If we move to avoiding rerunning a job if the
artifact for it already exists, we'll need to revisit this.

Part of #9881

@GMNGeoffrey GMNGeoffrey changed the title ci refactor Add full build, full test, and GPU test Jul 22, 2022
@GMNGeoffrey
GMNGeoffrey marked this pull request as ready for review July 26, 2022 05:02
@GMNGeoffrey

Copy link
Copy Markdown
Member Author

Hmm, maybe we'll do GPU in a follow-up...

@GMNGeoffrey GMNGeoffrey changed the title Add full build, full test, and GPU test Add multi-stage full build and test Jul 26, 2022
Comment thread .github/workflows/ci.yml Resolved
Comment thread build_tools/cmake/build_all.sh Resolved
@GMNGeoffrey
GMNGeoffrey enabled auto-merge (squash) July 26, 2022 20:45
@GMNGeoffrey
GMNGeoffrey disabled auto-merge July 26, 2022 21:00
@GMNGeoffrey
GMNGeoffrey enabled auto-merge (squash) July 26, 2022 21:01
@GMNGeoffrey
GMNGeoffrey merged commit b6ddd1c into iree-org:main Jul 26, 2022
@GMNGeoffrey
GMNGeoffrey deleted the ci-refactor branch July 26, 2022 21:10
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label Jul 28, 2022
@GMNGeoffrey

Copy link
Copy Markdown
Member Author

Forgot to tag originally, but part of #9855

@GMNGeoffrey GMNGeoffrey mentioned this pull request Aug 1, 2022
42 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants