-
Notifications
You must be signed in to change notification settings - Fork 107
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
Fixes analyzer acceptance tests for Windows #541
Fixes analyzer acceptance tests for Windows #541
Conversation
63b4a99
to
922b711
Compare
922b711
to
1f04205
Compare
225d965
to
3961d4b
Compare
acceptance/analyzer_test.go
Outdated
"--build-arg", "metadata="+metadata, | ||
) | ||
|
||
noAuthRegCacheImage = noAuthRegistry.RepoName(cacheImageName) |
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 found myself scratching my head wondering "when do we push this image" but now I understand (I think) this works because we're using the shared storage volume. I feel like we might want to document this in a comment somewhere...
@micahyoung it's awesome to see this! I added a couple nits / comments on clarity but overall this is looking great! |
3961d4b
to
3c7077a
Compare
Signed-off-by: Micah Young <ymicah@vmware.com>
- Fixes cache images create with wrong format - imgutil WithPlatform initializes OS-specific images - Windows sim base layers are generated by imgutil instead of lifecycle Signed-off-by: Micah Young <ymicah@vmware.com>
Co-authored-by: Natalie Arellano <narellano@vmware.com> Signed-off-by: Micah Young <ymicah@vmware.com>
- Use dual registries with shared data volume to test no-auth registries Signed-off-by: Micah Young <ymicah@vmware.com>
- Generated layers are handled by imgutil Signed-off-by: Micah Young <ymicah@vmware.com>
Signed-off-by: Micah Young <ymicah@vmware.com>
* Changes test helper signature to group related args * Adds GHA step to add insecure-registries entry * Test helpers will use the field to determine registry host * Changes to use imgutil for authorized/readonly registries Signed-off-by: Micah Young <ymicah@vmware.com>
Signed-off-by: Micah Young <ymicah@vmware.com>
3c7077a
to
6bd40a9
Compare
Signed-off-by: Micah Young <ymicah@vmware.com>
c90c25e
to
f8d9838
Compare
117ad0e
to
f8d9838
Compare
Looks like this Docker engine issue was biting us (usage here). I'll have to check again but I'm hoping runner's docker CLI got bumped (or will shortly) and this should get back to green. |
298484b
to
eca480b
Compare
Signed-off-by: Micah Young <ymicah@vmware.com>
Signed-off-by: Micah Young <ymicah@vmware.com>
eca480b
to
1e588b8
Compare
Signed-off-by: Micah Young <ymicah@vmware.com>
8f8c180
to
e033d1c
Compare
Signed-off-by: Micah Young <ymicah@vmware.com> Co-authored-by: Natalie Arellano <narellano@vmware.com>
func SeedDockerVolume(t *testing.T, srcPath string) string { | ||
volumeName := "test-volume-" + RandString(10) | ||
containerName := "test-volume-helper-" + RandString(10) | ||
volumeHelperImage := "alpine" |
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.
Since this helper can only be used on Linux, I made the image name local. Eventually, when Windows implements this functionality, this function will also be ported.
Signed-off-by: Micah Young <ymicah@vmware.com>
Signed-off-by: Micah Young <ymicah@vmware.com>
7c794c4
to
b5c226c
Compare
- Unknown integrity of docker-cli-builder binary: StefanScherer/docker-cli-builder#13 Signed-off-by: Micah Young <ymicah@vmware.com>
- Already present on runner Signed-off-by: Micah Young <ymicah@vmware.com>
b5c226c
to
3f09d11
Compare
bbc5b45
to
072b3d5
Compare
This helper simplifies running tests against remote Windows daemon from a Unix workstation - Updates docker cli to 20.10.5 - Adds richgo, docker build compression Signed-off-by: Micah Young <ymicah@vmware.com>
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.
This is awesome! Thank you @micahyoung :)
This enables almost all the analyzer acceptance tests for Windows. This does not yet fix other acceptance tests for Windows, as this is intended to introduce the patterns those tests follow in later commits.
In general, uses tests helpers and variables for OS differences. Existing helpers workaround the following limitations on windows: