-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add --single-snapshot flag to snapshot once after the build #204
Add --single-snapshot flag to snapshot once after the build #204
Conversation
integration/integration_test.go
Outdated
@@ -106,6 +106,12 @@ func TestRun(t *testing.T) { | |||
"Dockerfile_test_multistage": {"file=/foo2"}, | |||
} | |||
|
|||
// Map for additional flags |
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.
In the test somewhere it would be good to make sure there is only one additional layer. Any ideas?
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 added a test to make sure docker built and kaniko built images have the same number of layers (except for specified offsets for the --single-snapshot ones)
But it looks like it found errors in some of the other tests so I'll try and find those bugs as well
--- FAIL: TestLayers (96.89s)
--- FAIL: TestLayers/test_layer_dockerfiles/Dockerfile_test_user_run (1.70s)
integration_test.go:232: Error response from daemon: reference does not exist
--- FAIL: TestLayers/test_layer_dockerfiles/Dockerfile_test_volume (9.76s)
integration_test.go:232: incorrect offset between layers of gcr.io/kaniko-test/docker-dockerfile_test_volume and gcr.io/kaniko-test/kaniko-dockerfile_test_volume: expected 0 but got 2
--- FAIL: TestLayers/test_layer_dockerfiles/Dockerfile_test_workdir (9.78s)
integration_test.go:232: incorrect offset between layers of gcr.io/kaniko-test/docker-dockerfile_test_workdir and gcr.io/kaniko-test/kaniko-dockerfile_test_workdir: expected 0 but got 1
Does this need a rebase to pass? |
So these tests are failing because the number of layers is actually incorrect, but I found a bug for the workdir one which I'm going to submit a PR for now |
b1d2d99
to
77a4848
Compare
Fixes #203