-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Fix: wildcard excludes in unarchive with tar archives #40935
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sijis
force-pushed
the
fix/unarchive/exclude_tar
branch
from
May 31, 2018 07:15
d8ef19b
to
e8539a1
Compare
ansibot
added
affects_2.7
This issue/PR affects Ansible v2.7
bug
This issue/PR relates to a bug.
core_review
In order to be merged, this PR must follow the core review workflow.
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
m:unarchive
This issue/PR relates to the unarchive module.
labels
May 31, 2018
mkrizek
removed
the
needs_triage
Needs a first human triage before being processed.
label
Jun 1, 2018
sijis
force-pushed
the
fix/unarchive/exclude_tar
branch
from
June 5, 2018 04:43
e8539a1
to
8b304aa
Compare
ansibot
added
test
This PR relates to tests.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Jun 11, 2018
CI failure in integration tests: https://app.shippable.com/github/ansible/ansible/runs/69413/38/tests |
mattclay
added
the
ci_verified
Changes made in this PR are causing tests to fail.
label
Jun 11, 2018
sijis
force-pushed
the
fix/unarchive/exclude_tar
branch
from
June 12, 2018 05:38
0af13a8
to
b6be9c3
Compare
ansibot
removed
the
ci_verified
Changes made in this PR are causing tests to fail.
label
Jun 12, 2018
sijis
force-pushed
the
fix/unarchive/exclude_tar
branch
4 times, most recently
from
June 12, 2018 12:36
116ae28
to
c908778
Compare
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Jun 12, 2018
sijis
force-pushed
the
fix/unarchive/exclude_tar
branch
from
June 13, 2018 05:17
c908778
to
5893fdd
Compare
The test
|
ansibot
added
ci_verified
Changes made in this PR are causing tests to fail.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Jun 13, 2018
sijis
force-pushed
the
fix/unarchive/exclude_tar
branch
from
June 13, 2018 12:31
5893fdd
to
e38576a
Compare
ansibot
removed
the
ci_verified
Changes made in this PR are causing tests to fail.
label
Jun 13, 2018
sijis
force-pushed
the
fix/unarchive/exclude_tar
branch
from
June 13, 2018 12:38
e38576a
to
3d92aa3
Compare
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
needs_ci
This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI.
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
core_review
In order to be merged, this PR must follow the core review workflow.
needs_ci
This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI.
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
labels
Jun 13, 2018
sijis
force-pushed
the
fix/unarchive/exclude_tar
branch
from
June 13, 2018 14:17
3d92aa3
to
4d88d26
Compare
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Jun 13, 2018
A common structure archived by different methods should simplify some of the feature tests.
sijis
force-pushed
the
fix/unarchive/exclude_tar
branch
from
June 20, 2018 05:50
4d88d26
to
b6aa73c
Compare
Rebased. |
jacum
pushed a commit
to jacum/ansible
that referenced
this pull request
Jun 26, 2018
* fix: exclude using wildcards for tar archives Fixes ansible#37842, ansible#22947 * fix: Remove quote() as it munges the exclude format * test: Refactor to use single archive structure A common structure archived by different methods should simplify some of the feature tests. * test: Use common archive layout to validate exclude feature * test: Use the same exclude checks for zip/tar archives
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.7
This issue/PR affects Ansible v2.7
bug
This issue/PR relates to a bug.
core_review
In order to be merged, this PR must follow the core review workflow.
m:unarchive
This issue/PR relates to the unarchive module.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
test
This PR relates to tests.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Fixes an issue where the exclude option is used and one of the entries contains a wildcard, the unarchive module does not exclude files matching those wildcards as expected.
Fixes #37842, #22947
Related #40120
ISSUE TYPE
COMPONENT NAME
unarchive
ANSIBLE VERSION
ADDITIONAL INFORMATION
Playbook used to test
Before fix
After fix
I still need to include integration tests.