-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
migrate x-pack/libbeat to static #38964
migrate x-pack/libbeat to static #38964
Conversation
This pull request doesn't have a |
This pull request is now in conflicts. Could you fix it? 🙏
|
This pull request is now in conflicts. Could you fix it? 🙏
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly good, but there are a few things missing for the migration.
For testing, can you enable the :Windows
label to also see the windows extended tests results?
This pull request is now in conflicts. Could you fix it? 🙏
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are getting there. I think there were some accidental additions for x-pack/heartbeat and x-pack/filebeat
@@ -90,18 +89,12 @@ packaging_changeset=( | |||
) | |||
|
|||
case "${BUILDKITE_PIPELINE_SLUG}" in | |||
"beats-libbeat") | |||
BEAT_CHANGESET_REFERENCE=${libbeat_changeset[@]} | |||
;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we intentionally removing beats-libbeat
? the PR is about x-pack/libbeat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
answered here
libbeat_changeset=( | ||
"^libbeat/.*" | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this on purpose? given that the PR is about x-pack/libbeat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libbeat pipeline has already merged.
Also, in this pipeline I've added one part from libbeat (we discussed that earlier):
Line 268 in cd81faa
diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" |
- dev-tools/ | ||
- testing/ | ||
# x-pack | ||
- libbeat/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding from /Jenkinsfile.yml is that the common changesets for x-pack are:
# x-pack
- go.mod
- pytest.ini
- dev-tools/
- libbeat/
- testing/
- x-pack/libbeat/
we've already used this pattern in x-pack/heartbeat so perhaps we can standardize i.e. replace both oss and x-pack with one "# x-pack" section for x-pack related projects (similar to Jenkinsfile)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, let's compare what we have:
- x-pack/libbeat/
- .buildkite/x-pack/pipeline.xpack.libbeat.yml
- .buildkite/scripts
- .buildkite/hooks
#OSS
- go.mod
- pytest.ini
- dev-tools/
- testing/
# x-pack
- libbeat/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or you mean we shouldn't merge them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they are the same, I am just saying that for consistency's sake we should have a section
# x-pack
- go.mod
- pytest.ini
- dev-tools/
- libbeat/
- testing/
- x-pack/libbeat/
for all x-pack pipelines. The pipeline specific bits will, of course, remain above, so the total thing with my proposal would be:
- x-pack/<whatever beat>/ # exceptionally here, since it's x-pack/libbeat which is part of the the x-pack common section below we should skip this line
- .buildkite/x-pack/pipeline.xpack.libbeat.yml
- .buildkite/scripts/
- .buildkite/hooks/
# x-pack
- go.mod
- pytest.ini
- dev-tools/
- libbeat/
- testing/
- x-pack/libbeat/
Co-authored-by: Dimitrios Liappis <[email protected]>
…beats into migrate-xpack-libbeat-to-static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Left a minor ask in https://github.com/elastic/beats/pull/38964/files#r1572334321
which doesn't require another review cycle.
/test |
* migrate x-pack/libbeat to static * Update pull-requests.json * change paths * Update pull-requests.json * change conditions for group-steps * change the pipeline.yml * work with remarks * work with remarks * remove libbeat and x-pack/libbeat changesets from the common.sh * remove libbeat and x-pack/libbeat changesets from the common.sh * fix merge issues * Update .buildkite/x-pack/pipeline.xpack.libbeat.yml Co-authored-by: Dimitrios Liappis <[email protected]> * apply common.sh from main and cleanup it * change paths --------- Co-authored-by: Dimitrios Liappis <[email protected]> (cherry picked from commit b0690b5) # Conflicts: # .buildkite/pipeline.yml # .buildkite/pull-requests.json # .buildkite/scripts/common.sh
* migrate x-pack/libbeat to static * Update pull-requests.json * change paths * Update pull-requests.json * change conditions for group-steps * change the pipeline.yml * work with remarks * work with remarks * remove libbeat and x-pack/libbeat changesets from the common.sh * remove libbeat and x-pack/libbeat changesets from the common.sh * fix merge issues * Update .buildkite/x-pack/pipeline.xpack.libbeat.yml Co-authored-by: Dimitrios Liappis <[email protected]> * apply common.sh from main and cleanup it * change paths --------- Co-authored-by: Dimitrios Liappis <[email protected]> (cherry picked from commit b0690b5) # Conflicts: # .buildkite/pipeline.yml # .buildkite/pull-requests.json # .buildkite/scripts/common.sh # .buildkite/x-pack/pipeline.xpack.libbeat.yml
* migrate x-pack/libbeat to static * Update pull-requests.json * change paths * Update pull-requests.json * change conditions for group-steps * change the pipeline.yml * work with remarks * work with remarks * remove libbeat and x-pack/libbeat changesets from the common.sh * remove libbeat and x-pack/libbeat changesets from the common.sh * fix merge issues * Update .buildkite/x-pack/pipeline.xpack.libbeat.yml Co-authored-by: Dimitrios Liappis <[email protected]> * apply common.sh from main and cleanup it * change paths --------- Co-authored-by: Dimitrios Liappis <[email protected]> (cherry picked from commit b0690b5) # Conflicts: # .buildkite/pipeline.yml # .buildkite/scripts/common.sh
* migrate x-pack/libbeat to static (#38964) * migrate x-pack/libbeat to static * Update pull-requests.json * change paths * Update pull-requests.json * change conditions for group-steps * change the pipeline.yml * work with remarks * work with remarks * remove libbeat and x-pack/libbeat changesets from the common.sh * remove libbeat and x-pack/libbeat changesets from the common.sh * fix merge issues * Update .buildkite/x-pack/pipeline.xpack.libbeat.yml Co-authored-by: Dimitrios Liappis <[email protected]> * apply common.sh from main and cleanup it * change paths --------- Co-authored-by: Dimitrios Liappis <[email protected]> (cherry picked from commit b0690b5) # Conflicts: # .buildkite/pipeline.yml # .buildkite/pull-requests.json # .buildkite/scripts/common.sh * Update pipeline.yml * Update pull-requests.json * Update pull-requests.json * Update common.sh * Update common.sh --------- Co-authored-by: Siarhei Harbuz <[email protected]>
* migrate x-pack/libbeat to static (#38964) * migrate x-pack/libbeat to static * Update pull-requests.json * change paths * Update pull-requests.json * change conditions for group-steps * change the pipeline.yml * work with remarks * work with remarks * remove libbeat and x-pack/libbeat changesets from the common.sh * remove libbeat and x-pack/libbeat changesets from the common.sh * fix merge issues * Update .buildkite/x-pack/pipeline.xpack.libbeat.yml Co-authored-by: Dimitrios Liappis <[email protected]> * apply common.sh from main and cleanup it * change paths --------- Co-authored-by: Dimitrios Liappis <[email protected]> (cherry picked from commit b0690b5) # Conflicts: # .buildkite/pipeline.yml # .buildkite/scripts/common.sh * Update pipeline.yml * Update common.sh * Update common.sh --------- Co-authored-by: Siarhei Harbuz <[email protected]>
* migrate x-pack/libbeat to static (#38964) * migrate x-pack/libbeat to static * Update pull-requests.json * change paths * Update pull-requests.json * change conditions for group-steps * change the pipeline.yml * work with remarks * work with remarks * remove libbeat and x-pack/libbeat changesets from the common.sh * remove libbeat and x-pack/libbeat changesets from the common.sh * fix merge issues * Update .buildkite/x-pack/pipeline.xpack.libbeat.yml Co-authored-by: Dimitrios Liappis <[email protected]> * apply common.sh from main and cleanup it * change paths --------- Co-authored-by: Dimitrios Liappis <[email protected]> (cherry picked from commit b0690b5) # Conflicts: # .buildkite/pipeline.yml # .buildkite/pull-requests.json # .buildkite/scripts/common.sh # .buildkite/x-pack/pipeline.xpack.libbeat.yml * Update pipeline.yml * Update pull-requests.json * Update pull-requests.json * Update common.sh * Update pipeline.xpack.libbeat.yml * Update pipeline.xpack.libbeat.yml * Update pipeline.xpack.libbeat.yml --------- Co-authored-by: Siarhei Harbuz <[email protected]>
What is the problem this PR solves?
Jenkins->Buildkite pipelines migration
Migrate x-pack/libbeat from dynamic to static pipeline
Examples of the pipelines:
https://buildkite.com/elastic/beats/builds/5828
https://buildkite.com/elastic/beats-xpack-libbeat/builds/2673
Related issues
https://github.com/elastic/ingest-dev/issues/1693