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

Fix permissions for packaging #39218

Merged
merged 8 commits into from
Apr 26, 2024

Conversation

alexsapran
Copy link
Contributor

@alexsapran alexsapran commented Apr 25, 2024

Proposed commit message

This commit fixes the release-manager error

> java.io.FileNotFoundException: /artifacts/build/distributions/... (Permission denied)

by adjusting the permissions of parent directories.
Additionally there are a few logging enhancements to improve debugging, as well as the introduction
of a new optional DRA_BRANCH environment variable, to help running and debugging via PRs.

Testing/Logs

Example run with dry-run enabled: https://buildkite.com/elastic/beats-packaging-pipeline/builds/54
Example run that publishes: https://buildkite.com/elastic/beats-packaging-pipeline/builds/56 (DRY_RUN="false")
Final run with annotations: https://buildkite.com/elastic/beats-packaging-pipeline/builds/57

Signed-off-by: Alexandros Sapranidis <[email protected]>
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 25, 2024
Copy link
Contributor

mergify bot commented Apr 25, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @alexsapran? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

Signed-off-by: Alexandros Sapranidis <[email protected]>
@elasticmachine
Copy link
Collaborator

elasticmachine commented Apr 25, 2024

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Duration: 12 min 5 sec

❕ Flaky test report

No test was executed to be analysed.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Apr 25, 2024
alexsapran and others added 3 commits April 25, 2024 20:38
@dliappis dliappis changed the title Overwrite the branch for packaging Fix permissions for packaging Apr 26, 2024
@dliappis dliappis marked this pull request as ready for review April 26, 2024 07:47
@dliappis dliappis requested a review from a team as a code owner April 26, 2024 07:47
@dliappis dliappis force-pushed the buildkite/packaging-debug branch from b6e8ec3 to bcccc3c Compare April 26, 2024 08:06
Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

LGTM

@dliappis dliappis merged commit b93a14d into elastic:main Apr 26, 2024
98 of 106 checks passed
pazone pushed a commit that referenced this pull request Apr 26, 2024
This commit fixes the release-manager error

> # > java.io.FileNotFoundException: /artifacts/build/distributions/... (Permission denied)

by adjusting the permissions of parent directories.
Additionally there are a few logging enhancements to improve debugging, as well as the introduction
of a new optional `DRA_BRANCH` environment variable, to help running and debugging via PRs.

Relates elastic/ingest-dev#3095

---------

Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Dimitrios Liappis <[email protected]>
pazone pushed a commit that referenced this pull request Apr 26, 2024
This commit fixes the release-manager error

> # > java.io.FileNotFoundException: /artifacts/build/distributions/... (Permission denied)

by adjusting the permissions of parent directories.
Additionally there are a few logging enhancements to improve debugging, as well as the introduction
of a new optional `DRA_BRANCH` environment variable, to help running and debugging via PRs.

Relates elastic/ingest-dev#3095

---------

Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Dimitrios Liappis <[email protected]>
pazone pushed a commit that referenced this pull request Apr 26, 2024
This commit fixes the release-manager error

> # > java.io.FileNotFoundException: /artifacts/build/distributions/... (Permission denied)

by adjusting the permissions of parent directories.
Additionally there are a few logging enhancements to improve debugging, as well as the introduction
of a new optional `DRA_BRANCH` environment variable, to help running and debugging via PRs.

Relates elastic/ingest-dev#3095

---------

Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Dimitrios Liappis <[email protected]>
pazone added a commit that referenced this pull request Apr 30, 2024
* Beats DRA pipeline (#39126)

* Packaging pipieline resource

* Revetred agentbeat pipeline deletion

* Cleanup

* Test auditbeat packaging pipeline

* Fix steps keys

* Fix steps keys

* Fix env vars

* Fix env vars

* Fix env vars

* Unified artifacts dir

* Implemented DRA steps

* Test filebeat

* Test matrix

* Aligned artifacts directories

* Aligned artifacts directories

* Aligned artifacts directories

* Aligned artifacts directories

* Debug

* Debug

* Package all beats

* Test DRA snapshot

* Test DRA snapshot

* Rename artifacts

* fix dashboards artifacts

* Cleanup

* cleanup

* No need to install msi tools

* Apply suggestions from code review

Co-authored-by: Dimitrios Liappis <[email protected]>

* Extraced platforms variables

* Cleanup

* Added RUN_SNAPSHOT condition

* Cleanup

* Boolean dry-run

* Boolean dry-run

---------

Co-authored-by: Dimitrios Liappis <[email protected]>
(cherry picked from commit c6444db)

# Conflicts:
#	.buildkite/packaging.pipeline.yml

* Fixes for Buildkite packaging pipeline (#39207)

This PR fixes a number of bugs from #39126

* Fix BK DRA pipeline (#39212)

This commit fixes the error
"interpolating remaining fields: Expected identifier to start with a letter, got /"

* Fix permissions for packaging (#39218)

This commit fixes the release-manager error

> # > java.io.FileNotFoundException: /artifacts/build/distributions/... (Permission denied)

by adjusting the permissions of parent directories.
Additionally there are a few logging enhancements to improve debugging, as well as the introduction
of a new optional `DRA_BRANCH` environment variable, to help running and debugging via PRs.

Relates https://github.com/elastic/ingest-dev/issues/3095

---------

Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Dimitrios Liappis <[email protected]>

* Added DEV flag to snapshot. prepare-release-manager.sh staging param (#39217)

Added DEV flag to snapshot builds. Specified the workflow for prepare-release-manager.sh

Relates: https://github.com/elastic/ingest-dev/issues/3095

---------

Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Pavel Zorin <[email protected]>
Co-authored-by: Dimitrios Liappis <[email protected]>
Co-authored-by: Alexandros Sapranidis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants