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: move frontend integration tests and build to a dedicated workflow #3237

Merged
merged 6 commits into from
Feb 16, 2023

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Oct 29, 2022

Split dockerfile frontend integration tests and build in a dedicated workflow so we have a clear separation of concerns and also avoid building the frontend when a BuildKit tag is pushed and vice versa with a dockerfile tag.

Also create a reusable workflow for our tests and move test-os job to a dedicated workflow.

Signed-off-by: CrazyMax [email protected]

@crazy-max crazy-max force-pushed the ci-split-build-worklfow branch from dcb438a to 0c4bdc6 Compare October 29, 2022 14:27
@crazy-max crazy-max force-pushed the ci-split-build-worklfow branch 2 times, most recently from 5ce2eae to ee7d15a Compare November 25, 2022 15:34
@crazy-max crazy-max requested a review from jedevc November 25, 2022 15:36
@crazy-max crazy-max marked this pull request as ready for review November 25, 2022 15:36
@crazy-max crazy-max mentioned this pull request Nov 25, 2022
@crazy-max crazy-max requested a review from tonistiigi November 25, 2022 16:36
@crazy-max crazy-max force-pushed the ci-split-build-worklfow branch from ee7d15a to 35e595c Compare January 30, 2023 22:05
@crazy-max crazy-max force-pushed the ci-split-build-worklfow branch 7 times, most recently from a6c441c to 1998bad Compare January 31, 2023 10:41
@crazy-max crazy-max force-pushed the ci-split-build-worklfow branch from 1998bad to a867b81 Compare January 31, 2023 10:47
@crazy-max crazy-max force-pushed the ci-split-build-worklfow branch from a867b81 to 295a04b Compare February 14, 2023 04:53
Copy link
Member

@jedevc jedevc left a comment

Choose a reason for hiding this comment

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

I think this seems roughly good to me, though I haven't taken a deep look yet.

I think we might want to rename build.yml though, maybe to buildkitd.yml, since it now just build+tests related to that, since frontend.yml does build+tests related to the dockerfile frontend.

.github/workflows/build.yml Show resolved Hide resolved
@crazy-max crazy-max force-pushed the ci-split-build-worklfow branch 2 times, most recently from c64783a to 3a458ac Compare February 16, 2023 09:47
Split dockerfile frontend integration tests and build in a dedicated
workflow so we have a clear separation of concerns and also avoid building
the frontend when a BuildKit tag is pushed and vice versa with a dockerfile tag.

Signed-off-by: CrazyMax <[email protected]>
@crazy-max crazy-max force-pushed the ci-split-build-worklfow branch from 3a458ac to 97d3b59 Compare February 16, 2023 09:55
run: |
go mod download
-
name: Test
Copy link
Member

Choose a reason for hiding this comment

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

There's a few test jobs that don't use the reusable workflow - like this one. Is there a reason we can't use it in every case?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah unfortunately for test-os we can't pass the os (e.g. windows-2022) as an input to the reusable workflow. That's why I just moved this one in a dedicated wokrflow. I think GitHub is working on a fix for this.

@crazy-max crazy-max requested a review from jedevc February 16, 2023 14:32
@crazy-max crazy-max merged commit 90edc05 into moby:master Feb 16, 2023
@crazy-max crazy-max deleted the ci-split-build-worklfow branch February 16, 2023 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants