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.12] systemtest: test apm-server in Fleet mode (#4650) #4815

Closed
wants to merge 1 commit into from

Conversation

axw
Copy link
Member

@axw axw commented Feb 19, 2021

Backports the following commits to 7.12:

* systemtest: test apm-server in Fleet mode

We run a custom package registry into which
the "apm" integration package is bind-mounted
from the tree, enabling us to test with
unreleased package changes.

Add a system test that runs Elastic Agent in
Fleet mode, with a locally built APM Server
binary injected into the container. The test
adds the "apm" integration package to a new
agent policy, waits for elastic-agent to start
apm-server, and verifies it is functional.
@axw axw added the backport label Feb 19, 2021
@axw axw enabled auto-merge (squash) February 19, 2021 02:25
@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

Expand to view the summary

Build stats

  • Build Cause: Pull request #4815 opened

  • Start Time: 2021-02-19T02:26:11.076+0000

  • Duration: 55 min 8 sec

  • Commit: 84dbdee

Test stats 🧪

Test Results
Failed 0
Passed 4373
Skipped 126
Total 4499

Trends 🧪

Image of Build Times

Image of Tests

Steps errors 4

Expand to view the steps failures

Compress
  • Took 0 min 0 sec . View more details on here
  • Description: tar --exclude=coverage-files.tgz -czf coverage-files.tgz coverage
Run Linux tests
  • Took 44 min 22 sec . View more details on here
  • Description: ./.ci/scripts/linux-test.sh
Compress
  • Took 0 min 0 sec . View more details on here
  • Description: tar --exclude=system-tests-linux-files.tgz -czf system-tests-linux-files.tgz system-tests
Test Sync
  • Took 4 min 46 sec . View more details on here
  • Description: ./.ci/scripts/sync.sh

Log output

Expand to view the last 100 lines of log output

[2021-02-19T03:21:12.609Z] --- PASS: TestResponseHeaders (2.94s)
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerInstrumentation
[2021-02-19T03:21:12.609Z] --- PASS: TestAPMServerInstrumentation (3.16s)
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerInstrumentationAuth
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerInstrumentationAuth/self_no_auth
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerInstrumentationAuth/external_secret_token
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerInstrumentationAuth/external_api_key
[2021-02-19T03:21:12.609Z] --- PASS: TestAPMServerInstrumentationAuth (19.54s)
[2021-02-19T03:21:12.609Z]     --- PASS: TestAPMServerInstrumentationAuth/self_no_auth (3.41s)
[2021-02-19T03:21:12.609Z]     --- PASS: TestAPMServerInstrumentationAuth/external_secret_token (7.54s)
[2021-02-19T03:21:12.609Z]     --- PASS: TestAPMServerInstrumentationAuth/external_api_key (8.59s)
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerProfiling
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerProfiling/cpu
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerProfiling/heap
[2021-02-19T03:21:12.609Z] --- PASS: TestAPMServerProfiling (12.59s)
[2021-02-19T03:21:12.609Z]     --- PASS: TestAPMServerProfiling/cpu (6.09s)
[2021-02-19T03:21:12.609Z]     --- PASS: TestAPMServerProfiling/heap (6.50s)
[2021-02-19T03:21:12.609Z] === RUN   TestJaegerGRPC
[2021-02-19T03:21:12.609Z] --- PASS: TestJaegerGRPC (2.89s)
[2021-02-19T03:21:12.609Z] === RUN   TestJaegerGRPCMuxed
[2021-02-19T03:21:12.609Z] --- PASS: TestJaegerGRPCMuxed (2.63s)
[2021-02-19T03:21:12.609Z] === RUN   TestJaegerGRPCMuxedTLS
[2021-02-19T03:21:12.609Z] --- PASS: TestJaegerGRPCMuxedTLS (2.68s)
[2021-02-19T03:21:12.609Z] === RUN   TestJaegerGRPCSampling
[2021-02-19T03:21:12.609Z] --- PASS: TestJaegerGRPCSampling (2.64s)
[2021-02-19T03:21:12.609Z] === RUN   TestJaegerGRPCAuth
[2021-02-19T03:21:12.609Z] --- PASS: TestJaegerGRPCAuth (2.88s)
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerRequestLoggingValid
[2021-02-19T03:21:12.609Z] --- PASS: TestAPMServerRequestLoggingValid (0.24s)
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerMonitoring
[2021-02-19T03:21:12.609Z] --- PASS: TestAPMServerMonitoring (2.09s)
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerMonitoringBuiltinUser
[2021-02-19T03:21:12.609Z] --- PASS: TestAPMServerMonitoringBuiltinUser (2.01s)
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServerOnboarding
[2021-02-19T03:21:12.609Z] --- PASS: TestAPMServerOnboarding (2.91s)
[2021-02-19T03:21:12.609Z] === RUN   TestOTLPGRPC
[2021-02-19T03:21:12.609Z] --- PASS: TestOTLPGRPC (2.72s)
[2021-02-19T03:21:12.609Z] === RUN   TestOTLPGRPCAuth
[2021-02-19T03:21:12.609Z] --- PASS: TestOTLPGRPCAuth (2.90s)
[2021-02-19T03:21:12.609Z] === RUN   TestRUMXForwardedFor
[2021-02-19T03:21:12.609Z] --- PASS: TestRUMXForwardedFor (2.95s)
[2021-02-19T03:21:12.609Z] === RUN   TestRUMErrorSourcemapping
[2021-02-19T03:21:12.609Z] --- PASS: TestRUMErrorSourcemapping (3.18s)
[2021-02-19T03:21:12.609Z] === RUN   TestKeepUnsampled
[2021-02-19T03:21:12.609Z] === RUN   TestKeepUnsampled/false
[2021-02-19T03:21:12.609Z] === RUN   TestKeepUnsampled/true
[2021-02-19T03:21:12.609Z] --- PASS: TestKeepUnsampled (5.84s)
[2021-02-19T03:21:12.609Z]     --- PASS: TestKeepUnsampled/false (2.95s)
[2021-02-19T03:21:12.609Z]     --- PASS: TestKeepUnsampled/true (2.90s)
[2021-02-19T03:21:12.609Z] === RUN   TestKeepUnsampledWarning
[2021-02-19T03:21:12.609Z] --- PASS: TestKeepUnsampledWarning (2.60s)
[2021-02-19T03:21:12.609Z] === RUN   TestTailSampling
[2021-02-19T03:21:12.609Z]     sampling_test.go:153: waiting for 100 "parent" transactions
[2021-02-19T03:21:12.609Z]     sampling_test.go:153: waiting for 100 "child" transactions
[2021-02-19T03:21:12.609Z] --- PASS: TestTailSampling (3.89s)
[2021-02-19T03:21:12.609Z] === RUN   TestTailSamplingUnlicensed
[2021-02-19T03:21:12.609Z] 2021/02/19 03:20:20 Starting container id: c3beba1290a7 image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0-SNAPSHOT
[2021-02-19T03:21:12.609Z] 2021/02/19 03:20:21 Waiting for container id c3beba1290a7 image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0-SNAPSHOT
[2021-02-19T03:21:12.609Z] 2021/02/19 03:20:41 Container is ready id: c3beba1290a7 image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0-SNAPSHOT
[2021-02-19T03:21:12.609Z] --- PASS: TestTailSamplingUnlicensed (37.42s)
[2021-02-19T03:21:12.609Z] FAIL
[2021-02-19T03:21:12.609Z] FAIL	github.com/elastic/apm-server/systemtest	270.355s
[2021-02-19T03:21:12.609Z] === RUN   TestAPMServer
[2021-02-19T03:21:12.609Z] 2021/02/19 03:16:26 Building apm-server...
[2021-02-19T03:21:12.609Z] 2021/02/19 03:16:29 Built /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-4815/src/github.com/elastic/apm-server/apm-server
[2021-02-19T03:21:12.610Z] --- PASS: TestAPMServer (7.97s)
[2021-02-19T03:21:12.610Z] === RUN   TestUnstartedAPMServer
[2021-02-19T03:21:12.610Z] --- PASS: TestUnstartedAPMServer (0.00s)
[2021-02-19T03:21:12.610Z] === RUN   TestAPMServerStartTLS
[2021-02-19T03:21:12.610Z] --- PASS: TestAPMServerStartTLS (0.42s)
[2021-02-19T03:21:12.610Z] === RUN   TestExpvar
[2021-02-19T03:21:12.610Z] --- PASS: TestExpvar (3.29s)
[2021-02-19T03:21:12.610Z] PASS
[2021-02-19T03:21:12.610Z] ok  	github.com/elastic/apm-server/systemtest/apmservertest	11.698s
[2021-02-19T03:21:12.610Z] ?   	github.com/elastic/apm-server/systemtest/estest	[no test files]
[2021-02-19T03:21:12.610Z] ?   	github.com/elastic/apm-server/systemtest/fleettest	[no test files]
[2021-02-19T03:21:12.610Z] FAIL
[2021-02-19T03:21:12.610Z] + cleanup
[2021-02-19T03:21:12.610Z] + rm -rf /tmp/tmp.tOoClaL6xs
[2021-02-19T03:21:12.610Z] + .ci/scripts/docker-get-logs.sh
[2021-02-19T03:21:13.732Z] Post stage
[2021-02-19T03:21:13.756Z] Running in /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-4815/src/github.com/elastic/apm-server
[2021-02-19T03:21:13.815Z] Archiving artifacts
[2021-02-19T03:21:14.166Z] Recording test results
[2021-02-19T03:21:15.048Z] [Checks API] No suitable checks publisher found.
[2021-02-19T03:21:15.193Z] [WARN] tar: pathPrefix parameter is deprecated.
[2021-02-19T03:21:15.564Z] + tar --version
[2021-02-19T03:21:15.946Z] + tar --exclude=system-tests-linux-files.tgz -czf system-tests-linux-files.tgz system-tests
[2021-02-19T03:21:15.947Z] tar: system-tests: Cannot stat: No such file or directory
[2021-02-19T03:21:15.947Z] tar: Exiting with failure status due to previous errors
[2021-02-19T03:21:15.981Z] [INFO] system-tests-linux-files.tgz was not compressed or archived : script returned exit code 2
[2021-02-19T03:21:16.288Z] Failed in branch System and Environment Tests
[2021-02-19T03:21:17.953Z] Running on worker-1095690 in /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-4815
[2021-02-19T03:21:18.059Z] [INFO] getVaultSecret: Getting secrets
[2021-02-19T03:21:18.278Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-02-19T03:21:20.698Z] + chmod 755 generate-build-data.sh
[2021-02-19T03:21:20.698Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-4815/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-4815/runs/1 FAILURE 3308218
[2021-02-19T03:21:20.699Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-4815/runs/1/steps/?limit=10000 -o steps-info.json
[2021-02-19T03:21:21.397Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-4815/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-02-19T03:21:22.095Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-4815/runs/1/log/ -o pipeline-log.txt

@axw axw closed this Feb 19, 2021
auto-merge was automatically disabled February 19, 2021 12:39

Pull request was closed

@axw axw deleted the backport/7.12/pr-4650 branch February 19, 2021 12:39
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