Skip to content

[CI] Fixed container images packaging#6972

Merged
pazone merged 24 commits intomainfrom
ci_fix_packaging_containers
Mar 5, 2025
Merged

[CI] Fixed container images packaging#6972
pazone merged 24 commits intomainfrom
ci_fix_packaging_containers

Conversation

@pazone
Copy link
Copy Markdown

@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
@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
@mergify
Copy link
Copy Markdown
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
Copy Markdown
Author

pazone commented Feb 26, 2025

Build takes too long because of the emulation

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 3, 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

@elastic-sonarqube
Copy link
Copy Markdown

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

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @pazone

Copy link
Copy Markdown
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

@pazone pazone merged commit 14943f0 into main Mar 5, 2025
14 checks passed
@pazone pazone deleted the ci_fix_packaging_containers branch March 5, 2025 10:55
mergify bot pushed a commit that referenced this pull request Mar 5, 2025
* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

# Conflicts:
#	.buildkite/integration.pipeline.yml
mergify bot pushed a commit that referenced this pull request Mar 5, 2025
* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

# Conflicts:
#	.buildkite/integration.pipeline.yml
mergify bot pushed a commit that referenced this pull request Mar 5, 2025
* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

# Conflicts:
#	.buildkite/integration.pipeline.yml
mergify bot pushed a commit that referenced this pull request Mar 5, 2025
* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

# Conflicts:
#	.buildkite/integration.pipeline.yml
mergify bot pushed a commit that referenced this pull request Mar 5, 2025
* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

# Conflicts:
#	.buildkite/integration.pipeline.yml
pazone pushed a commit that referenced this pull request Mar 7, 2025
* [CI] Fixed container images packaging (#6972)

* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

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

* Resolved conflicts

---------

Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co>
pazone pushed a commit that referenced this pull request Mar 7, 2025
* [CI] Fixed container images packaging (#6972)

* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

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

* Resolved conflicts

* Resolved conflicts

---------

Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co>
pazone pushed a commit that referenced this pull request Mar 7, 2025
* [CI] Fixed container images packaging (#6972)

* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

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

* Resolved conflicts

---------

Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co>
pazone pushed a commit that referenced this pull request Mar 7, 2025
* [CI] Fixed container images packaging (#6972)

* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

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

* Resolved conflicts

* Removed FIPS packaging

---------

Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co>
dliappis pushed a commit that referenced this pull request Mar 10, 2025
* [CI] Fixed container images packaging (#6972)

* [CI] Fixed container images packaging

* Packaging Ubuntu matrix

* Improve matrix representation

* Removed matrix packaging if favour to unique step keys

* Cleanup

* Added binfmt

* Pinned binfmt to v8.1.5

* Correct step names

* Changed packaging ARM machine type

* pinned qemu-v9.2.0-51

* Remove qemu

* Removed deb and rpm integration packaging

* Reordered packaging steps

* [CI] Build FIPS ARM Linux on ARM machine. Added missing retries

* Fixed FIPS

* [CI] Corrected integration tests packaging dependencies

* [CI] single buildkite download invocation

* Added missing retries

(cherry picked from commit 14943f0)

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

* Resolved conflicts

* Removed FIPS packaging

---------

Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co>
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:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Team:Ingest-EngProd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants