Skip to content

ci(validate): split lint#2439

Merged
tonistiigi merged 1 commit into
docker:masterfrom
crazy-max:ci-split-validate
May 1, 2024
Merged

ci(validate): split lint#2439
tonistiigi merged 1 commit into
docker:masterfrom
crazy-max:ci-split-validate

Conversation

@crazy-max
Copy link
Copy Markdown
Member

@crazy-max crazy-max commented Apr 30, 2024

follow-up moby/buildkit#4829 (comment)

This generates a matrix for each platform for lint and lint-gopls targets. I think I will port the logic in "Matrix" step to a subaction similar to https://github.com/docker/bake-action?tab=readme-ov-file#list-targets.

Reduces build time for the whole pipeline from ~30m:

image

To ~6m30:

image

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
Copy link
Copy Markdown
Member Author

@tonistiigi

Needs to remove "validate (lint)" from required checks in branches protection settings for the repo:

image

Copy link
Copy Markdown
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

Was also thinking that maybe it would make sense to run the lint target(s) for native arch first and then others in parallel only if first one passed. If linting already wrong for common files then not much point of even running the custom arch variants.

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