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

[CI] Fixed container images packaging #6972

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

pazone
Copy link
Contributor

@pazone pazone commented Feb 21, 2025

What does this PR do?

Fixed container image packaging by setting proper packaging variables
We now have 9 packaging steps:

Packaging: linux/amd64 rpm

Artifacts :

  • elastic-agent-9.0.0-SNAPSHOT-x86_64.rpm
  • elastic-agent-9.0.0-SNAPSHOT-x86_64.rpm.sha512

Packaging: linux/arm64 rpm

Artifacts :

  • elastic-agent-9.0.0-SNAPSHOT-aarch64.rpm
  • elastic-agent-9.0.0-SNAPSHOT-aarch64.rpm.sha512

Packaging: linux/amd64 deb

Artifacts :

  • elastic-agent-9.0.0-SNAPSHOT-amd64.deb
  • elastic-agent-9.0.0-SNAPSHOT-amd64.deb.sha512

Packaging: linux/arm64 deb

Artifacts:

  • elastic-agent-9.0.0-SNAPSHOT-arm64.deb
  • elastic-agent-9.0.0-SNAPSHOT-arm64.deb.sha512

Packaging: linux/amd64 tar.gz

Artifacts:

  • elastic-agent-9.0.0-SNAPSHOT-linux-x86_64.tar.gz
  • elastic-agent-9.0.0-SNAPSHOT-linux-x86_64.tar.gz.sha512

Packaging: linux/arm64 tar.gz

Artifacts:

  • elastic-agent-9.0.0-SNAPSHOT-linux-arm64.tar.gz
  • elastic-agent-9.0.0-SNAPSHOT-linux-arm64.tar.gz.sha512

Packaging: Containers linux/amd64

14 amd64 images. See the build

Packaging: Containers linux/arm64

14 arm64 images. See the build

Packaging: windows/amd64 zip

  • elastic-agent-9.0.0-SNAPSHOT-windows-x86_64.zip
  • elastic-agent-9.0.0-SNAPSHOT-windows-x86_64.zip.sha512

Why is it important?

The container images will be used by k8s integration tests instead of rebuilding them.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

How to test this PR locally

Related issues

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...

@pazone pazone added enhancement New feature or request skip-changelog Team:Ingest-EngProd backport-active-all Automated backport with mergify to all the active branches labels Feb 21, 2025
@mergify mergify bot assigned pazone Feb 21, 2025
@pkoutsovasilis pkoutsovasilis mentioned this pull request Feb 24, 2025
8 tasks
command: |
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64' --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Build matrix is not used because we need unique step keys

@pazone pazone marked this pull request as ready for review February 26, 2025 00:14
@pazone pazone requested a review from a team as a code owner February 26, 2025 00:14
@pazone pazone requested a review from dliappis February 26, 2025 00:14
Copy link
Contributor

mergify bot commented Feb 26, 2025

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b ci_fix_packaging_containers upstream/ci_fix_packaging_containers
git merge upstream/main
git push upstream ci_fix_packaging_containers

@pazone
Copy link
Contributor Author

pazone commented Feb 26, 2025

Build takes too long because of the emulation

@elasticmachine
Copy link
Contributor

elasticmachine commented Feb 26, 2025

💔 Build Failed

Failed CI Steps

History

cc @pazone

Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-active-all Automated backport with mergify to all the active branches enhancement New feature or request skip-changelog Team:Ingest-EngProd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants