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

[8.9](backport #3046) Add buildkite pipeline to build elastic-agent binary artifacts #3129

Closed
wants to merge 1 commit into from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 26, 2023

This is an automatic backport of pull request #3046 done by Mergify.
Cherry-pick of 30dff79 has failed:

On branch mergify/bp/8.9/pr-3046
Your branch is up to date with 'origin/8.9'.

You are currently cherry-picking commit 30dff79483.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   .buildkite/hooks/pre-command
	modified:   .buildkite/hooks/pre-exit
	new file:   .buildkite/scripts/bootstrap.sh
	deleted:    .buildkite/scripts/integration_tests.sh
	new file:   .buildkite/scripts/steps/build-agent-core.sh
	new file:   .buildkite/scripts/steps/dra-publish.sh
	new file:   .buildkite/scripts/steps/integration_tests.sh
	modified:   Makefile

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   .buildkite/pipeline.elastic-agent-binary-dra.yml
	both modified:   .buildkite/pipeline.yml
	both modified:   catalog-info.yaml

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* Add DRA pipeline

* Fix mage and go check

* Force trigger

* Change permissions

* source bootstrap

* ignore existing folder

* Generate dependencies report

* Split in various steps and move creds to pre-command

* Fix script name

* Use agent to upload artifacts

* Expose env var to force publish for testing

* Generalize dra-publish.sh

* Use version for dependencies file

* Fix dry run

* Run test dra publish

* Fix version

* Only upload distributions

* Fix glob

* Only add spanshot on build

* Fix permissions on downloaded artifacts

* Remove test env vars

* Stop calling buildkite-agent in scripts

* Add vars to test

* Add correct command to staging

* creat local var

* Create local var

* Remove testing force var

* Remove test vars

(cherry picked from commit 30dff79)

# Conflicts:
#	.buildkite/pipeline.elastic-agent-binary-dra.yml
#	.buildkite/pipeline.yml
#	catalog-info.yaml
@mergify mergify bot requested a review from a team as a code owner July 26, 2023 09:49
@mergify mergify bot added backport conflicts There is a conflict in the backported pull request labels Jul 26, 2023
@mergify mergify bot requested review from AndersonQ and michalpristas and removed request for a team July 26, 2023 09:49
@elasticmachine
Copy link
Contributor

💔 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: 2023-07-26T09:50:04.158+0000

  • Duration: 25 min 7 sec

Test stats 🧪

Test Results
Failed 2
Passed 5977
Skipped 23
Total 6002

Test errors 2

Expand to view the tests failures

Test / Matrix - PLATFORM = 'aws && aarch64 && gobld/diskSizeGb:200' / Test / TestActionDispatcher/Cancel_queued_action – github.com/elastic/elastic-agent/internal/pkg/agent/application/dispatcher
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestActionDispatcher/Cancel_queued_action
        dispatcher_test.go:259: PASS:	Handle(string,string,string)
        dispatcher_test.go:260: FAIL:	Save()
            		at: [/var/lib/jenkins/workspace/_agent_elastic-agent-mbp_PR-3129/src/github.com/elastic/elastic-agent/internal/pkg/agent/application/dispatcher/dispatcher_test.go:236]
        dispatcher_test.go:260: FAIL:	DequeueActions()
            		at: [/var/lib/jenkins/workspace/_agent_elastic-agent-mbp_PR-3129/src/github.com/elastic/elastic-agent/internal/pkg/agent/application/dispatcher/dispatcher_test.go:237]
        dispatcher_test.go:260: FAIL: 0 out of 2 expectation(s) were met.
            	The code you are testing needs to make 2 more call(s).
            	at: [/var/lib/jenkins/workspace/_agent_elastic-agent-mbp_PR-3129/src/github.com/elastic/elastic-agent/internal/pkg/agent/application/dispatcher/dispatcher_test.go:260]
        --- FAIL: TestActionDispatcher/Cancel_queued_action (0.00s)
     
    

Test / Matrix - PLATFORM = 'aws && aarch64 && gobld/diskSizeGb:200' / Test / TestActionDispatcher – github.com/elastic/elastic-agent/internal/pkg/agent/application/dispatcher
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestActionDispatcher
    --- FAIL: TestActionDispatcher (0.45s)
     
    

Steps errors 2

Expand to view the steps failures

Go unitTest
  • Took 5 min 59 sec . View more details here
  • Description: mage unitTest
Checks if running on a Unix-like node
  • Took 0 min 0 sec . View more details here
  • Description: 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 2

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

  • Name: Test / Matrix - PLATFORM = 'aws && aarch64 && gobld/diskSizeGb:200' / Test / TestActionDispatcher/Cancel_queued_action – github.com/elastic/elastic-agent/internal/pkg/agent/application/dispatcher
  • Name: Test / Matrix - PLATFORM = 'aws && aarch64 && gobld/diskSizeGb:200' / Test / TestActionDispatcher – github.com/elastic/elastic-agent/internal/pkg/agent/application/dispatcher

🤖 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.

  • run integration tests : Run the Elastic Agent Integration tests.

  • run end-to-end tests : Generate the packages and run the E2E Tests.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@elasticmachine
Copy link
Contributor

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 98.684% (75/76) 👍
Files 67.3% (177/263) 👍
Classes 66.802% (328/491) 👍
Methods 53.481% (1014/1896) 👍
Lines 39.317% (11558/29397) 👎 -0.024
Conditionals 100.0% (0/0) 💚

@pchila
Copy link
Member

pchila commented Jul 27, 2023

After checking with @jlind23 , we are closing this backport as it should not be needed

@pchila pchila closed this Jul 27, 2023
@mergify mergify bot deleted the mergify/bp/8.9/pr-3046 branch July 27, 2023 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport conflicts There is a conflict in the backported pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants