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

Set explicit file permissions in NoticeTask #99206

Merged
merged 4 commits into from
Sep 5, 2023

Conversation

brianseeders
Copy link
Contributor

@brianseeders brianseeders commented Sep 5, 2023

Fixes #99153

This error is due to a build cache object that got populated with a NOTICE.txt with an unexpected set of permissions (664 instead of 644).

A Buildkite agent for another project with a different umask generated a NOTICE.txt file with different permissions. The other project shares a build cache with elasticsearch, and was recently allowed to populate the cache as well as read from it.

Anywhere that we care enough to test permissions on files, we should set those permissions at file creation time, so that the files are correct regardless of what OS they get created on / etc. So, that's what I'm doing in this PR.

@brianseeders brianseeders added >non-issue :Delivery/Build Build or test infrastructure :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts v8.11.0 labels Sep 5, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label Sep 5, 2023
@brianseeders brianseeders merged commit 0ec47aa into elastic:main Sep 5, 2023
@breskeby
Copy link
Contributor

breskeby commented Sep 6, 2023

nice catch

@brianseeders brianseeders deleted the fix-notice-perms branch September 6, 2023 15:06
@brianseeders brianseeders added auto-backport Automatically create backport pull requests when merged and removed auto-backport-and-merge labels Sep 6, 2023
brianseeders added a commit to brianseeders/elasticsearch that referenced this pull request Sep 6, 2023
brianseeders added a commit to brianseeders/elasticsearch that referenced this pull request Sep 6, 2023
@brianseeders
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.10
8.9
7.17

Questions ?

Please refer to the Backport tool documentation

brianseeders added a commit to brianseeders/elasticsearch that referenced this pull request Sep 6, 2023
(cherry picked from commit 0ec47aa)

# Conflicts:
#	distribution/build.gradle
brianseeders added a commit that referenced this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Delivery/Build Build or test infrastructure :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >non-issue Team:Delivery Meta label for Delivery team v7.17.14 v8.9.3 v8.10.0 v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] CertGenCliTests test10Install failing
5 participants