Skip to content
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

Preserve permissions when copying to/from an artifact storage bucket #1048

Conversation

abayer
Copy link
Contributor

@abayer abayer commented Jul 4, 2019

Changes

We're not preserving permissions when copying between tasks, and we should. =)

fixes #1047

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

Release Notes

#1047: Copying between `Task`s using an artifact storage bucket will now preserve file permissions.

@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Jul 4, 2019
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 4, 2019
We were calling `gsutil cp -r ...`, which doesn't preserve
permissions. That means that if you have an executable file in one
`TaskRun` pod and copy it to another `TaskRun` pod via an artifact
storage bucket, it won't be executable when it gets there. So let's
fix that.

fixes tektoncd#1047

Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
@abayer abayer force-pushed the preserve-permissions-in-artifact-bucket-storage branch from 9e49d0c to c9f3631 Compare July 4, 2019 17:32
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 4, 2019
@abayer
Copy link
Contributor Author

abayer commented Jul 4, 2019

/test pull-tekton-pipeline-unit-tests

@abayer
Copy link
Contributor Author

abayer commented Jul 4, 2019

/test tekton-pipeline-unit-tests

@vdemeester
Copy link
Member

@abayer do we have flaky unit tests ? 🤔

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 5, 2019
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abayer, vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 5, 2019
@tekton-robot tekton-robot merged commit 1d5282f into tektoncd:master Jul 5, 2019
@abayer
Copy link
Contributor Author

abayer commented Jul 5, 2019

@vdemeester yup - #1049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Artifact bucket storage doesn't preserve permissions on copy
4 participants