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

Auditbeat pipeline migration to Buildkite #37668

Merged
merged 21 commits into from
Feb 6, 2024

Conversation

oakrizan
Copy link
Contributor

@oakrizan oakrizan commented Jan 18, 2024

Proposed commit message

Migration of auditbeat pipeline to Buildkite
Phase according to migration plan: 1
Phase scope:
Migrate separate Jenkinsfiles/Groovy scripts to Buildkite pipelines with following scope:

  1. Execution conditions - only:
  • changeset
  • trigger comments
  1. Agents - migrate those available both Jenkinsfile and those that are available in Buildkite
  2. Packaging - as dry-run (without publishing DRA, since it's highly related to execution conditions)

Link to Bildkite branch builds: https://buildkite.com/elastic/auditbeat/builds?branch=oakrizan%3Aauditbeat-pipeline-migration

Metricbeat build fixes are done in PR: #37725

Checklist

  • 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.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@oakrizan oakrizan added enhancement Team:Elastic-Agent Label for the Agent team backport-7.17 Automated backport to the 7.17 branch with mergify backport-v8.11.0 Automated backport with mergify labels Jan 18, 2024
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jan 18, 2024
@oakrizan oakrizan force-pushed the auditbeat-pipeline-migration branch 2 times, most recently from f95ab5e to 02cc1f7 Compare January 18, 2024 14:17
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

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

Expand to view the summary

Build stats

  • Start Time: 2024-01-18T14:07:49.303+0000

  • Duration: 15 min 10 sec

Test stats 🧪

Test Results
Failed 0
Passed 3
Skipped 0
Total 3

Steps errors 1

Expand to view the steps failures

Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'org.jenkinsci.plugins.workflow.steps.FlowInterruptedException'

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

@oakrizan oakrizan force-pushed the auditbeat-pipeline-migration branch from 02cc1f7 to a1146c9 Compare January 18, 2024 14:23
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

Either there was a build timeout or someone aborted the build.

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

Expand to view the summary

Build stats

  • Duration: 11 min 5 sec

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

@elasticmachine
Copy link
Collaborator

❕ Build Aborted

Either there was a build timeout or someone aborted the build.

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

Expand to view the summary

Build stats

  • Duration: 28 min 29 sec

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

@oakrizan oakrizan force-pushed the auditbeat-pipeline-migration branch from a1146c9 to 5bf1b41 Compare January 18, 2024 14:35
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

Either there was a build timeout or someone aborted the build.

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

Expand to view the summary

Build stats

  • Duration: 17 min 9 sec

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

@oakrizan oakrizan force-pushed the auditbeat-pipeline-migration branch 2 times, most recently from 2d39654 to c19ec72 Compare January 18, 2024 14:52
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

Either there was a build timeout or someone aborted the build.

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

Expand to view the summary

Build stats

  • Duration: 8 min 58 sec

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

@elasticmachine
Copy link
Collaborator

❕ Build Aborted

Either there was a build timeout or someone aborted the build.

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

Expand to view the summary

Build stats

  • Duration: 25 min 30 sec

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

@oakrizan oakrizan force-pushed the auditbeat-pipeline-migration branch from c19ec72 to d48e754 Compare January 18, 2024 15:10
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

Either there was a build timeout or someone aborted the build.

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

Expand to view the summary

Build stats

  • Duration: 25 min 43 sec

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

@oakrizan oakrizan force-pushed the auditbeat-pipeline-migration branch 2 times, most recently from 974eff5 to 10682b2 Compare January 18, 2024 15:35
@elasticmachine
Copy link
Collaborator

💔 Build Failed

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: 7 min 30 sec

Pipeline error 1

This error is likely related to the pipeline itself. Click here
and then you will see the error (either incorrect syntax or an invalid configuration).

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

@elasticmachine
Copy link
Collaborator

❕ Build Aborted

Either there was a build timeout or someone aborted the build.

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

Expand to view the summary

Build stats

  • Duration: 29 min 18 sec

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

@elasticmachine
Copy link
Collaborator

💚 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: 134 min 49 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!)

@oakrizan oakrizan force-pushed the auditbeat-pipeline-migration branch 2 times, most recently from 702a8a6 to c018d6d Compare January 19, 2024 13:52
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

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

Expand to view the summary

Build stats

  • Start Time: 2024-01-19T13:43:15.169+0000

  • Duration: 15 min 11 sec

Test stats 🧪

Test Results
Failed 1
Passed 3
Skipped 0
Total 4

Test errors 1

Expand to view the tests failures

Build&Test / filebeat-unitTest / [empty] – TEST-go-unit.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-37668-11-bc7fccea-97e9-4aa0-8c06-19b6a65aa220/src/github.com/elastic/beats/build/filebeat/build/TEST-go-unit.xml was length 0 
    

Steps errors 1

Expand to view the steps failures

Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'org.jenkinsci.plugins.workflow.steps.FlowInterruptedException'

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

@oakrizan oakrizan force-pushed the auditbeat-pipeline-migration branch from c018d6d to 2789cf7 Compare January 19, 2024 14:06
@oakrizan oakrizan force-pushed the auditbeat-pipeline-migration branch from 5249fb1 to 72d0ba6 Compare February 6, 2024 09:09
@oakrizan oakrizan marked this pull request as ready for review February 6, 2024 09:11
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

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

.buildkite/auditbeat/scripts/unit-tests-win.ps1 Outdated Show resolved Hide resolved
@oakrizan oakrizan requested review from v1v, rdner and jlind23 February 6, 2024 10:33
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @oakrizan

@oakrizan oakrizan merged commit 31819ec into elastic:main Feb 6, 2024
28 of 29 checks passed
mergify bot pushed a commit that referenced this pull request Feb 6, 2024
* wip: getting GH message

* added test scripts

* added windows tests

* added packaging step

* updated packaging execution conditions

* win-test failure: updated artifact path

* pr fixes

* changed group_test.go

* moved env setup to separate script

* added dynamic step for packaging

* added tests and scrosscompile scripts for auditbeat

* fixes for crosscompile and macos steps

* added env vars for linux packaging

* added env vars for linux packaging

* enabled packaging step

* added docker login

* debugging arm packaing

* enabled synamic packaging step

* updated packaging group steps

* fixed conflicts

* updated win test script

(cherry picked from commit 31819ec)

# Conflicts:
#	.buildkite/env-scripts/env.sh
#	.buildkite/env-scripts/linux-env.sh
#	.buildkite/env-scripts/util.sh
#	.buildkite/env-scripts/win-env.sh
#	.buildkite/filebeat/filebeat-pipeline.yml
#	.buildkite/filebeat/scripts/integration-gotests.sh
#	.buildkite/filebeat/scripts/integration-pytests.sh
#	.buildkite/filebeat/scripts/package-step.sh
#	.buildkite/filebeat/scripts/package.sh
#	.buildkite/filebeat/scripts/unit-tests.sh
mergify bot pushed a commit that referenced this pull request Feb 6, 2024
* wip: getting GH message

* added test scripts

* added windows tests

* added packaging step

* updated packaging execution conditions

* win-test failure: updated artifact path

* pr fixes

* changed group_test.go

* moved env setup to separate script

* added dynamic step for packaging

* added tests and scrosscompile scripts for auditbeat

* fixes for crosscompile and macos steps

* added env vars for linux packaging

* added env vars for linux packaging

* enabled packaging step

* added docker login

* debugging arm packaing

* enabled synamic packaging step

* updated packaging group steps

* fixed conflicts

* updated win test script

(cherry picked from commit 31819ec)
oakrizan added a commit that referenced this pull request Feb 6, 2024
* wip: getting GH message

* added test scripts

* added windows tests

* added packaging step

* updated packaging execution conditions

* win-test failure: updated artifact path

* pr fixes

* changed group_test.go

* moved env setup to separate script

* added dynamic step for packaging

* added tests and scrosscompile scripts for auditbeat

* fixes for crosscompile and macos steps

* added env vars for linux packaging

* added env vars for linux packaging

* enabled packaging step

* added docker login

* debugging arm packaing

* enabled synamic packaging step

* updated packaging group steps

* fixed conflicts

* updated win test script

(cherry picked from commit 31819ec)

# Conflicts:
#	.buildkite/env-scripts/env.sh
#	.buildkite/env-scripts/linux-env.sh
#	.buildkite/env-scripts/util.sh
#	.buildkite/env-scripts/win-env.sh
#	.buildkite/filebeat/filebeat-pipeline.yml
#	.buildkite/filebeat/scripts/integration-gotests.sh
#	.buildkite/filebeat/scripts/integration-pytests.sh
#	.buildkite/filebeat/scripts/package-step.sh
#	.buildkite/filebeat/scripts/package.sh
#	.buildkite/filebeat/scripts/unit-tests.sh
oakrizan added a commit that referenced this pull request Feb 7, 2024
* wip: getting GH message

* added test scripts

* added windows tests

* added packaging step

* updated packaging execution conditions

* win-test failure: updated artifact path

* pr fixes

* changed group_test.go

* moved env setup to separate script

* added dynamic step for packaging

* added tests and scrosscompile scripts for auditbeat

* fixes for crosscompile and macos steps

* added env vars for linux packaging

* added env vars for linux packaging

* enabled packaging step

* added docker login

* debugging arm packaing

* enabled synamic packaging step

* updated packaging group steps

* fixed conflicts

* updated win test script

(cherry picked from commit 31819ec)
oakrizan added a commit that referenced this pull request Feb 7, 2024
* wip: getting GH message

* added test scripts

* added windows tests

* added packaging step

* updated packaging execution conditions

* win-test failure: updated artifact path

* pr fixes

* changed group_test.go

* moved env setup to separate script

* added dynamic step for packaging

* added tests and scrosscompile scripts for auditbeat

* fixes for crosscompile and macos steps

* added env vars for linux packaging

* added env vars for linux packaging

* enabled packaging step

* added docker login

* debugging arm packaing

* enabled synamic packaging step

* updated packaging group steps

* fixed conflicts

* updated win test script

(cherry picked from commit 31819ec)
oakrizan added a commit that referenced this pull request Feb 7, 2024
* wip: getting GH message

* added test scripts

* added windows tests

* added packaging step

* updated packaging execution conditions

* win-test failure: updated artifact path

* pr fixes

* changed group_test.go

* moved env setup to separate script

* added dynamic step for packaging

* added tests and scrosscompile scripts for auditbeat

* fixes for crosscompile and macos steps

* added env vars for linux packaging

* added env vars for linux packaging

* enabled packaging step

* added docker login

* debugging arm packaing

* enabled synamic packaging step

* updated packaging group steps

* fixed conflicts

* updated win test script

(cherry picked from commit 31819ec)

Co-authored-by: Olga Naydyonock <olga.naidjonoka@elastic.co>
oakrizan added a commit that referenced this pull request Feb 7, 2024
* wip: getting GH message

* added test scripts

* added windows tests

* added packaging step

* updated packaging execution conditions

* win-test failure: updated artifact path

* pr fixes

* changed group_test.go

* moved env setup to separate script

* added dynamic step for packaging

* added tests and scrosscompile scripts for auditbeat

* fixes for crosscompile and macos steps

* added env vars for linux packaging

* added env vars for linux packaging

* enabled packaging step

* added docker login

* debugging arm packaing

* enabled synamic packaging step

* updated packaging group steps

* fixed conflicts

* updated win test script

(cherry picked from commit 31819ec)

Co-authored-by: Olga Naydyonock <olga.naidjonoka@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7.17 Automated backport to the 7.17 branch with mergify backport-v8.12.0 Automated backport with mergify enhancement Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants