Skip to content

[7.x] systemtest: fix Elastic Agent enrollment (#4883)#4997

Merged
axw merged 2 commits intoelastic:7.xfrom
axw:backport/7.x/pr-4883
Apr 1, 2021
Merged

[7.x] systemtest: fix Elastic Agent enrollment (#4883)#4997
axw merged 2 commits intoelastic:7.xfrom
axw:backport/7.x/pr-4883

Conversation

@axw
Copy link
Copy Markdown
Member

@axw axw commented Mar 25, 2021

Backports the following commits to 7.x:

@axw axw added the backport label Mar 25, 2021
@ghost
Copy link
Copy Markdown

ghost commented Mar 25, 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 #4997 updated

  • Start Time: 2021-04-01T01:58:02.176+0000

  • Duration: 45 min 17 sec

  • Commit: 903b3f7

Test stats 🧪

Test Results
Failed 0
Passed 4796
Skipped 123
Total 4919

Trends 🧪

Image of Build Times

Image of Tests

Steps errors 2

Expand to view the steps failures

Run Linux tests
  • Took 28 min 12 sec . View more details on here
  • Description: ./.ci/scripts/linux-test.sh
Test Sync
  • Took 4 min 33 sec . View more details on here
  • Description: ./.ci/scripts/sync.sh

Log output

Expand to view the last 100 lines of log output

[2021-04-01T02:42:13.326Z]     --- PASS: TestHDRHistogramSignificantFigures/2_sigfigs (0.01s)
[2021-04-01T02:42:13.326Z]     --- PASS: TestHDRHistogramSignificantFigures/3_sigfigs (0.02s)
[2021-04-01T02:42:13.326Z]     --- PASS: TestHDRHistogramSignificantFigures/4_sigfigs (0.08s)
[2021-04-01T02:42:13.326Z]     --- PASS: TestHDRHistogramSignificantFigures/5_sigfigs (0.14s)
[2021-04-01T02:42:13.326Z] === RUN   TestAggregationFields
[2021-04-01T02:42:13.326Z] --- PASS: TestAggregationFields (0.12s)
[2021-04-01T02:42:13.326Z] PASS
[2021-04-01T02:42:13.326Z] coverage: 94.3% of statements
[2021-04-01T02:42:13.326Z] ok  	github.com/elastic/apm-server/x-pack/apm-server/aggregation/txmetrics	0.791s	coverage: 94.3% of statements
[2021-04-01T02:42:13.326Z] === RUN   TestSubCommands
[2021-04-01T02:42:13.326Z] --- PASS: TestSubCommands (0.00s)
[2021-04-01T02:42:13.326Z] PASS
[2021-04-01T02:42:13.326Z] coverage: 100.0% of statements
[2021-04-01T02:42:13.326Z] ok  	github.com/elastic/apm-server/x-pack/apm-server/cmd	1.171s	coverage: 100.0% of statements
[2021-04-01T02:42:13.326Z] ?   	github.com/elastic/apm-server/x-pack/apm-server/include	[no test files]
[2021-04-01T02:42:13.326Z] === RUN   TestTraceGroupsPolicies
[2021-04-01T02:42:13.326Z] --- PASS: TestTraceGroupsPolicies (0.04s)
[2021-04-01T02:42:13.326Z] === RUN   TestTraceGroupsMax
[2021-04-01T02:42:13.326Z] --- PASS: TestTraceGroupsMax (1.09s)
[2021-04-01T02:42:13.326Z] === RUN   TestTraceGroupReservoirResize
[2021-04-01T02:42:13.326Z] --- PASS: TestTraceGroupReservoirResize (0.45s)
[2021-04-01T02:42:13.326Z] === RUN   TestTraceGroupReservoirResizeMinimum
[2021-04-01T02:42:13.326Z] --- PASS: TestTraceGroupReservoirResizeMinimum (0.05s)
[2021-04-01T02:42:13.326Z] === RUN   TestTraceGroupsRemoval
[2021-04-01T02:42:13.326Z] --- PASS: TestTraceGroupsRemoval (0.03s)
[2021-04-01T02:42:13.326Z] === RUN   TestResizeReservoir
[2021-04-01T02:42:13.326Z] --- PASS: TestResizeReservoir (0.00s)
[2021-04-01T02:42:13.326Z] === RUN   TestResetReservoir
[2021-04-01T02:42:13.326Z] --- PASS: TestResetReservoir (0.00s)
[2021-04-01T02:42:13.326Z] === RUN   TestNewProcessorConfigInvalid
[2021-04-01T02:42:13.326Z] --- PASS: TestNewProcessorConfigInvalid (0.00s)
[2021-04-01T02:42:13.326Z] === RUN   TestProcessUnsampled
[2021-04-01T02:42:13.326Z] --- PASS: TestProcessUnsampled (0.14s)
[2021-04-01T02:42:13.327Z] === RUN   TestProcessAlreadyTailSampled
[2021-04-01T02:42:13.327Z] --- PASS: TestProcessAlreadyTailSampled (0.62s)
[2021-04-01T02:42:13.327Z] === RUN   TestProcessLocalTailSampling
[2021-04-01T02:42:13.327Z] --- PASS: TestProcessLocalTailSampling (0.37s)
[2021-04-01T02:42:13.327Z] === RUN   TestProcessLocalTailSamplingUnsampled
[2021-04-01T02:42:13.327Z] --- PASS: TestProcessLocalTailSamplingUnsampled (1.33s)
[2021-04-01T02:42:13.327Z] === RUN   TestProcessLocalTailSamplingPolicyOrder
[2021-04-01T02:42:13.327Z] --- PASS: TestProcessLocalTailSamplingPolicyOrder (0.46s)
[2021-04-01T02:42:13.327Z] === RUN   TestProcessRemoteTailSampling
[2021-04-01T02:42:13.327Z] --- PASS: TestProcessRemoteTailSampling (0.37s)
[2021-04-01T02:42:13.327Z] === RUN   TestGroupsMonitoring
[2021-04-01T02:42:13.327Z] --- PASS: TestGroupsMonitoring (0.23s)
[2021-04-01T02:42:13.327Z] === RUN   TestStorageMonitoring
[2021-04-01T02:42:13.327Z] --- PASS: TestStorageMonitoring (0.31s)
[2021-04-01T02:42:13.327Z] === RUN   TestStorageGC
[2021-04-01T02:42:13.327Z]     processor_test.go:528: skipping test until refactored https://github.com/elastic/apm-server/issues/4651
[2021-04-01T02:42:13.327Z] --- SKIP: TestStorageGC (0.00s)
[2021-04-01T02:42:13.327Z] PASS
[2021-04-01T02:42:13.327Z] coverage: 92.2% of statements
[2021-04-01T02:42:13.327Z] ok  	github.com/elastic/apm-server/x-pack/apm-server/sampling	6.066s	coverage: 92.2% of statements
[2021-04-01T02:42:13.327Z] === RUN   TestWriteEvents
[2021-04-01T02:42:13.327Z] === RUN   TestWriteEvents/no_flush
[2021-04-01T02:42:13.327Z] === RUN   TestWriteEvents/implicit_flush
[2021-04-01T02:42:13.327Z] --- PASS: TestWriteEvents (0.29s)
[2021-04-01T02:42:13.327Z]     --- PASS: TestWriteEvents/no_flush (0.02s)
[2021-04-01T02:42:13.327Z]     --- PASS: TestWriteEvents/implicit_flush (0.27s)
[2021-04-01T02:42:13.327Z] === RUN   TestWriteTraceSampled
[2021-04-01T02:42:13.327Z] --- PASS: TestWriteTraceSampled (0.02s)
[2021-04-01T02:42:13.327Z] === RUN   TestReadEvents
[2021-04-01T02:42:13.327Z] --- PASS: TestReadEvents (0.02s)
[2021-04-01T02:42:13.327Z] === RUN   TestReadEventsDecodeError
[2021-04-01T02:42:13.327Z] --- PASS: TestReadEventsDecodeError (0.05s)
[2021-04-01T02:42:13.327Z] === RUN   TestIsTraceSampled
[2021-04-01T02:42:13.327Z] --- PASS: TestIsTraceSampled (0.06s)
[2021-04-01T02:42:13.327Z] PASS
[2021-04-01T02:42:13.327Z] coverage: 81.0% of statements
[2021-04-01T02:42:13.327Z] ok  	github.com/elastic/apm-server/x-pack/apm-server/sampling/eventstorage	0.777s	coverage: 81.0% of statements
[2021-04-01T02:42:13.327Z] === RUN   TestConfigInvalid
[2021-04-01T02:42:13.327Z] --- PASS: TestConfigInvalid (0.00s)
[2021-04-01T02:42:13.327Z] === RUN   TestElasticsearchIntegration_PublishSampledTraceIDs
[2021-04-01T02:42:13.327Z]     pubsub_integration_test.go:244: Skipping integration test, export INTEGRATION_TESTS=1 to run
[2021-04-01T02:42:13.327Z] --- SKIP: TestElasticsearchIntegration_PublishSampledTraceIDs (0.00s)
[2021-04-01T02:42:13.327Z] === RUN   TestElasticsearchIntegration_SubscribeSampledTraceIDs
[2021-04-01T02:42:13.327Z]     pubsub_integration_test.go:244: Skipping integration test, export INTEGRATION_TESTS=1 to run
[2021-04-01T02:42:13.327Z] --- SKIP: TestElasticsearchIntegration_SubscribeSampledTraceIDs (0.00s)
[2021-04-01T02:42:13.327Z] === RUN   TestPublishSampledTraceIDs
[2021-04-01T02:42:13.327Z] --- PASS: TestPublishSampledTraceIDs (0.10s)
[2021-04-01T02:42:13.327Z] === RUN   TestSubscribeSampledTraceIDs
[2021-04-01T02:42:13.327Z] --- PASS: TestSubscribeSampledTraceIDs (0.51s)
[2021-04-01T02:42:13.327Z] PASS
[2021-04-01T02:42:13.327Z] coverage: 78.0% of statements
[2021-04-01T02:42:13.327Z] ok  	github.com/elastic/apm-server/x-pack/apm-server/sampling/pubsub	0.998s	coverage: 78.0% of statements
[2021-04-01T02:42:13.327Z] ?   	github.com/elastic/apm-server/x-pack/apm-server/sampling/pubsub/pubsubtest	[no test files]
[2021-04-01T02:42:13.327Z] + cat build/test-report.out
[2021-04-01T02:42:13.327Z] + go-junit-report
[2021-04-01T02:42:13.327Z] + go tool cover -html=build/coverage/unit.cov -o build/coverage/coverage-unit-report.html
[2021-04-01T02:42:14.906Z] + gocover-cobertura
[2021-04-01T02:43:17.167Z] Post stage
[2021-04-01T02:43:17.239Z] Recording test results
[2021-04-01T02:43:17.490Z] [Checks API] No suitable checks publisher found.
[2021-04-01T02:43:18.091Z] Running on Jenkins in /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-4997
[2021-04-01T02:43:18.159Z] [INFO] getVaultSecret: Getting secrets
[2021-04-01T02:43:18.437Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-01T02:43:19.205Z] + chmod 755 generate-build-data.sh
[2021-04-01T02:43:19.205Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-4997/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-4997/runs/3 FAILURE 2716765
[2021-04-01T02:43:19.756Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-4997/runs/3/steps/?limit=10000 -o steps-info.json
[2021-04-01T02:43:20.306Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-4997/runs/3/tests/?status=FAILED -o tests-errors.json

@axw
Copy link
Copy Markdown
Member Author

axw commented Mar 25, 2021

This is broken because testing/environments is out of date, due to elastic/beats#24101 not being merged.

@axw axw mentioned this pull request Mar 30, 2021
@axw
Copy link
Copy Markdown
Member Author

axw commented Apr 1, 2021

@Mergifyio update

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 1, 2021

Command update: success

Branch has been successfully updated

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #4997 (903b3f7) into 7.x (19d467c) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              7.x    #4997      +/-   ##
==========================================
- Coverage   77.22%   77.17%   -0.05%     
==========================================
  Files         178      178              
  Lines       10468    10468              
==========================================
- Hits         8084     8079       -5     
- Misses       2384     2389       +5     
Impacted Files Coverage Δ
kibana/connecting_client.go 68.75% <0.00%> (-7.82%) ⬇️

@axw
Copy link
Copy Markdown
Member Author

axw commented Apr 1, 2021

Next failure will be fixed by #4997

@axw axw merged commit d8dbfdf into elastic:7.x Apr 1, 2021
@axw axw deleted the backport/7.x/pr-4883 branch April 1, 2021 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants