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

replace default images #38583

Merged
merged 135 commits into from
Apr 5, 2024
Merged

replace default images #38583

merged 135 commits into from
Apr 5, 2024

Conversation

sharbuz
Copy link
Contributor

@sharbuz sharbuz commented Mar 25, 2024

What is the problem this PR solves?

Jenkins->Buildkite pipelines migration

Replace default images by our own images

Example of the pipelines:

Examples of the affected pipelines:

Related issues

https://github.com/elastic/ingest-dev/issues/1693

@sharbuz sharbuz added x-pack Issues and pull requests for X-Pack features. macOS Enable builds in the CI for darwin testing arm Enable builds in the CI for ARM testing aws Enable builds in the CI for aws cloud testing backport-7.17 Automated backport to the 7.17 branch with mergify backport-v8.12.0 Automated backport with mergify backport-v8.13.0 Automated backport with mergify labels Mar 25, 2024
@sharbuz sharbuz self-assigned this Mar 25, 2024
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Mar 25, 2024
@botelastic
Copy link

botelastic bot commented Mar 25, 2024

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Collaborator

elasticmachine commented Mar 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

  • Start Time: 2024-04-05T05:45:52.567+0000

  • Duration: 17 min 33 sec

Test stats 🧪

Test Results
Failed 0
Passed 3
Skipped 0
Total 3

💚 Flaky test report

Tests succeeded.

🤖 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!)

GITHUB_TOKEN_VAULT_PATH="kv/ci-shared/platform-ingest/github_token"

if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats" || "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" == "auditbeat" || "$BUILDKITE_PIPELINE_SLUG" == "heartbeat" || "$BUILDKITE_PIPELINE_SLUG" == "deploy-k8s" ]]; then
source .buildkite/env-scripts/env.sh
if [[ -z "${GO_VERSION-""}" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to do this now? This is handled inside the VM image.

.buildkite/scripts/generate_auditbeat_pipeline.sh Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

How are we adding this file? Didn't Filebeat already exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is the problem of conflict-solving after yesterday's merge.

.buildkite/scripts/generate_filebeat_pipeline.sh Outdated Show resolved Hide resolved
@pazone
Copy link
Contributor

pazone commented Apr 4, 2024

LGTM.
This PR contains a lot of work and makes big progress.
To reviewers: Please make sure that you leave comments about only critical findings. Let's move it forward

@sharbuz sharbuz requested a review from pazone April 4, 2024 14:00
Copy link
Contributor

@alexsapran alexsapran left a comment

Choose a reason for hiding this comment

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

Overall, it looks good to me +1. I only noticed one Windows step that had the wrong command.
I synced with @pazone to investigate the package step. If there is an issue with that step, I would like to address it before landing this massive PR.
@pazone, please approve it once you know so we can merge it.

@pazone
Copy link
Contributor

pazone commented Apr 4, 2024

Looks like the package steps can be removed for PRs.
I propose to merge this PR and I can disable those steps later.

@pazone
Copy link
Contributor

pazone commented Apr 4, 2024

@sharbuz has changed the packaging script to mage package and now we don't publish artifacts on PRs. @alexsapran

@sharbuz sharbuz merged commit 80dab50 into elastic:main Apr 5, 2024
123 of 125 checks passed
mergify bot pushed a commit that referenced this pull request Apr 5, 2024
* replace default images
--------------------------
Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Alexandros Sapranidis <[email protected]>
(cherry picked from commit 80dab50)

# Conflicts:
#	.buildkite/auditbeat/auditbeat-pipeline.yml
#	.buildkite/filebeat/filebeat-pipeline.yml
#	.buildkite/heartbeat/heartbeat-pipeline.yml
#	.buildkite/hooks/pre-command
#	.buildkite/scripts/generate_auditbeat_pipeline.sh
#	.buildkite/scripts/generate_filebeat_pipeline.sh
#	.buildkite/scripts/packaging/package-step.sh
#	.buildkite/scripts/setenv.sh
mergify bot pushed a commit that referenced this pull request Apr 5, 2024
* replace default images
--------------------------
Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Alexandros Sapranidis <[email protected]>
(cherry picked from commit 80dab50)

# Conflicts:
#	.buildkite/auditbeat/auditbeat-pipeline.yml
#	.buildkite/filebeat/filebeat-pipeline.yml
#	.buildkite/filebeat/scripts/package-step.sh
#	.buildkite/heartbeat/heartbeat-pipeline.yml
#	.buildkite/hooks/pre-command
#	.buildkite/scripts/common.sh
#	.buildkite/scripts/setenv.sh
mergify bot pushed a commit that referenced this pull request Apr 5, 2024
* replace default images
--------------------------
Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Alexandros Sapranidis <[email protected]>
(cherry picked from commit 80dab50)

# Conflicts:
#	.buildkite/auditbeat/auditbeat-pipeline.yml
#	.buildkite/filebeat/filebeat-pipeline.yml
#	.buildkite/heartbeat/heartbeat-pipeline.yml
#	.buildkite/hooks/pre-command
#	.buildkite/scripts/generate_auditbeat_pipeline.sh
#	.buildkite/scripts/generate_filebeat_pipeline.sh
#	.buildkite/scripts/setenv.sh
zeynepyz pushed a commit to zeynepyz/beats that referenced this pull request Apr 7, 2024
* replace default images
--------------------------
Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Alexandros Sapranidis <[email protected]>
sharbuz added a commit that referenced this pull request Apr 8, 2024
* replace default images (#38583)

* replace default images
--------------------------
Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Alexandros Sapranidis <[email protected]>
(cherry picked from commit 80dab50)

# Conflicts:
#	.buildkite/auditbeat/auditbeat-pipeline.yml
#	.buildkite/filebeat/filebeat-pipeline.yml
#	.buildkite/filebeat/scripts/package-step.sh
#	.buildkite/heartbeat/heartbeat-pipeline.yml
#	.buildkite/hooks/pre-command
#	.buildkite/scripts/common.sh
#	.buildkite/scripts/setenv.sh

* Update auditbeat-pipeline.yml

* Update filebeat-pipeline.yml

* Update package-step.sh

* Update package-step.sh

* Update heartbeat-pipeline.yml

* Update pre-command

* Update pre-command

* Update pre-command

* resolve conflicts

* Update common.sh

* Update setenv.sh

* Update pre-command

---------

Co-authored-by: Siarhei Harbuz <[email protected]>
Co-authored-by: Siarhei Harbuz <[email protected]>
sharbuz added a commit that referenced this pull request Apr 8, 2024
* replace default images (#38583)

* replace default images
--------------------------
Signed-off-by: Alexandros Sapranidis <[email protected]>
Co-authored-by: Alexandros Sapranidis <[email protected]>
(cherry picked from commit 80dab50)

# Conflicts:
#	.buildkite/auditbeat/auditbeat-pipeline.yml
#	.buildkite/filebeat/filebeat-pipeline.yml
#	.buildkite/heartbeat/heartbeat-pipeline.yml
#	.buildkite/hooks/pre-command
#	.buildkite/scripts/generate_auditbeat_pipeline.sh
#	.buildkite/scripts/generate_filebeat_pipeline.sh
#	.buildkite/scripts/setenv.sh

* Update auditbeat-pipeline.yml

* Update filebeat-pipeline.yml

* Update heartbeat-pipeline.yml

* Update pre-command

* Update generate_auditbeat_pipeline.sh

* Update generate_filebeat_pipeline.sh

* Update setenv.sh

---------

Co-authored-by: Siarhei Harbuz <[email protected]>
Co-authored-by: Siarhei Harbuz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Enable builds in the CI for ARM testing aws Enable builds in the CI for aws cloud testing backport-7.17 Automated backport to the 7.17 branch with mergify backport-v8.12.0 Automated backport with mergify backport-v8.13.0 Automated backport with mergify macOS Enable builds in the CI for darwin testing needs_team Indicates that the issue/PR needs a Team:* label x-pack Issues and pull requests for X-Pack features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants