Ignore .containerignore for git repositories in ADD#6800
Conversation
ac2f35b to
9ae4022
Compare
|
Ephemeral COPR build failed. @containers/packit-build please check. |
1 similar comment
|
Ephemeral COPR build failed. @containers/packit-build please check. |
Honny1
left a comment
There was a problem hiding this comment.
LGTM, once @TomSweeneyRedHat 's comment is addressed.
9ae4022 to
3088770
Compare
nalind
left a comment
There was a problem hiding this comment.
The stageExecutor.performCopy() method sets the "Excludes" field in the options and passes the list of sources to the Add() method. Can't it base the "Excludes" value it passes in on whether or not a source value it's also passing in is a git location?
If need be, the sourceIsGit() helper function could be moved from add.go to an internal package so that performCopy() could call it. There's a check early on in define.TempDirForURL() that could probably stand to use it, too.
3088770 to
b98e5cb
Compare
|
@nalind thanks for the review
Can you elaborate on this? If I understand this correctly, the idea is to Because with my understanding: The Unless:
|
That's what we more or less already do when heredocs are also in the mix, so that wouldn't be a new problem. |
@nalind I changed it in a way that git/nonGit is solved in |
|
@lsm5 I'm looking at https://artifacts.dev.testing-farm.io/f0d946c9-14ad-4e52-a385-49a751a8d7f6/ and can't reproduce that test failure in a Raw Hide VM with the rhcontainerbot/podman-next COPR enabled. Are the audit logs from the test somewhere that I couldn't spot? |
nalind
left a comment
There was a problem hiding this comment.
@nalind I changed it in a way that git/nonGit is solved in
stage_executor.go. Your comment should be addressed. There is the previous version for reference main...simonbrauner:buildah:issue-6614-v2.
Great! LGTM
Just to make sure, you did not install buildah from podman-next but only the other deps, correct? podman-next packages have a super-high Epoch so if you didn't
Are you looking for avc denials? I don't think testing-farm/tmt setup captures them by default, but I'll ask around. |
I've filed a support ticket with testing-farm people |
Updated to versions from the COPR, checked out this PR, built it, ran the in-tree versions of the tests. Also symlinked my tree's "bin" directory into /usr/share/buildah/test and ran the copy from /usr/share/buildah/test/system/ provided by the COPR's buildah-tests package.
Yes. The tests are run as root, right? I do get the same error if I remove /usr/bin/selinuxenabled (by removing libselinux-utils), which the test uses to determine if $zflag needs to be set to "z" or left empty. |
Fixes: containers#6614 Signed-off-by: Šimon Brauner <sbrauner@redhat.com>
|
@containers/buildah-maintainers PTAL |
|
/lgtm |
What type of PR is this?
/kind bug
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Fixes: #6614
Special notes for your reviewer:
Does this PR introduce a user-facing change?