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

[7.x] [sourcemaps] Support multiple fleet addresses when requesting a sourcemap (backport #5770) #5841

Closed
wants to merge 1 commit into from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 2, 2021

This is an automatic backport of pull request #5770 done by Mergify.
Cherry-pick of 212f099 has failed:

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

You are currently cherry-picking commit 212f0990.
  (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:   sourcemap/es_store.go
	modified:   sourcemap/fleet_store.go
	modified:   sourcemap/store.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   sourcemap/fleet_store_test.go

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.io/

…emap (#5770)

* Send request to multiple fleet servers when fetching sourcemap

* Handle case when context is canceled before any results are sent to the results channel

* Update sourcemap/fleet_store.go

Co-authored-by: Andrew Wilkins <[email protected]>

* Combine test for single and multiple fleet servers

* Use atomic.AddInt32 to increment shared request counter var

* Add test for a mix of successful and failed fleet server sourcemap requests

* Simplify test for failed and successful fleet hosts fetch

* Context should be first argument

* Lock setting shared variable in test

* Remove unnecessary called var

Co-authored-by: Andrew Wilkins <[email protected]>
(cherry picked from commit 212f099)

# Conflicts:
#	sourcemap/fleet_store_test.go
@mergify mergify bot added the conflicts There is a conflict in the backported pull request label Aug 2, 2021
@mergify mergify bot assigned estolfo Aug 2, 2021
@apmmachine
Copy link
Contributor

💔 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: 2021-08-02T03:18:45.266+0000

  • Duration: 7 min 20 sec

  • Commit: e47c20f

Trends 🧪

Image of Build Times

Steps errors 1

Expand to view the steps failures

Run intake
  • Took 2 min 53 sec . View more details on here
  • Description: ./.ci/scripts/intake.sh

Log output

Expand to view the last 100 lines of log output

[2021-08-02T03:25:39.080Z] 2021/08/02 03:25:38 app_metrics
[2021-08-02T03:25:39.080Z] 2021/08/02 03:25:38 error_logs
[2021-08-02T03:25:39.080Z] 2021/08/02 03:25:38 internal_metrics
[2021-08-02T03:25:39.080Z] 2021/08/02 03:25:38 profile_metrics
[2021-08-02T03:25:39.080Z] 2021/08/02 03:25:38 Package fields and docs generated for version 0.4.0
[2021-08-02T03:25:39.080Z] /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5841/.gvm/versions/go1.16.5.linux.amd64/bin/go build -o build/linux/elastic-package github.com/elastic/elastic-package
[2021-08-02T03:25:39.340Z] go: downloading github.com/elastic/elastic-package v0.0.0-20210310173719-3b8f76516ae3
[2021-08-02T03:25:40.278Z] go: downloading github.com/AlecAivazis/survey/v2 v2.1.1
[2021-08-02T03:25:40.278Z] go: downloading github.com/elastic/package-spec/code/go v0.0.0-20210310145052-baee4c3da9cc
[2021-08-02T03:25:40.278Z] go: downloading github.com/google/go-github/v32 v32.1.0
[2021-08-02T03:25:40.278Z] go: downloading github.com/Masterminds/semver v1.5.0
[2021-08-02T03:25:40.278Z] go: downloading github.com/go-git/go-billy/v5 v5.0.0
[2021-08-02T03:25:40.278Z] go: downloading github.com/go-git/go-git/v5 v5.1.0
[2021-08-02T03:25:40.278Z] go: downloading github.com/jedib0t/go-pretty v4.3.0+incompatible
[2021-08-02T03:25:40.279Z] go: downloading github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
[2021-08-02T03:25:40.279Z] go: downloading github.com/google/go-querystring v1.0.0
[2021-08-02T03:25:40.279Z] go: downloading github.com/mitchellh/go-homedir v1.1.0
[2021-08-02T03:25:40.279Z] go: downloading github.com/kylelemons/godebug v1.1.0
[2021-08-02T03:25:40.279Z] go: downloading github.com/aymerick/raymond v2.0.2+incompatible
[2021-08-02T03:25:40.279Z] go: downloading github.com/sergi/go-diff v1.1.0
[2021-08-02T03:25:40.279Z] go: downloading github.com/Masterminds/semver/v3 v3.1.0
[2021-08-02T03:25:40.279Z] go: downloading github.com/creasty/defaults v1.5.1
[2021-08-02T03:25:40.279Z] go: downloading github.com/rakyll/statik v0.1.7
[2021-08-02T03:25:40.279Z] go: downloading github.com/xeipuuv/gojsonschema v1.2.0
[2021-08-02T03:25:40.539Z] go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
[2021-08-02T03:25:40.539Z] go: downloading github.com/go-git/gcfg v1.5.0
[2021-08-02T03:25:40.539Z] go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
[2021-08-02T03:25:40.539Z] go: downloading github.com/emirpasic/gods v1.12.0
[2021-08-02T03:25:40.539Z] go: downloading github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415
[2021-08-02T03:25:40.539Z] go: downloading gopkg.in/warnings.v0 v0.1.2
[2021-08-02T03:25:40.539Z] go: downloading github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd
[2021-08-02T03:25:40.539Z] go: downloading github.com/xanzy/ssh-agent v0.2.1
[2021-08-02T03:25:40.539Z] go: downloading github.com/go-openapi/strfmt v0.20.1
[2021-08-02T03:25:40.539Z] go: downloading github.com/mattn/go-runewidth v0.0.9
[2021-08-02T03:25:40.539Z] go: downloading github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb
[2021-08-02T03:25:40.539Z] go: downloading github.com/oklog/ulid v1.3.1
[2021-08-02T03:25:40.539Z] go: downloading github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
[2021-08-02T03:25:40.539Z] go: downloading github.com/go-openapi/errors v0.20.0
[2021-08-02T03:25:40.539Z] go: downloading go.mongodb.org/mongo-driver v1.5.2
[2021-08-02T03:25:40.799Z] go: downloading github.com/go-stack/stack v1.8.0
[2021-08-02T03:25:53.585Z] elastic-package has been installed.
[2021-08-02T03:25:53.586Z] Format the package
[2021-08-02T03:25:53.586Z] Done
[2021-08-02T03:25:53.586Z] Build the package
[2021-08-02T03:25:53.586Z] Package built: /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5841/src/github.com/elastic/apm-server/build/integrations/apm/0.4.0
[2021-08-02T03:25:53.586Z] Done
[2021-08-02T03:25:53.586Z] 2021/08/02 03:25:52 exec: go list -m
[2021-08-02T03:25:53.586Z] >> Building apm-server.yml for linux/amd64
[2021-08-02T03:25:53.586Z] >> Building apm-server.docker.yml for linux/amd64
[2021-08-02T03:25:53.586Z] Generated fields.yml for apm-server to /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5841/src/github.com/elastic/apm-server/build/fields/fields.yml
[2021-08-02T03:25:54.153Z] Generated fields.yml for apm-server to /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5841/src/github.com/elastic/apm-server/build/fields/fields.all.yml
[2021-08-02T03:25:56.689Z] /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5841/.gvm/versions/go1.16.5.linux.amd64/bin/go build -o build/linux/goimports golang.org/x/tools/cmd/goimports
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:56:1: expected statement, found '<<'
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:60:1: expected statement, found '=='
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:69:1: expected statement, found '>>'
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:69:94: illegal character U+0023 '#'
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:143:2: missing ',' before newline in argument list
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:145:6: expected '(', found TestAllFailedFleetHostsFetch
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:193:2: missing ',' before newline in argument list
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:195:1: expected operand, found 'var'
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:196:1: expected operand, found '>>'
[2021-08-02T03:25:58.593Z] sourcemap/fleet_store_test.go:196:94: illegal character U+0023 '#'
[2021-08-02T03:25:58.593Z] Makefile:252: recipe for target 'check-gofmt' failed
[2021-08-02T03:25:58.593Z] make: *** [check-gofmt] Error 2
[2021-08-02T03:25:58.593Z] + cleanup
[2021-08-02T03:25:58.593Z] + rm -rf /tmp/tmp.WyNq5YgSAG
[2021-08-02T03:26:00.514Z] Stage "Build and Test" skipped due to earlier failure(s)
[2021-08-02T03:26:01.017Z] Stage "linux build" skipped due to earlier failure(s)
[2021-08-02T03:26:01.032Z] Stage "windows build-test" skipped due to earlier failure(s)
[2021-08-02T03:26:01.046Z] Stage "OSX build-test" skipped due to earlier failure(s)
[2021-08-02T03:26:01.059Z] Stage "ARM build-test" skipped due to earlier failure(s)
[2021-08-02T03:26:01.072Z] Stage "Unit Test" skipped due to earlier failure(s)
[2021-08-02T03:26:01.085Z] Stage "System and Environment Tests" skipped due to earlier failure(s)
[2021-08-02T03:26:01.099Z] Stage "Benchmarking" skipped due to earlier failure(s)
[2021-08-02T03:26:01.113Z] Stage "Check kibana Obj. Updated" skipped due to earlier failure(s)
[2021-08-02T03:26:01.125Z] Stage "Hey-Apm" skipped due to earlier failure(s)
[2021-08-02T03:26:01.138Z] Stage "Package" skipped due to earlier failure(s)
[2021-08-02T03:26:01.146Z] Stage "APM Integration Tests" skipped due to earlier failure(s)
[2021-08-02T03:26:01.224Z] Stage "Package" skipped due to earlier failure(s)
[2021-08-02T03:26:01.623Z] Failed in branch linux build
[2021-08-02T03:26:01.633Z] Failed in branch windows build-test
[2021-08-02T03:26:01.643Z] Failed in branch OSX build-test
[2021-08-02T03:26:01.654Z] Failed in branch ARM build-test
[2021-08-02T03:26:01.665Z] Failed in branch Unit Test
[2021-08-02T03:26:01.675Z] Failed in branch System and Environment Tests
[2021-08-02T03:26:01.685Z] Failed in branch Benchmarking
[2021-08-02T03:26:01.696Z] Failed in branch Check kibana Obj. Updated
[2021-08-02T03:26:01.704Z] Failed in branch Hey-Apm
[2021-08-02T03:26:01.714Z] Failed in branch APM Integration Tests
[2021-08-02T03:26:01.823Z] Stage "Package" skipped due to earlier failure(s)
[2021-08-02T03:26:02.069Z] Failed in branch Package
[2021-08-02T03:26:03.886Z] Running on worker-1095690 in /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5841
[2021-08-02T03:26:04.034Z] [INFO] getVaultSecret: Getting secrets
[2021-08-02T03:26:04.100Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-08-02T03:26:06.457Z] + chmod 755 generate-build-data.sh
[2021-08-02T03:26:06.457Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-5841/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-5841/runs/1 FAILURE 439783
[2021-08-02T03:26:06.457Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-5841/runs/1/steps/?limit=10000 -o steps-info.json
[2021-08-02T03:26:07.155Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-5841/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-08-02T03:26:07.853Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-08-02T03:26:09.300Z] Retry 2/3 exited 22, retrying in 2 seconds...

@axw
Copy link
Member

axw commented Aug 2, 2021

Need to merge #5843 first

@mergify
Copy link
Contributor Author

mergify bot commented Aug 2, 2021

This pull request is now in conflicts. 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-5770 upstream/mergify/bp/7.x/pr-5770
git merge upstream/7.x
git push upstream mergify/bp/7.x/pr-5770

@axw
Copy link
Member

axw commented Aug 2, 2021

backporting manually

@axw axw closed this Aug 2, 2021
@mergify mergify bot deleted the mergify/bp/7.x/pr-5770 branch August 2, 2021 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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