Skip to content

Disable arm64 runtime build while runner availability is low. - #17927

Merged
ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:infra-arm64-runtime
Jul 18, 2024
Merged

ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:infra-arm64-runtime

Conversation

@ScottTodd

@ScottTodd ScottTodd commented Jul 16, 2024 •

Copy link
Copy Markdown
Member

We currently only have a single t2a-standard-8 runner for arm64 presubmit jobs. The jobs we have are:

job name when does it run?
build_test_runtime :: arm64 all PRs
build_test_all_arm64 opt-in, always enabled on LLVM integrate PRs

While the runtime job is always fast (~4 minutes), the 'all' (compiler) job takes 15 minutes with a warm cache and 1h30m with a cold cache. Having only a single runner results in presubmit jobs getting starved for up to several times our presubmit target (20-30 minutes).

For now this just disables the runtime job entirely, trusting that changes affecting it will be infrequent. I also explored options for making it opt-in, but support for conditional jobs in matrices within GitHub Actions is a complete mess. We could split this back out into a non-matrix job is we want to go down that path.

@ScottTodd ScottTodd added infrastructure Relating to build systems, CI, or testing platform/linux 🐧 Linux-specific build, execution, benchmarking, and deployment labels Jul 16, 2024
@ScottTodd
ScottTodd requested a review from benvanik July 16, 2024 21:11
Comment thread .github/workflows/ci.yml
- arm64
- os-family=Linux
container: gcr.io/iree-oss/base-arm64@sha256:9daa1cdbbf12da8527319ece76a64d06219e04ecb99a4cff6e6364235ddf6c59
# Disabled while we are short on arm64 runners. Could also make this opt-in, but the matrix complicates that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also explored options for making it opt-in, but support for conditional jobs in matrices within GitHub Actions is a complete mess.

See ScottTodd#15

Reusable workflow names are verbose (while also including less information, somehow) and complicate the UI:

image
image

Overriding the workflow names results in broken names for skipped jobs (seeing the job names is kind of the point...):

image

That's not even getting into how we'd have configure_ci.py enumerate the jobs and decide on a filtering mechanism with git trailers.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh, maybe I can drop the matrix there, since the reusable workflow does basically the same thing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works but is still too complicated in the UI:
image

alternative is I guess to just fully undo the matrix changes to build_test_runtime: #17509 (or at least move the arm64 runtime build out of it)

@ScottTodd
ScottTodd merged commit 33e5430 into iree-org:main Jul 18, 2024
@ScottTodd
ScottTodd deleted the infra-arm64-runtime branch July 18, 2024 17:34
LLITCHEV pushed a commit to LLITCHEV/iree that referenced this pull request Jul 30, 2024
…rg#17927)

We currently only have a single `t2a-standard-8` runner for arm64
presubmit jobs. The jobs we have are:

job name | when does it run?
-- | --
`build_test_runtime :: arm64` | all PRs
`build_test_all_arm64` | opt-in, always enabled on LLVM integrate PRs

While the runtime job is always fast (~4 minutes), the 'all' (compiler)
job takes 15 minutes with a warm cache and 1h30m with a cold cache.
Having only a single runner results in presubmit jobs getting starved
for up to several times our presubmit target (20-30 minutes).

For now this just disables the runtime job entirely, trusting that
changes affecting it will be infrequent. I also explored options for
making it opt-in, but support for conditional jobs in matrices within
GitHub Actions is a complete mess. We could split this back out into a
non-matrix job is we want to go down that path.

Signed-off-by: Lubo Litchev <[email protected]>
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 platform/linux 🐧 Linux-specific build, execution, benchmarking, and deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants