Skip to content

Merge build_test_runtime jobs into a single matrix. - #17509

Merged
ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:infra-matrix-runtime
May 30, 2024
Merged

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

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

This folds the three 'build_test_runtime' jobs (Linux x86, Linux arm64, Windows) into a single matrix with most steps shared. I'm similarly planning on merging more jobs using matrices: #17136.

This does limit how "CI behavior manipulation" (https://iree.dev/developers/general/contributing/#ci-behavior-manipulation) works - for example now setting ci-exactly: build_test_runtime will run these 3 jobs, and they cannot be run individually.

@ScottTodd ScottTodd added the infrastructure Relating to build systems, CI, or testing label May 28, 2024
@ScottTodd
ScottTodd force-pushed the infra-matrix-runtime branch from e5185e5 to 69143cb Compare May 28, 2024 22:52
@ScottTodd
ScottTodd marked this pull request as ready for review May 28, 2024 23:07
@ScottTodd
ScottTodd requested a review from saienduri May 28, 2024 23:07
ScottTodd added a commit that referenced this pull request May 29, 2024
Progress on #17136. Similar to
#17509, this folds the five
`regression_test_` jobs in pkgci.yml into two matrices, `test_onnx` and
`test_models`, with most steps shared.

The "model" tests are still verbose to configure here as we have
multiple variants on some backends. Depending on how much we want to
unify or diverge we could continue to refactor further.

ci-exactly: build_packages,regression_test
Comment thread .github/workflows/ci.yml
# Jobs that build IREE in some non-default configuration
##############################################################################

build_test_runtime:

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'm considering shortening this to just "runtime" so less text gets cut off:
image

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah that would be fine. I wonder why github repeats the matrix name inside the matrix when we can already see the header

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'm on the fence about the naming, at least while there are so many other jobs not in matrices. Some jobs only build, and some jobs run tests using packages (so they aren't "building" the compiler portion of the project), so spelling out "build_test" here does help.

Might just continue to update the names as I refactor the rest of the workflow files.

@saienduri saienduri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@saienduri

Copy link
Copy Markdown
Collaborator

Do we plan on upgrading the ubuntu and windows being tested?

@ScottTodd

Copy link
Copy Markdown
Member Author

Do we plan on upgrading the ubuntu and windows being tested?

We don't have any particular preference / policy on min/max versions to test and when to change that. Ideally we'd just test on all configurations (Sorta like https://github.com/iree-org/iree-template-runtime-cmake/blob/main/.github/workflows/build-and-test.yml across OS versions and compilers). Moving the existing jobs into a matrix is setup for those sorts of changes.

@ScottTodd
ScottTodd merged commit 4fddac0 into iree-org:main May 30, 2024
@ScottTodd
ScottTodd deleted the infra-matrix-runtime branch May 30, 2024 00:30
gglangg pushed a commit to gglangg/iree that referenced this pull request Jun 4, 2024
Progress on iree-org#17136. Similar to
iree-org#17509, this folds the five
`regression_test_` jobs in pkgci.yml into two matrices, `test_onnx` and
`test_models`, with most steps shared.

The "model" tests are still verbose to configure here as we have
multiple variants on some backends. Depending on how much we want to
unify or diverge we could continue to refactor further.

ci-exactly: build_packages,regression_test
gglangg pushed a commit to gglangg/iree that referenced this pull request Jun 4, 2024
This folds the three 'build_test_runtime' jobs (Linux x86, Linux arm64,
Windows) into a single matrix with most steps shared. I'm similarly
planning on merging more jobs using matrices:
iree-org#17136.

This does limit how "CI behavior manipulation"
(https://iree.dev/developers/general/contributing/#ci-behavior-manipulation)
works - for example now setting `ci-exactly: build_test_runtime` will
run these 3 jobs, and they cannot be run individually.

* A solution like
https://stackoverflow.com/questions/65384420/how-do-i-make-a-github-action-matrix-element-conditional
would be needed to keep the old behavior. We actually have a version of
that already in the `generate_matrix` step of
https://github.com/iree-org/iree/blob/main/.github/workflows/benchmark_execution.yml
(sample logs:
https://github.com/iree-org/iree/actions/runs/9214012269/job/25350287269),
but I have mixed feelings about the complexity involved there.
gglangg pushed a commit to gglangg/iree that referenced this pull request Jun 4, 2024
Progress on iree-org#17136. Similar to
iree-org#17509, this folds the five
`regression_test_` jobs in pkgci.yml into two matrices, `test_onnx` and
`test_models`, with most steps shared.

The "model" tests are still verbose to configure here as we have
multiple variants on some backends. Depending on how much we want to
unify or diverge we could continue to refactor further.

ci-exactly: build_packages,regression_test
gglangg pushed a commit to gglangg/iree that referenced this pull request Jun 4, 2024
This folds the three 'build_test_runtime' jobs (Linux x86, Linux arm64,
Windows) into a single matrix with most steps shared. I'm similarly
planning on merging more jobs using matrices:
iree-org#17136.

This does limit how "CI behavior manipulation"
(https://iree.dev/developers/general/contributing/#ci-behavior-manipulation)
works - for example now setting `ci-exactly: build_test_runtime` will
run these 3 jobs, and they cannot be run individually.

* A solution like
https://stackoverflow.com/questions/65384420/how-do-i-make-a-github-action-matrix-element-conditional
would be needed to keep the old behavior. We actually have a version of
that already in the `generate_matrix` step of
https://github.com/iree-org/iree/blob/main/.github/workflows/benchmark_execution.yml
(sample logs:
https://github.com/iree-org/iree/actions/runs/9214012269/job/25350287269),
but I have mixed feelings about the complexity involved there.
bangtianliu pushed a commit to bangtianliu/iree that referenced this pull request Jun 5, 2024
Progress on iree-org#17136. Similar to
iree-org#17509, this folds the five
`regression_test_` jobs in pkgci.yml into two matrices, `test_onnx` and
`test_models`, with most steps shared.

The "model" tests are still verbose to configure here as we have
multiple variants on some backends. Depending on how much we want to
unify or diverge we could continue to refactor further.

ci-exactly: build_packages,regression_test
bangtianliu pushed a commit to bangtianliu/iree that referenced this pull request Jun 5, 2024
This folds the three 'build_test_runtime' jobs (Linux x86, Linux arm64,
Windows) into a single matrix with most steps shared. I'm similarly
planning on merging more jobs using matrices:
iree-org#17136.

This does limit how "CI behavior manipulation"
(https://iree.dev/developers/general/contributing/#ci-behavior-manipulation)
works - for example now setting `ci-exactly: build_test_runtime` will
run these 3 jobs, and they cannot be run individually.

* A solution like
https://stackoverflow.com/questions/65384420/how-do-i-make-a-github-action-matrix-element-conditional
would be needed to keep the old behavior. We actually have a version of
that already in the `generate_matrix` step of
https://github.com/iree-org/iree/blob/main/.github/workflows/benchmark_execution.yml
(sample logs:
https://github.com/iree-org/iree/actions/runs/9214012269/job/25350287269),
but I have mixed feelings about the complexity involved there.
LLITCHEV pushed a commit to LLITCHEV/iree that referenced this pull request Jul 30, 2024
Progress on iree-org#17136. Similar to
iree-org#17509, this folds the five
`regression_test_` jobs in pkgci.yml into two matrices, `test_onnx` and
`test_models`, with most steps shared.

The "model" tests are still verbose to configure here as we have
multiple variants on some backends. Depending on how much we want to
unify or diverge we could continue to refactor further.

ci-exactly: build_packages,regression_test
Signed-off-by: Lubo Litchev <[email protected]>
LLITCHEV pushed a commit to LLITCHEV/iree that referenced this pull request Jul 30, 2024
This folds the three 'build_test_runtime' jobs (Linux x86, Linux arm64,
Windows) into a single matrix with most steps shared. I'm similarly
planning on merging more jobs using matrices:
iree-org#17136.

This does limit how "CI behavior manipulation"
(https://iree.dev/developers/general/contributing/#ci-behavior-manipulation)
works - for example now setting `ci-exactly: build_test_runtime` will
run these 3 jobs, and they cannot be run individually.

* A solution like
https://stackoverflow.com/questions/65384420/how-do-i-make-a-github-action-matrix-element-conditional
would be needed to keep the old behavior. We actually have a version of
that already in the `generate_matrix` step of
https://github.com/iree-org/iree/blob/main/.github/workflows/benchmark_execution.yml
(sample logs:
https://github.com/iree-org/iree/actions/runs/9214012269/job/25350287269),
but I have mixed feelings about the complexity involved there.

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

cleanup 🧹 infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants