-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
tests: frontend/dockerfile: add dockerfile lint tests for WCOW #5221
tests: frontend/dockerfile: add dockerfile lint tests for WCOW #5221
Conversation
558b623
to
e4830ca
Compare
e4830ca
to
2e92e16
Compare
PS. potential merge conflict with #5103 depending on which one lands first. |
2e92e16
to
586c206
Compare
rebased with the latest |
CI failure is unrelated, looks like we need to extend the timeout for the Linux tests too or what new thing could be causing the long waits? @crazy-max |
Can you give the link to this github actions log? Can't find anything related to this for linux tests. |
@crazy-max -- my bad, this was meant for PR #5139 - https://github.com/moby/buildkit/actions/runs/10769264268/job/29860319420?pr=5139 |
586c206
to
7e89de8
Compare
`) | ||
`, | ||
` | ||
FROM nanoserver AS base |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For these Dockerfiles that only differ by the base image define baseImage := integration.UnixOrWindow()
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd thought fmt.Sprintf
will be a little ugly but let me fix that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also + integration.UnixOrWindow() +
if that is cleaner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coz some come in between, might be better to use fmt.Sprintf
. I've made here, and the other instances in the PR. PTAL.
@@ -235,7 +235,7 @@ func init() { | |||
|
|||
images := integration.UnixOrWindows( | |||
[]string{"busybox:latest", "alpine:latest"}, | |||
[]string{"nanoserver:latest", "nanoserver:plus"}) | |||
[]string{"nanoserver:latest", "nanoserver:plus", "nanoserver:plus-busybox"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure these are needed? I don't see busybox:stable
? @daghack
Maybe the test can be rewritten using different tagnames so that we don't need to pull more images just to check the tag string.
5c3c98c
to
c5e8bb3
Compare
A number of integration tests were initially skipped on Windows, waiting for their platform-specific translations. See moby#4485. This commit enables all the dockerfile linter tests that had been skipped before. Some of the tests did not need any platform specific change since the lint warning were being generated before actual image pull. Signed-off-by: Anthony Nandaa <[email protected]>
c5e8bb3
to
aa096eb
Compare
CI failure looks unrelated?
|
A number of integration tests were initially skipped on Windows, waiting for their platform-specific translations. See #4485.
This commit enables all the dockerfile linter tests that had been skipped before. Some of the tests did not need any platform specific change since the lint warning were being generated before actual image pull.