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

feat: default to ssblocks for richevents #322

Merged
merged 1 commit into from Jun 28, 2021

Conversation

vigneshshanmugam
Copy link
Member

  • We now default to spitting out screenshot blocks whenever --rich-events flag is enabled which mimicks the heartbeat mode.
  • fixes --screenshots option is overridden by --rich-events #319 - Allow screenshots option to be overridden per heartbeat monitor config.
  • remove -j flag in favor of using --reporter
  • network is now moved inside capability to match with other tracing, metrics and filmstrip capability.

@apmmachine
Copy link
Collaborator

❕ 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 #322 opened

  • Start Time: 2021-06-25T00:33:47.524+0000

  • Duration: 27 min 39 sec

  • Commit: 6f0079e

Test stats 🧪

Test Results
Failed 0
Passed 111
Skipped 0
Total 111

Trends 🧪

Image of Build Times

Image of Tests

Log output

Expand to view the last 100 lines of log output

[2021-06-25T00:42:39.664Z] Commit message: "feat: default to ssblocks for richevents"
[2021-06-25T00:42:39.664Z] Cleaning workspace
[2021-06-25T00:42:39.710Z]  > git --version # timeout=10
[2021-06-25T00:42:39.713Z]  > git --version # 'git version 2.17.1'
[2021-06-25T00:42:39.718Z] fatal: bad object bbed8ab717206e63fa6cc1cef7d35f4a13f717ab
[2021-06-25T00:42:39.666Z]  > git rev-parse --verify HEAD # timeout=10
[2021-06-25T00:42:39.674Z] Resetting working tree
[2021-06-25T00:42:39.674Z]  > git reset --hard # timeout=10
[2021-06-25T00:42:39.679Z]  > git clean -fdx # timeout=10
[2021-06-25T00:42:41.456Z] Running in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-322/src/github.com/elastic/synthetics
[2021-06-25T00:42:56.310Z] + set +x
[2021-06-25T00:42:56.310Z] => Downloading nvm from git to '/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-322/.nvm'
[2021-06-25T00:42:56.310Z] 
=> Initialized empty Git repository in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-322/.nvm/.git/
[2021-06-25T00:42:56.880Z] From https://github.com/nvm-sh/nvm
[2021-06-25T00:42:56.880Z]  * [new tag]         v0.37.1    -> v0.37.1
[2021-06-25T00:42:57.140Z] => Compressing and cleaning up git repository
[2021-06-25T00:42:57.140Z] 
[2021-06-25T00:42:57.140Z] => Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.
[2021-06-25T00:42:57.140Z] => Create one of them and run this script again
[2021-06-25T00:42:57.140Z]    OR
[2021-06-25T00:42:57.140Z] => Append the following lines to the correct file yourself:
[2021-06-25T00:42:57.140Z] 
[2021-06-25T00:42:57.140Z] export NVM_DIR="$HOME/.nvm"
[2021-06-25T00:42:57.140Z] [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[2021-06-25T00:42:57.140Z] 
[2021-06-25T00:42:59.048Z] => Close and reopen your terminal to start using nvm or run the following to use it now:
[2021-06-25T00:42:59.048Z] 
[2021-06-25T00:42:59.048Z] export NVM_DIR="$HOME/.nvm"
[2021-06-25T00:42:59.048Z] [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[2021-06-25T00:42:59.048Z] Installing latest LTS version.
[2021-06-25T00:42:59.048Z] v14.17.1 is already installed.
[2021-06-25T00:42:59.307Z] Now using node v14.17.1 (npm v6.14.13)
[2021-06-25T00:42:59.417Z] Running in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-322/src/github.com/elastic/synthetics
[2021-06-25T00:42:59.729Z] + chmod -R ugo+rw examples
[2021-06-25T00:42:59.757Z] Running in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-322/src/github.com/elastic/synthetics/__tests__/e2e
[2021-06-25T00:43:00.072Z] + npm run test
[2021-06-25T00:43:00.072Z] 
[2021-06-25T00:43:00.072Z] > e2e-synthetics@ test /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-322/src/github.com/elastic/synthetics/__tests__/e2e
[2021-06-25T00:43:00.072Z] > npm i && npm run setup &&  bash scripts/test.sh
[2021-06-25T00:43:00.072Z] 
[2021-06-25T00:43:03.365Z] added 3 packages from 4 contributors and audited 178 packages in 2.59s
[2021-06-25T00:43:05.906Z] 
[2021-06-25T00:43:05.906Z] 66 packages are looking for funding
[2021-06-25T00:43:05.906Z]   run `npm fund` for details
[2021-06-25T00:43:05.906Z] 
[2021-06-25T00:43:05.906Z] found 1 moderate severity vulnerability
[2021-06-25T00:43:05.906Z]   run `npm audit fix` to fix them, or `npm audit` for details
[2021-06-25T00:43:05.906Z] 
[2021-06-25T00:43:05.906Z] > e2e-synthetics@ setup /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-322/src/github.com/elastic/synthetics/__tests__/e2e
[2021-06-25T00:43:05.906Z] > bash scripts/setup.sh
[2021-06-25T00:43:05.906Z] 
[2021-06-25T00:43:05.906Z] 
[2021-06-25T00:43:05.906Z] Temporary folder
[2021-06-25T00:43:05.906Z] Temporary files will be stored in: ./tmp
[2021-06-25T00:43:05.906Z] 
[2021-06-25T00:43:05.906Z] Starting elasticsearch , kibana and synthetics docker
[2021-06-25T00:43:05.906Z] 
[2021-06-25T00:43:05.906Z] 
[2021-06-25T00:43:05.906Z] Waiting for synthetics docker to start...
[2021-06-25T00:43:05.906Z] Error: No such object: synthetics
[2021-06-25T00:43:15.893Z] Error: No such object: synthetics
[2021-06-25T00:43:25.887Z] Error: No such object: synthetics
[2021-06-25T00:43:38.106Z] Error: No such object: synthetics
[2021-06-25T00:43:46.234Z] Error: No such object: synthetics
[2021-06-25T00:43:56.222Z] Error: No such object: synthetics
[2021-06-25T00:44:06.212Z] Error: No such object: synthetics
[2021-06-25T00:44:18.434Z] Error: No such object: synthetics
[2021-06-25T00:44:26.562Z] ✅ Setup completed successfully. Running e2e tests...
[2021-06-25T00:44:27.971Z] Waiting for Elastic Search  to start
[2021-06-25T00:45:14.831Z] Waiting for Synthetics to send data to ES for test monitor
[2021-06-25T01:00:15.095Z] Cancelling nested steps due to timeout
[2021-06-25T01:00:15.099Z] Sending interrupt signal to process
[2021-06-25T01:00:22.217Z] scripts/test.sh: line 26:  5756 Terminated              SYNTHETICS_JUNIT_FILE='junit.xml' npx @elastic/synthetics uptime.journey.ts --reporter junit
[2021-06-25T01:00:22.217Z] npm ERR! code ELIFECYCLE
[2021-06-25T01:00:22.217Z] npm ERR! errno 143
[2021-06-25T01:00:22.217Z] npm ERR! e2e-synthetics@ test: `npm i && npm run setup &&  bash scripts/test.sh`
[2021-06-25T01:00:22.217Z] npm ERR! Exit status 143
[2021-06-25T01:00:22.217Z] npm ERR! 
[2021-06-25T01:00:22.217Z] npm ERR! Failed at the e2e-synthetics@ test script.
[2021-06-25T01:00:22.217Z] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[2021-06-25T01:00:22.217Z] 
[2021-06-25T01:00:22.217Z] npm ERR! A complete log of this run can be found in:
[2021-06-25T01:00:22.217Z] npm ERR!     /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-322/.npm/_logs/2021-06-25T01_00_20_605Z-debug.log
[2021-06-25T01:00:22.223Z] script returned exit code 143
[2021-06-25T01:00:24.054Z] Post stage
[2021-06-25T01:00:24.089Z] Archiving artifacts
[2021-06-25T01:00:24.247Z] Recording test results
[2021-06-25T01:00:24.366Z] None of the test reports contained any result
[2021-06-25T01:00:24.376Z] [Checks API] No suitable checks publisher found.
[2021-06-25T01:00:24.617Z] Stage "Release" skipped due to earlier failure(s)
[2021-06-25T01:00:24.651Z] Stage "Release" skipped due to earlier failure(s)
[2021-06-25T01:00:24.725Z] Stage "Release" skipped due to earlier failure(s)
[2021-06-25T01:00:25.330Z] Running on Jenkins in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-322
[2021-06-25T01:00:25.407Z] [INFO] getVaultSecret: Getting secrets
[2021-06-25T01:00:25.461Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-06-25T01:00:26.327Z] + chmod 755 generate-build-data.sh
[2021-06-25T01:00:26.327Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-322/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-322/runs/1 ABORTED 1598529
[2021-06-25T01:00:26.327Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-322/runs/1/steps/?limit=10000 -o steps-info.json
[2021-06-25T01:00:26.578Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-322/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-06-25T01:00:26.578Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-322/runs/1/log/ -o pipeline-log.txt

Copy link
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

LGTM, love the test coverage

@vigneshshanmugam vigneshshanmugam merged commit 8ec94c9 into elastic:master Jun 28, 2021
@vigneshshanmugam vigneshshanmugam deleted the ssblocks-enable branch June 28, 2021 16:37
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.

--screenshots option is overridden by --rich-events
3 participants