Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

cli: enable loading default profiles turnkey (backport #943) #1074

Closed
wants to merge 2 commits into from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 22, 2021

This is an automatic backport of pull request #943 done by Mergify.

Cherry-pick of ae5b9fe has failed:

On branch mergify/bp/7.x/pr-943
Your branch is up to date with 'origin/7.x'.

You are currently cherry-picking commit ae5b9fe3.
  (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:   cli/NOTICE.txt
	modified:   cli/cmd/deploy.go
	modified:   cli/cmd/run.go
	modified:   cli/cmd/stop.go
	modified:   cli/cmd/sync.go
	renamed:    e2e/_suites/fleet/configurations/kibana.config.yml -> cli/config/compose/profiles/fleet/configurations/kibana.config.yml
	modified:   cli/config/compose/profiles/fleet/docker-compose.yml
	modified:   cli/config/config.go

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   cli/go.mod
	deleted by us:   cli/go.sum
	both modified:   e2e/_suites/fleet/ingest_manager_test.go

To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/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.io/

* cli: enable loading default profiles turnkey

Fixes #933
* update NOTICE
* Fix additional lint issues in ingest_manager_test
* Cleanup comment and trace log in GetComposeFile
* Provide better trace feedback if missing docker-compose
* Update cli/config/config.go
* chore: add back traces when extracting the files from the box (#946)
* fix: use a more comprehensive initialisation method for configs
   As go init() method is not deterministic, I found that the logger init was
   not called at the right time. With change we ensure that the Init is:
   1) called first
   2) existing it the config was already populated
* chore: add back traces when extracting the files from the box

Signed-off-by: Adam Stokes <[email protected]>
Co-authored-by: Manuel de la Peña <[email protected]>
(cherry picked from commit ae5b9fe)

# Conflicts:
#	cli/go.mod
#	cli/go.sum
#	e2e/_suites/fleet/ingest_manager_test.go
@mergify mergify bot added the conflicts There is a conflict in the backported pull request label Apr 22, 2021
@elasticmachine
Copy link
Contributor

elasticmachine commented Apr 22, 2021

💔 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

Expand to view the summary

Build stats

  • Build Cause: Pull request #1074 updated

  • Start Time: 2021-04-22T09:37:02.952+0000

  • Duration: 29 min 48 sec

  • Commit: 790d499

Trends 🧪

Image of Build Times

Steps errors 4

Expand to view the steps failures

Install dependencies
  • Took 0 min 7 sec . View more details on here
  • Description: .ci/scripts/install-dependencies.sh
Install dependencies
  • Took 0 min 2 sec . View more details on here
  • Description: .ci/scripts/install-dependencies.sh
Build and test
  • Took 1 min 52 sec . View more details on here
  • Description: .ci/scripts/build-test.sh
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-04-22T10:00:10.607Z] Archiving artifacts script returned exit code 2

Log output

Expand to view the last 100 lines of log output

[2021-04-22T10:05:30.142Z] go: downloading github.com/mitchellh/go-homedir v1.1.0
[2021-04-22T10:05:30.142Z] go: finding module for package github.com/elastic/e2e-testing/internal/sanitizer
[2021-04-22T10:05:30.142Z] go: downloading github.com/spf13/cobra v0.0.5
[2021-04-22T10:05:30.142Z] go: finding module for package github.com/elastic/e2e-testing/internal/compose
[2021-04-22T10:05:30.142Z] go: downloading gopkg.in/src-d/go-git.v4 v4.13.1
[2021-04-22T10:05:30.142Z] go: downloading github.com/stretchr/testify v1.6.1
[2021-04-22T10:05:30.142Z] go: downloading github.com/lann/builder v0.0.0-20180802200727-47ae307949d0
[2021-04-22T10:05:30.142Z] go: downloading gopkg.in/yaml.v2 v2.3.0
[2021-04-22T10:05:30.142Z] go: finding module for package github.com/elastic/e2e-testing/internal/git
[2021-04-22T10:05:30.142Z] go: downloading github.com/elastic/e2e-testing v1.99.1
[2021-04-22T10:05:30.142Z] go: downloading github.com/Flaque/filet v0.0.0-20190209224823-fc4d33cfcf93
[2021-04-22T10:05:30.142Z] go: downloading github.com/pmezard/go-difflib v1.0.0
[2021-04-22T10:05:30.142Z] go: downloading github.com/sirupsen/logrus v1.4.2
[2021-04-22T10:05:30.142Z] go: downloading github.com/davecgh/go-spew v1.1.1
[2021-04-22T10:05:30.142Z] go: downloading github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0
[2021-04-22T10:05:30.142Z] go: downloading github.com/inconshreveable/mousetrap v1.0.0
[2021-04-22T10:05:30.142Z] go: finding module for package github.com/elastic/e2e-testing/internal/io
[2021-04-22T10:05:30.142Z] go: downloading github.com/spf13/pflag v1.0.5
[2021-04-22T10:05:30.143Z] go: finding module for package github.com/elastic/e2e-testing/internal/shell
[2021-04-22T10:05:30.143Z] go: downloading golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4
[2021-04-22T10:05:30.143Z] go: downloading github.com/gobuffalo/envy v1.7.1
[2021-04-22T10:05:30.403Z] go: downloading github.com/gobuffalo/packd v0.3.0
[2021-04-22T10:05:30.403Z] go: downloading github.com/joho/godotenv v1.3.0
[2021-04-22T10:05:30.403Z] go: downloading github.com/gobuffalo/logger v1.0.1
[2021-04-22T10:05:30.403Z] go: downloading gopkg.in/src-d/go-billy.v4 v4.3.2
[2021-04-22T10:05:30.403Z] go: downloading github.com/sergi/go-diff v1.1.0
[2021-04-22T10:05:30.403Z] go: downloading golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
[2021-04-22T10:05:30.403Z] go: downloading golang.org/x/net v0.0.0-20201021035429-f5854403a974
[2021-04-22T10:05:30.403Z] go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.2
[2021-04-22T10:05:30.403Z] go: downloading github.com/emirpasic/gods v1.12.0
[2021-04-22T10:05:30.664Z] go: downloading github.com/xanzy/ssh-agent v0.2.1
[2021-04-22T10:05:30.664Z] go: downloading github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd
[2021-04-22T10:05:30.664Z] go: downloading gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
[2021-04-22T10:05:30.664Z] go: downloading github.com/rogpeppe/go-internal v1.5.0
[2021-04-22T10:05:30.664Z] go: downloading github.com/spf13/afero v1.2.2
[2021-04-22T10:05:30.664Z] go: downloading github.com/src-d/gcfg v1.4.0
[2021-04-22T10:05:30.664Z] go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
[2021-04-22T10:05:30.664Z] go: downloading gopkg.in/warnings.v0 v0.1.2
[2021-04-22T10:05:30.664Z] go: downloading golang.org/x/text v0.3.3
[2021-04-22T10:05:31.603Z] go: finding module for package github.com/elastic/e2e-testing/internal/git
[2021-04-22T10:05:31.603Z] go: finding module for package github.com/elastic/e2e-testing/internal/compose
[2021-04-22T10:05:31.603Z] go: finding module for package github.com/elastic/e2e-testing/internal/sanitizer
[2021-04-22T10:05:31.603Z] go: finding module for package github.com/elastic/e2e-testing/internal/io
[2021-04-22T10:05:31.603Z] go: finding module for package github.com/elastic/e2e-testing/internal/shell
[2021-04-22T10:05:31.603Z] cmd/deploy.go:11:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/compose
[2021-04-22T10:05:31.603Z] cmd/sync.go:16:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/git
[2021-04-22T10:05:31.603Z] config/config.go:15:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/io
[2021-04-22T10:05:31.603Z] cmd/sync.go:18:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/sanitizer
[2021-04-22T10:05:31.603Z] config/config.go:16:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/shell
[2021-04-22T10:05:31.603Z] Makefile:26: recipe for target 'install' failed
[2021-04-22T10:05:31.603Z] make: *** [install] Error 1
[2021-04-22T10:05:31.603Z] make: Leaving directory '/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1074/src/github.com/elastic/e2e-testing/cli'
[2021-04-22T10:05:31.618Z] Sleeping for 5 sec
[2021-04-22T10:05:36.620Z] ERROR: script returned exit code 2
[2021-04-22T10:05:36.620Z] Retrying
[2021-04-22T10:05:36.934Z] + .ci/scripts/install-dependencies.sh
[2021-04-22T10:05:36.934Z] + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
[2021-04-22T10:05:36.935Z] ++ go env GOPATH
[2021-04-22T10:05:36.935Z] + sh -s -- -b /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1074/bin v1.34.1
[2021-04-22T10:05:36.935Z] golangci/golangci-lint info checking GitHub for tag 'v1.34.1'
[2021-04-22T10:05:36.935Z] golangci/golangci-lint info found version: 1.34.1 for v1.34.1/linux/amd64
[2021-04-22T10:05:37.876Z] golangci/golangci-lint info installed /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1074/bin/golangci-lint
[2021-04-22T10:05:37.876Z] + go get -v golang.org/x/lint/golint
[2021-04-22T10:05:38.136Z] go: found golang.org/x/lint/golint in golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5
[2021-04-22T10:05:38.397Z] + make -C cli install
[2021-04-22T10:05:38.397Z] make: Entering directory '/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1074/src/github.com/elastic/e2e-testing/cli'
[2021-04-22T10:05:38.397Z] go get -v -t ./...
[2021-04-22T10:05:38.397Z] go: finding module for package github.com/elastic/e2e-testing/internal/shell
[2021-04-22T10:05:38.397Z] go: finding module for package github.com/elastic/e2e-testing/internal/io
[2021-04-22T10:05:38.397Z] go: finding module for package github.com/elastic/e2e-testing/internal/compose
[2021-04-22T10:05:38.397Z] go: finding module for package github.com/elastic/e2e-testing/internal/git
[2021-04-22T10:05:38.397Z] go: finding module for package github.com/elastic/e2e-testing/internal/sanitizer
[2021-04-22T10:05:38.657Z] go: finding module for package github.com/elastic/e2e-testing/internal/shell
[2021-04-22T10:05:38.657Z] go: finding module for package github.com/elastic/e2e-testing/internal/git
[2021-04-22T10:05:38.657Z] go: finding module for package github.com/elastic/e2e-testing/internal/compose
[2021-04-22T10:05:38.657Z] go: finding module for package github.com/elastic/e2e-testing/internal/io
[2021-04-22T10:05:38.657Z] go: finding module for package github.com/elastic/e2e-testing/internal/sanitizer
[2021-04-22T10:05:38.657Z] cmd/deploy.go:11:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/compose
[2021-04-22T10:05:38.657Z] cmd/sync.go:16:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/git
[2021-04-22T10:05:38.657Z] config/config.go:15:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/io
[2021-04-22T10:05:38.658Z] cmd/sync.go:18:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/sanitizer
[2021-04-22T10:05:38.658Z] config/config.go:16:2: module github.com/elastic/e2e-testing@latest found (v1.99.1), but does not contain package github.com/elastic/e2e-testing/internal/shell
[2021-04-22T10:05:38.658Z] Makefile:26: recipe for target 'install' failed
[2021-04-22T10:05:38.658Z] make: *** [install] Error 1
[2021-04-22T10:05:38.658Z] make: Leaving directory '/var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1074/src/github.com/elastic/e2e-testing/cli'
[2021-04-22T10:05:38.673Z] Sleeping for 10 sec
[2021-04-22T10:05:49.944Z] Failed in branch Sanity checks
[2021-04-22T10:05:49.996Z] Stage "Build Docs" skipped due to earlier failure(s)
[2021-04-22T10:05:50.031Z] Stage "End-To-End Tests" skipped due to earlier failure(s)
[2021-04-22T10:05:50.065Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-22T10:05:50.411Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1074
[2021-04-22T10:05:50.508Z] [INFO] getVaultSecret: Getting secrets
[2021-04-22T10:05:50.585Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-22T10:05:51.235Z] + chmod 755 generate-build-data.sh
[2021-04-22T10:05:51.235Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1074/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1074/runs/2 FAILURE 1728020
[2021-04-22T10:05:51.785Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1074/runs/2/steps/?limit=10000 -o steps-info.json
[2021-04-22T10:05:52.336Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1074/runs/2/tests/?status=FAILED -o tests-errors.json
[2021-04-22T10:05:52.336Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-04-22T10:05:53.679Z] Retry 2/3 exited 22, retrying in 2 seconds...
[2021-04-22T10:05:55.541Z] Retry 3/3 exited 22, no more retries left.

❕ Flaky test report

No test was executed to be analysed.

@mdelapenya mdelapenya mentioned this pull request Apr 22, 2021
9 tasks
@mergify
Copy link
Contributor Author

mergify bot commented Apr 22, 2021

This pull request is now in conflict. Could you fix it @mergify[bot]? 🙏
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 mergify/bp/7.x/pr-943 upstream/mergify/bp/7.x/pr-943
git merge upstream/7.x
git push upstream mergify/bp/7.x/pr-943

@mdelapenya
Copy link
Contributor

Superseded by #1077

@mdelapenya mdelapenya closed this Apr 22, 2021
@mergify mergify bot deleted the mergify/bp/7.x/pr-943 branch April 22, 2021 11:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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