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

Receive and use package.version from Elastic Agent #37553

Merged
merged 64 commits into from
Feb 5, 2024

Conversation

AndersonQ
Copy link
Member

@AndersonQ AndersonQ commented Jan 5, 2024

Proposed commit message

receive and report package.version from Elastic Agent

When running in managed mode, under Agent, the components should report the Package Version as their own. This change makes the beats to read the Package Version from the connection info and from the AgentInfo and use it as its own version

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

  • N/A

Related PRs

Use cases

Screenshots

Logs

@AndersonQ AndersonQ added enhancement Team:Elastic-Agent Label for the Agent team backport-skip Skip notification from the automated backport with mergify labels Jan 5, 2024
@AndersonQ AndersonQ self-assigned this Jan 5, 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 5, 2024
Copy link
Contributor

mergify bot commented Jan 5, 2024

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 beats-report-package-version upstream/beats-report-package-version
git merge upstream/main
git push upstream beats-report-package-version

@AndersonQ AndersonQ changed the title wip Receive and use package.version from Elastic Agent Jan 5, 2024
@AndersonQ AndersonQ force-pushed the beats-report-package-version branch 2 times, most recently from 00d6cfa to 9dc4a26 Compare January 5, 2024 14:58
@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 24 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 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: 128 min 37 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

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-08T14:14:47.845+0000

  • Duration: 40 min 51 sec

Test stats 🧪

Test Results
Failed 5
Passed 20780
Skipped 1365
Total 22150

Test errors 5

Expand to view the tests failures

Build&Test / libbeat-goIntegTest / [empty] – TEST-go-integration.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-37553-3-40689c08-60eb-4bef-a597-df707c7737ec/src/github.com/elastic/beats/build/libbeat/build/TEST-go-integration.xml was length 0 
    

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

     Test report file /var/lib/jenkins/workspace/PR-37553-3-4a8be0ad-eae4-4127-9d48-88ae8bd4814c/src/github.com/elastic/beats/build/libbeat/build/TEST-go-unit.xml was length 0 
    

Build&Test / x-pack/filebeat-goIntegTest / [empty] – TEST-go-integration.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-37553-3-5b410b7c-f4c4-48a8-bbde-7fcf9b20a10b/src/github.com/elastic/beats/build/x-pack/filebeat/build/TEST-go-integration.xml was length 0 
    

Build&Test / x-pack/libbeat-unitTest / TestOutputError – github.com/elastic/beats/v7/x-pack/libbeat/management
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestOutputError
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x9bc4b6]
    
    goroutine 293 [running]:
    github.com/elastic/elastic-agent-client/v7/pkg/client.(*clientV2).checkinRoundTrip.func1()
    	/var/lib/jenkins/workspace/PR-37553-3-a87b373e-dad3-418a-a1e8-f79b472d4e61/pkg/mod/github.com/!anderson!q/elastic-agent-client/[email protected]/pkg/client/client_v2.go:469 +0x136
    created by github.com/elastic/elastic-agent-client/v7/pkg/client.(*clientV2).checkinRoundTrip in goroutine 125
    	/var/lib/jenkins/workspace/PR-37553-3-a87b373e-dad3-418a-a1e8-f79b472d4e61/pkg/mod/github.com/!anderson!q/elastic-agent-client/[email protected]/pkg/client/client_v2.go:463 +0x15c
     
    

Build&Test / x-pack/libbeat-goIntegTest / TestOutputError – github.com/elastic/beats/v7/x-pack/libbeat/management
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestOutputError
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x9bc4b6]
    
    goroutine 342 [running]:
    github.com/elastic/elastic-agent-client/v7/pkg/client.(*clientV2).checkinRoundTrip.func1()
    	/var/lib/jenkins/workspace/PR-37553-3-0a063980-08d3-428e-a95c-be9f1782ecf4/pkg/mod/github.com/!anderson!q/elastic-agent-client/[email protected]/pkg/client/client_v2.go:469 +0x136
    created by github.com/elastic/elastic-agent-client/v7/pkg/client.(*clientV2).checkinRoundTrip in goroutine 10
    	/var/lib/jenkins/workspace/PR-37553-3-0a063980-08d3-428e-a95c-be9f1782ecf4/pkg/mod/github.com/!anderson!q/elastic-agent-client/[email protected]/pkg/client/client_v2.go:463 +0x15c
     
    

Steps errors 8

Expand to view the steps failures

filebeat-windows-2022-windows-2022 - mage build unitTest
  • Took 9 min 38 sec . View more details here
  • Description: mage build unitTest
x-pack/libbeat-unitTest - mage build unitTest
  • Took 5 min 51 sec . View more details here
  • Description: mage build unitTest
x-pack/libbeat-unitTest - mage build unitTest
  • Took 1 min 48 sec . View more details here
  • Description: mage build unitTest
x-pack/libbeat-unitTest - mage build unitTest
  • Took 1 min 48 sec . View more details here
  • Description: mage build unitTest
x-pack/libbeat-goIntegTest - mage goIntegTest
  • Took 5 min 6 sec . View more details here
  • Description: mage goIntegTest
x-pack/libbeat-goIntegTest - mage goIntegTest
  • Took 1 min 19 sec . View more details here
  • Description: mage goIntegTest
x-pack/libbeat-goIntegTest - mage goIntegTest
  • Took 1 min 23 sec . View more details here
  • Description: mage goIntegTest
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!)

@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-08T14:46:40.615+0000

  • Duration: 66 min 52 sec

Test stats 🧪

Test Results
Failed 1
Passed 18743
Skipped 1715
Total 20459

Test errors 1

Expand to view the tests failures

Build&Test / x-pack/libbeat-goIntegTest / TestOutputError – github.com/elastic/beats/v7/x-pack/libbeat/management
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestOutputError
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x9bc4b6]
    
    goroutine 325 [running]:
    github.com/elastic/elastic-agent-client/v7/pkg/client.(*clientV2).checkinRoundTrip.func1()
    	/var/lib/jenkins/workspace/PR-37553-4-ccd27f60-d903-4389-95b3-5f1ae92a8c6a/pkg/mod/github.com/!anderson!q/elastic-agent-client/[email protected]/pkg/client/client_v2.go:469 +0x136
    created by github.com/elastic/elastic-agent-client/v7/pkg/client.(*clientV2).checkinRoundTrip in goroutine 308
    	/var/lib/jenkins/workspace/PR-37553-4-ccd27f60-d903-4389-95b3-5f1ae92a8c6a/pkg/mod/github.com/!anderson!q/elastic-agent-client/[email protected]/pkg/client/client_v2.go:463 +0x15c
     
    

Steps errors 5

Expand to view the steps failures

x-pack/filebeat-windows-2022-windows-2022 - mage build unitTest
  • Took 15 min 57 sec . View more details here
  • Description: mage build unitTest
x-pack/libbeat-goIntegTest - mage goIntegTest
  • Took 5 min 17 sec . View more details here
  • Description: mage goIntegTest
x-pack/libbeat-goIntegTest - mage goIntegTest
  • Took 1 min 26 sec . View more details here
  • Description: mage goIntegTest
x-pack/libbeat-goIntegTest - mage goIntegTest
  • Took 1 min 27 sec . View more details here
  • Description: mage goIntegTest
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

🤖 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 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: 161 min 27 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!)

running 'go list' with Go worspaces enabled will report all modules listed on go.work, what would make GetModuleName to fail as it requires 'go list' to return only one module, the agent itself.
@AndersonQ AndersonQ force-pushed the beats-report-package-version branch from 5357c18 to a8db043 Compare January 9, 2024 17:45
@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

  • Start Time: 2024-01-09T17:45:32.075+0000

  • Duration: 164 min 19 sec

Test stats 🧪

Test Results
Failed 0
Passed 28760
Skipped 2015
Total 30775

Steps errors 1

Expand to view the steps failures

Building Beats » Beats Packaging » PR-37553
  • Took 32 min 28 sec . View more details here
  • Description: null

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

@AndersonQ AndersonQ marked this pull request as ready for review January 10, 2024 08:16
@AndersonQ AndersonQ requested review from a team as code owners January 10, 2024 08:16
@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: 166 min 13 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: 62 min 41 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 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

  • Start Time: 2024-01-24T17:25:04.928+0000

  • Duration: 152 min 1 sec

Test stats 🧪

Test Results
Failed 0
Passed 28783
Skipped 2015
Total 30798

Steps errors 5

Expand to view the steps failures

libbeat-goIntegTest - mage goIntegTest
  • Took 16 min 39 sec . View more details here
  • Description: mage goIntegTest
x-pack/filebeat-windows-2016-windows-2016 - mage build unitTest
  • Took 15 min 17 sec . View more details here
  • Description: mage build unitTest
x-pack/filebeat-packaging-linux - mage package
  • Took 11 min 17 sec . View more details here
  • Description: mage package
x-pack/filebeat-packaging-arm-ubuntu-2204-aarch64 - mage package
  • Took 4 min 47 sec . View more details here
  • Description: mage package
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

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

Copy link
Contributor

mergify bot commented Jan 25, 2024

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 beats-report-package-version upstream/beats-report-package-version
git merge upstream/main
git push upstream beats-report-package-version

@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: 182 min 43 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!)

@AndersonQ AndersonQ requested a review from pchila January 31, 2024 14:27
@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

  • Start Time: 2024-01-31T14:44:53.499+0000

  • Duration: 189 min 57 sec

Test stats 🧪

Test Results
Failed 0
Passed 28779
Skipped 2014
Total 30793

Steps errors 1

Expand to view the steps failures

Building Beats » Beats Packaging » PR-37553
  • Took 34 min 40 sec . View more details here
  • Description: null

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

@AndersonQ AndersonQ requested a review from cmacknz February 1, 2024 10:25
@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: 69 min 35 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: 111 min 47 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

💔 Tests 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

  • Start Time: 2024-02-01T13:10:43.098+0000

  • Duration: 129 min 11 sec

Test stats 🧪

Test Results
Failed 1
Passed 28782
Skipped 2014
Total 30797

Test errors 1

Expand to view the tests failures

Build&Test / x-pack/filebeat-goIntegTest / TestAgentPackageVersionOnStartUpInfo – github.com/elastic/beats/v7/x-pack/filebeat/tests/integration
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestAgentPackageVersionOnStartUpInfo
        managerV2_test.go:659: 
            	Error Trace:	/var/lib/jenkins/workspace/PR-37553-43-f5afd963-177f-491d-9b5e-43ad22fe879c/src/github.com/elastic/beats/x-pack/filebeat/tests/integration/managerV2_test.go:659
            	Error:      	Condition never satisfied
            	Test:       	TestAgentPackageVersionOnStartUpInfo
            	Messages:   	no event was produced: could not open file "filebeat-20240201.ndjson"
        framework.go:135: Last 0 bytes of stderr:
        framework.go:141: Last 0 bytes of stdout:
        framework.go:153: Last 2048 bytes of /var/lib/jenkins/workspace/PR-37553-43-f5afd963-177f-491d-9b5e-43ad22fe879c/src/github.com/elastic/beats/x-pack/filebeat/build/integration-tests/TestAgentPackageVersionOnStartUpInfo445146920/filebeat-20240201.ndjson:
            ion":"github.com/elastic/beats/v7/filebeat/input.(*Runner).Run","file.name":"input/input.go","file.line":134},"message":"input ticker stopped","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-01T13:47:36.572Z","log.logger":"input.harvester","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/log.(*Harvester).Run","file.name":"log/harvester.go","file.line":338},"message":"Reader was closed. Closing.","service.name":"filebeat","input_id":"1bd81ddf-6e57-41e8-83cb-8d681132c2f6","source_file":"/var/lib/jenkins/workspace/PR-37553-43-f5afd963-177f-491d-9b5e-43ad22fe879c/src/github.com/elastic/beats/x-pack/filebeat/build/integration-tests/TestAgentPackageVersionOnStartUpInfo445146920/logs-to-ingest.log","state_id":"native::4987702-2049","finished":false,"os_id":"4987702-2049","harvester_id":"9ccbd8b1-feff-4a2c-a468-b5aaa902f886","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-01T13:47:36.572Z","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).Stop","file.name":"beater/crawler.go","file.line":155},"message":"Stopping Crawler","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-01T13:47:36.572Z","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).Stop","file.name":"beater/crawler.go","file.line":165},"message":"Stopping 0 inputs","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-01T13:47:36.572Z","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).Stop","file.name":"beater/crawler.go","file.line":185},"message":"Crawler stopped","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-01T13:47:36.572Z","log.logger":"registrar","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/registrar.(*Registrar).Stop","file.name":"registrar/registrar.go","file.line":130},"message":"Stopping Registrar","service.name":"filebeat","ecs.version":"1.6.0"}
        framework.go:443: Temporary directory saved: /var/lib/jenkins/workspace/PR-37553-43-f5afd963-177f-491d-9b5e-43ad22fe879c/src/github.com/elastic/beats/x-pack/filebeat/build/integration-tests/TestAgentPackageVersionOnStartUpInfo445146920
    --- FAIL: TestAgentPackageVersionOnStartUpInfo (30.47s)
     
    

Steps errors 6

Expand to view the steps failures

isToolInstalled
  • Took 1 min 45 sec . View more details here
  • Description: tar --version >/dev/null
Cleanup
  • Took 0 min 0 sec . View more details here
  • Description: rm source.tgz
x-pack/filebeat-goIntegTest - mage goIntegTest
  • Took 6 min 13 sec . View more details here
  • Description: mage goIntegTest
x-pack/filebeat-goIntegTest - mage goIntegTest
  • Took 3 min 40 sec . View more details here
  • Description: mage goIntegTest
x-pack/filebeat-goIntegTest - mage goIntegTest
  • Took 3 min 36 sec . View more details here
  • Description: mage goIntegTest
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: untar: step failed with error Remote call on beats-ci-immutable-ubuntu-2204-1706793737344452283 failed

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Genuine test errors 1

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Build&Test / x-pack/filebeat-goIntegTest / TestAgentPackageVersionOnStartUpInfo – github.com/elastic/beats/v7/x-pack/filebeat/tests/integration

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

Copy link
Member

@cmacknz cmacknz left a comment

Choose a reason for hiding this comment

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

Thanks!

@elasticmachine
Copy link
Collaborator

💔 Tests 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

  • Start Time: 2024-02-02T16:00:25.670+0000

  • Duration: 129 min 44 sec

Test stats 🧪

Test Results
Failed 1
Passed 28780
Skipped 2014
Total 30795

Test errors 1

Expand to view the tests failures

Build&Test / x-pack/filebeat-goIntegTest / TestAgentPackageVersionOnStartUpInfo – github.com/elastic/beats/v7/x-pack/filebeat/tests/integration
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestAgentPackageVersionOnStartUpInfo
        managerV2_test.go:659: 
            	Error Trace:	/var/lib/jenkins/workspace/PR-37553-44-f642efc7-c3c9-48d5-bd4a-edf7c51aa659/src/github.com/elastic/beats/x-pack/filebeat/tests/integration/managerV2_test.go:659
            	Error:      	Condition never satisfied
            	Test:       	TestAgentPackageVersionOnStartUpInfo
            	Messages:   	no event was produced: could not open file "filebeat-20240202.ndjson"
        framework.go:135: Last 0 bytes of stderr:
        framework.go:141: Last 0 bytes of stdout:
        framework.go:153: Last 3483 bytes of /var/lib/jenkins/workspace/PR-37553-44-f642efc7-c3c9-48d5-bd4a-edf7c51aa659/src/github.com/elastic/beats/x-pack/filebeat/build/integration-tests/TestAgentPackageVersionOnStartUpInfo1726821602/filebeat-20240202.ndjson:
            atency":{"histogram":{"count":20,"max":0,"mean":0,"median":0,"min":0,"p75":0,"p95":0,"p99":0,"p999":0,"stddev":0}}}},"pipeline":{"clients":1,"events":{"active":9,"filtered":1,"published":29,"total":30},"queue":{"acked":20,"max_events":3200}}},"registrar":{"states":{"current":1,"update":21},"writes":{"success":3,"total":3}},"system":{"cpu":{"cores":8},"load":{"1":6.78,"15":4.92,"5":7.35,"norm":{"1":0.8475,"15":0.615,"5":0.9188}}}},"ecs.version":"1.6.0"}}
            {"log.level":"info","@timestamp":"2024-02-02T16:37:39.534Z","log.logger":"service","log.origin":{"function":"github.com/elastic/elastic-agent-libs/service.HandleSignals.func1","file.name":"service/service.go","file.line":52},"message":"Received signal \"interrupt\", stopping","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-02T16:37:39.534Z","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*Filebeat).Stop","file.name":"beater/filebeat.go","file.line":484},"message":"Stopping filebeat","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-02T16:37:39.534Z","log.logger":"centralmgmt","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cfgfile.(*RunnerList).Stop","file.name":"cfgfile/list.go","file.line":188},"message":"Stopping 1 runners ...","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-02T16:37:39.534Z","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input.(*Runner).Run","file.name":"input/input.go","file.line":134},"message":"input ticker stopped","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-02T16:37:39.534Z","log.logger":"input.harvester","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/log.(*Harvester).Run","file.name":"log/harvester.go","file.line":338},"message":"Reader was closed. Closing.","service.name":"filebeat","input_id":"bc41fb31-37a3-407b-82a1-ec4ec207dd7f","source_file":"/var/lib/jenkins/workspace/PR-37553-44-f642efc7-c3c9-48d5-bd4a-edf7c51aa659/src/github.com/elastic/beats/x-pack/filebeat/build/integration-tests/TestAgentPackageVersionOnStartUpInfo1726821602/logs-to-ingest.log","state_id":"native::3435892-2049","finished":false,"os_id":"3435892-2049","harvester_id":"0f3e2d0a-013b-499b-8464-a02b80fc838f","ecs.version":"1.6.0"}
            {"log.level":"error","@timestamp":"2024-02-02T16:37:39.534Z","log.logger":"centralmgmt.V2-manager","log.origin":{"function":"github.com/elastic/beats/v7/x-pack/libbeat/management.(*BeatV2Manager).watchErrChan","file.name":"management/managerV2.go","file.line":451},"message":"elastic-agent-client error: rpc error: code = Unavailable desc = error reading from server: EOF","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"error","@timestamp":"2024-02-02T16:37:39.534Z","log.logger":"centralmgmt.V2-manager","log.origin":{"function":"github.com/elastic/beats/v7/x-pack/libbeat/management.(*BeatV2Manager).watchErrChan","file.name":"management/managerV2.go","file.line":451},"message":"elastic-agent-client error: rpc error: code = Unavailable desc = error reading from server: EOF","service.name":"filebeat","ecs.version":"1.6.0"}
            {"log.level":"info","@timestamp":"2024-02-02T16:37:39.534Z","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).Stop","file.name":"beater/crawler.go","file.line":155},"message":"Stopping Crawler","service.name":"filebeat","ecs.version":"1.6.0"}
        framework.go:443: Temporary directory saved: /var/lib/jenkins/workspace/PR-37553-44-f642efc7-c3c9-48d5-bd4a-edf7c51aa659/src/github.com/elastic/beats/x-pack/filebeat/build/integration-tests/TestAgentPackageVersionOnStartUpInfo1726821602
    --- FAIL: TestAgentPackageVersionOnStartUpInfo (30.30s)
     
    

Steps errors 6

Expand to view the steps failures

filebeat-goIntegTest - mage goIntegTest
  • Took 5 min 8 sec . View more details here
  • Description: mage goIntegTest
x-pack/filebeat-goIntegTest - mage goIntegTest
  • Took 7 min 40 sec . View more details here
  • Description: mage goIntegTest
x-pack/filebeat-goIntegTest - mage goIntegTest
  • Took 3 min 45 sec . View more details here
  • Description: mage goIntegTest
x-pack/filebeat-goIntegTest - mage goIntegTest
  • Took 3 min 44 sec . View more details here
  • Description: mage goIntegTest
x-pack/filebeat-windows-2022-windows-2022 - mage build unitTest
  • Took 15 min 58 sec . View more details here
  • Description: mage build unitTest
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Genuine test errors 1

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Build&Test / x-pack/filebeat-goIntegTest / TestAgentPackageVersionOnStartUpInfo – github.com/elastic/beats/v7/x-pack/filebeat/tests/integration

🤖 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: 13 min 23 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: 33 min 19 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 Failed

Failed CI Steps

History

cc @AndersonQ

@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: 179 min 55 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!)

@AndersonQ AndersonQ merged commit 84502d2 into elastic:main Feb 5, 2024
130 of 132 checks passed
@AndersonQ AndersonQ deleted the beats-report-package-version branch February 5, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-skip Skip notification from the 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.

4 participants