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

ci: refactor using a single steps workflow #4545

Merged
merged 2 commits into from
Dec 21, 2024

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Nov 30, 2024

The logic for the GHA steps was repeated across multiple workflows and platforms. Consolidate it all into a common "ci-steps" workflow, and have all the other workflows reference that when possible. This should hopefully make maintenance of the CI scripts easier in the future, with less redundancy of the step logic.

The only major place where we deviate is that we have a separeately specified set of steps for the "old" VFX Platform 2021 and 2022 based tests (because we need to specify different container arguments to it).

@lgritz
Copy link
Collaborator Author

lgritz commented Dec 6, 2024

Any opinions on this?

Again what's happening here is that we're merging all the (mostly redundant) step lists of the various workflows into a single step list, then referencing it from the other places. Flags are used to skip the steps for workflows where they are not needed (for example, the "build docs" workflow skips actually building or testing the code). Mostly, it's just eliminating redundancy and the possibility of the different workflows diverging and doing different things even for steps that we intend to be the same across all of them workflows.

The logic for the GHA steps was repeated across multiple workflows and
platforms. Consolidate it all into a common "build-steps" workflow,
and have all the other workflows reference that when possible. This
should hopefully make maintenance of the CI scripts easier in the
future, with less redundancy of the step logic.

The only major place where we deviate is that we have a separeately
specified set of steps for the "old" VFX Platform 2021 and 2022 based
tests (because we need to specify different container arguments to
it).

Signed-off-by: Larry Gritz <[email protected]>
@lgritz
Copy link
Collaborator Author

lgritz commented Dec 19, 2024

This has been sitting around for a while without any comment. I will merge it by the end of the week if there are no objections.

@lgritz lgritz merged commit 8839acc into AcademySoftwareFoundation:main Dec 21, 2024
30 checks passed
@lgritz lgritz deleted the lg-cisteps branch December 23, 2024 06:27
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Dec 23, 2024
…#4545)

The logic for the GHA steps was repeated across multiple workflows and
platforms. Consolidate it all into a common "ci-steps" workflow, and
have all the other workflows reference that when possible. This should
hopefully make maintenance of the CI scripts easier in the future, with
less redundancy of the step logic.

The only major place where we deviate is that we have a separeately
specified set of steps for the "old" VFX Platform 2021 and 2022 based
tests (because we need to specify different container arguments to it).

---------

Signed-off-by: Larry Gritz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant