-
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
Added --chmod for ADD and COPY commands. Fixes #2850 and #1751 #3119
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
@aaron-prindle can you please review? |
@mschneider82 thanks for the PR here! The PR itself LGTM, currently there is some test failures but I believe they are flakes and unrelated. Can you rebase the PR and resubmit to see if we can get the CI/CD tests green so we can merge this? Thanks |
Still fails but i have tested the new Integration with LOCAL env set. Error below from Integration Test on GitHub, with this stat command i check the permissions of the Default ADD command without --chmod It uses the src as permissions source for chmod. It was 775 on my git Checkout, maybe different in github
|
I have removed the mentioned checks for default behaiviour for the ADD and COPY without a --chmod command. the integration test now only checks the --chmod feature. @aaron-prindle please trigger https://github.com/GoogleContainerTools/kaniko/actions/runs/8758320746 |
I dont see whats wrong with the Integration test |
I believe this is a test flake in our integration tests @mschneider82. In the past 2-3 days I have seen the below error on another PR (which was only bumping deps) as well:
I am still trying to root cause this atm. If I can identify the issue soon I will submit a fix and rebase (if this is related to our test infra) and if not I can merge this as is (with test flake) as I don't believe the changes in this PR are related to the test failures flake tracking issue: previous runs with this flake (the same PR would then pass later): |
Ok feel free to merge then, i use this patched Version since days without an issue |
Just merged, #3131. If you rebase and push we can hopefully see some additional error information |
Ok it fails because the docker command does not support chmod without buildkit:
in |
ok doing buildkit=1 for integration is a longer task to fix, but this should be a seperated task. The lagacy build will be deprecated, to it should compare to buildkit instead of legacy docker build. |
I found the chmod container build, with docker it had 11 layers with kaniko just 5? To debug this it would be helpful if the build from kaniko would be also printed. currently in images.go the output is just printed when the image build fails, but not returned, in this case it would be helpful to return it and also print it when the layercheck has a difference detected. |
@aaron-prindle OK i got it green, i had to enable DOCKER_BUILDKIT=1 for just this single integration test via |
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.
Thanks for your detailed explanations and investigation here @mschneider82. Will update #3124 with your findings.
LGTM, merging
Fixes #2850 and #1751
Description
I have added --chmod feature for ADD and COPY command.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
Reviewer Notes
Release Notes