Skip to content

Add synthetics capabilities env var to Dockerfile#159

Merged
andrewvc merged 1 commit intoelastic:masterfrom
andrewvc:add-synth-capable-env-flag
Dec 3, 2020
Merged

Add synthetics capabilities env var to Dockerfile#159
andrewvc merged 1 commit intoelastic:masterfrom
andrewvc:add-synth-capable-env-flag

Conversation

@andrewvc
Copy link
Copy Markdown
Contributor

@andrewvc andrewvc commented Dec 2, 2020

As part of bringing synthetics to beta we want to merge the special heatbeat branch to master. We still, however, want to restrict synthetics usage to the synthetics docker image to prevent users from getting confusing errors running synthetics on a plain system. This env var can be checked by heartbeat before activating any synthetics monitors.

Goes toward #140

As part of bringing synthetics to beta we want to merge the special
heatbeat branch to master. We still, however, want to restrict
synthetics usage to the synthetics docker image to prevent users from
getting confusing errors running synthetics on a plain system. This env
var can be checked by heartbeat before activating any synthetics
monitors.
@andrewvc andrewvc requested a review from hmdhk December 2, 2020 23:56
@andrewvc andrewvc self-assigned this Dec 2, 2020
@ghost
Copy link
Copy Markdown

ghost commented Dec 3, 2020

❕ Build Aborted

Either there was a build timeout or someone aborted the build.'}

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: Pull request #159 opened

  • Start Time: 2020-12-02T23:56:04.863+0000

  • Duration: 16 min 3 sec

Test stats 🧪

Test Results
Failed 0
Passed 45
Skipped 0
Total 45

Log output

Expand to view the last 100 lines of log output

[2020-12-03T00:08:49.631Z] + sleep 10
[2020-12-03T00:08:59.599Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:08:59.856Z] Error: No such object: synthetics
[2020-12-03T00:08:59.856Z] + '[' '' == true ']'
[2020-12-03T00:08:59.856Z] + sleep 10
[2020-12-03T00:09:09.822Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:09:09.822Z] Error: No such object: synthetics
[2020-12-03T00:09:09.822Z] + '[' '' == true ']'
[2020-12-03T00:09:09.822Z] + sleep 10
[2020-12-03T00:09:19.787Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:09:19.787Z] Error: No such object: synthetics
[2020-12-03T00:09:19.787Z] + '[' '' == true ']'
[2020-12-03T00:09:19.788Z] + sleep 10
[2020-12-03T00:09:31.983Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:09:31.983Z] Error: No such object: synthetics
[2020-12-03T00:09:31.983Z] + '[' '' == true ']'
[2020-12-03T00:09:31.983Z] + sleep 10
[2020-12-03T00:09:40.092Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:09:40.092Z] Error: No such object: synthetics
[2020-12-03T00:09:40.092Z] + '[' '' == true ']'
[2020-12-03T00:09:40.092Z] + sleep 10
[2020-12-03T00:09:50.060Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:09:50.061Z] Error: No such object: synthetics
[2020-12-03T00:09:50.061Z] + '[' '' == true ']'
[2020-12-03T00:09:50.061Z] + sleep 10
[2020-12-03T00:10:00.025Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:10:00.297Z] Error: No such object: synthetics
[2020-12-03T00:10:00.297Z] + '[' '' == true ']'
[2020-12-03T00:10:00.297Z] + sleep 10
[2020-12-03T00:10:10.262Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:10:10.262Z] Error: No such object: synthetics
[2020-12-03T00:10:10.262Z] + '[' '' == true ']'
[2020-12-03T00:10:10.262Z] + sleep 10
[2020-12-03T00:10:20.230Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:10:20.230Z] Error: No such object: synthetics
[2020-12-03T00:10:20.230Z] + '[' '' == true ']'
[2020-12-03T00:10:20.230Z] + sleep 10
[2020-12-03T00:10:30.196Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:10:30.454Z] Error: No such object: synthetics
[2020-12-03T00:10:30.454Z] + '[' '' == true ']'
[2020-12-03T00:10:30.454Z] + sleep 10
[2020-12-03T00:10:40.419Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:10:40.419Z] Error: No such object: synthetics
[2020-12-03T00:10:40.419Z] + '[' '' == true ']'
[2020-12-03T00:10:40.419Z] + sleep 10
[2020-12-03T00:10:50.392Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:10:50.392Z] Error: No such object: synthetics
[2020-12-03T00:10:50.392Z] + '[' '' == true ']'
[2020-12-03T00:10:50.392Z] + sleep 10
[2020-12-03T00:11:00.421Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:11:00.683Z] Error: No such object: synthetics
[2020-12-03T00:11:00.683Z] + '[' '' == true ']'
[2020-12-03T00:11:00.683Z] + sleep 10
[2020-12-03T00:11:10.652Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:11:10.652Z] Error: No such object: synthetics
[2020-12-03T00:11:10.652Z] + '[' '' == true ']'
[2020-12-03T00:11:10.652Z] + sleep 10
[2020-12-03T00:11:20.620Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:11:20.620Z] Error: No such object: synthetics
[2020-12-03T00:11:20.620Z] + '[' '' == true ']'
[2020-12-03T00:11:20.620Z] + sleep 10
[2020-12-03T00:11:30.595Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:11:30.855Z] Error: No such object: synthetics
[2020-12-03T00:11:30.855Z] + '[' '' == true ']'
[2020-12-03T00:11:30.855Z] + sleep 10
[2020-12-03T00:11:40.827Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:11:40.827Z] Error: No such object: synthetics
[2020-12-03T00:11:40.827Z] + '[' '' == true ']'
[2020-12-03T00:11:40.827Z] + sleep 10
[2020-12-03T00:11:50.832Z] ++ docker inspect -f '{{.State.Running}}' synthetics
[2020-12-03T00:11:51.103Z] + '[' true == true ']'
[2020-12-03T00:11:51.103Z] + echo '✅ Setup completed successfully. Running e2e tests...'
[2020-12-03T00:11:51.103Z] ✅ Setup completed successfully. Running e2e tests...
[2020-12-03T00:11:51.103Z] + npx @elastic/synthetics uptime.journey.ts
[2020-12-03T00:11:52.502Z] Waiting for Elastic Search  to start
[2020-12-03T00:12:00.937Z] Cancelling nested steps due to timeout
[2020-12-03T00:12:00.940Z] Sending interrupt signal to process
[2020-12-03T00:12:05.058Z] scripts/test.sh: line 27: 12242 Terminated              npx @elastic/synthetics uptime.journey.ts
[2020-12-03T00:12:05.058Z] npm ERR! code ELIFECYCLE
[2020-12-03T00:12:05.058Z] npm ERR! errno 143
[2020-12-03T00:12:05.058Z] Terminated
[2020-12-03T00:12:05.070Z] script returned exit code 143
[2020-12-03T00:12:06.685Z] Stage "Publish Docker image" skipped due to earlier failure(s)
[2020-12-03T00:12:06.766Z] Stage "Matrix - STACK_VERSION = '8.0.0-synthetics'" skipped due to earlier failure(s)
[2020-12-03T00:12:06.771Z] Stage "Matrix - STACK_VERSION = '7.10.0-synthetics'" skipped due to earlier failure(s)
[2020-12-03T00:12:06.814Z] Stage "Matrix - STACK_VERSION = '8.0.0-synthetics'" skipped due to earlier failure(s)
[2020-12-03T00:12:06.821Z] Stage "Matrix - STACK_VERSION = '7.10.0-synthetics'" skipped due to earlier failure(s)
[2020-12-03T00:12:06.910Z] Stage "Matrix - STACK_VERSION = '8.0.0-synthetics'" skipped due to earlier failure(s)
[2020-12-03T00:12:06.917Z] Stage "Matrix - STACK_VERSION = '7.10.0-synthetics'" skipped due to earlier failure(s)
[2020-12-03T00:12:07.004Z] Stage "Matrix - STACK_VERSION = '8.0.0-synthetics'" skipped due to earlier failure(s)
[2020-12-03T00:12:07.011Z] Stage "Matrix - STACK_VERSION = '7.10.0-synthetics'" skipped due to earlier failure(s)
[2020-12-03T00:12:07.124Z] Failed in branch Matrix - STACK_VERSION = '8.0.0-synthetics'
[2020-12-03T00:12:07.131Z] Failed in branch Matrix - STACK_VERSION = '7.10.0-synthetics'
[2020-12-03T00:12:07.393Z] Running on Jenkins in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-159
[2020-12-03T00:12:07.475Z] [INFO] getVaultSecret: Getting secrets
[2020-12-03T00:12:07.667Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-12-03T00:12:08.434Z] + chmod 755 generate-build-data.sh
[2020-12-03T00:12:08.434Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-159/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-159/runs/1 ABORTED 963305
[2020-12-03T00:12:08.985Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-159/runs/1/steps/?limit=10000 -o steps-info.json
[2020-12-03T00:12:09.235Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-159/runs/1/tests/?status=FAILED -o tests-errors.json

Copy link
Copy Markdown
Contributor

@hmdhk hmdhk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, however the e2e tests are failing, I had a brief look, it seems the docker container didn't run properly (might be unrelated to these changes though)

@andrewvc
Copy link
Copy Markdown
Contributor Author

andrewvc commented Dec 3, 2020

@jahtalab you're right that the E2E test failure is unrelated I'll take a look at it. Will merge this regardless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants