Skip to content

Conversation

@clyfish
Copy link
Contributor

@clyfish clyfish commented Dec 1, 2020

When reason is null, apm sdk crashes on evaluating reason.message.

@ghost
Copy link

ghost commented Dec 1, 2020

💔 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: Branch indexing

  • Start Time: 2020-12-02T01:46:05.161+0000

  • Duration: 6 min 46 sec

Steps errors 1

Expand to view the steps failures

Error signal

  • Took 0 min 0 sec . View more details on here
  • Description: githubApiCall: The REST API call https://api.github.com/repos/elastic/apm-agent-rum-js/pulls/940/rev

Log output

Expand to view the last 100 lines of log output

[2020-12-02T01:50:05.899Z] Pruning obsolete local branches [2020-12-02T01:50:06.709Z] Merging remotes/origin/master commit 7855107c8470485caef32ab692d1e5fae1889c1c into PR head commit 168e6b2f306c76f55728a189f1f5a249a03813a2 [2020-12-02T01:50:06.846Z] Merge succeeded, producing 7e4ecb48204c22880e5ee9f3fa90a2ecb5fbff58 [2020-12-02T01:50:06.846Z] Checking out Revision 7e4ecb48204c22880e5ee9f3fa90a2ecb5fbff58 (PR-940) [2020-12-02T01:50:06.893Z] Commit message: "Merge commit '7855107c8470485caef32ab692d1e5fae1889c1c' into HEAD" [2020-12-02T01:50:05.881Z] > git rev-parse --verify HEAD # timeout=10 [2020-12-02T01:50:05.888Z] No valid HEAD. Skipping the resetting [2020-12-02T01:50:05.888Z] > git clean -fdx # timeout=10 [2020-12-02T01:50:05.902Z] Fetching upstream changes from git@github.com:elastic/apm-agent-rum-js.git [2020-12-02T01:50:05.903Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key [2020-12-02T01:50:05.912Z] > git fetch --no-tags --progress --prune -- git@github.com:elastic/apm-agent-rum-js.git +refs/pull/940/head:refs/remotes/origin/PR-940 +refs/heads/master:refs/remotes/origin/master # timeout=15 [2020-12-02T01:50:06.713Z] > git config core.sparsecheckout # timeout=10 [2020-12-02T01:50:06.717Z] > git checkout -f 168e6b2f306c76f55728a189f1f5a249a03813a2 # timeout=15 [2020-12-02T01:50:06.774Z] > git remote # timeout=10 [2020-12-02T01:50:06.778Z] > git config --get remote.origin.url # timeout=10 [2020-12-02T01:50:06.782Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key [2020-12-02T01:50:06.788Z] > git merge 7855107c8470485caef32ab692d1e5fae1889c1c # timeout=10 [2020-12-02T01:50:06.836Z] > git rev-parse HEAD^{commit} # timeout=10 [2020-12-02T01:50:06.849Z] > git config core.sparsecheckout # timeout=10 [2020-12-02T01:50:06.853Z] > git checkout -f 7e4ecb48204c22880e5ee9f3fa90a2ecb5fbff58 # timeout=15 [2020-12-02T01:50:06.896Z] > git rev-list --no-walk 168e6b2f306c76f55728a189f1f5a249a03813a2 # timeout=10 [2020-12-02T01:50:06.910Z] Cleaning workspace [2020-12-02T01:50:06.912Z] > git rev-parse --verify HEAD # timeout=10 [2020-12-02T01:50:06.916Z] Resetting working tree [2020-12-02T01:50:06.917Z] > git reset --hard # timeout=10 [2020-12-02T01:50:06.945Z] > git clean -fdx # timeout=10 [2020-12-02T01:50:07.906Z] Masking supported pattern matches of $GIT_USERNAME or $GIT_PASSWORD [2020-12-02T01:50:08.500Z] + git fetch https://****:****@github.com/elastic/apm-agent-rum-js.git +refs/pull/*/head:refs/remotes/origin/pr/* [2020-12-02T01:50:10.469Z] Running in /var/lib/jenkins/workspace/ent-rum_apm-agent-rum-mbp_PR-940/src/github.com/elastic/apm-agent-rum-js/.git [2020-12-02T01:50:10.491Z] Archiving artifacts [2020-12-02T01:50:11.134Z] + git rev-parse HEAD [2020-12-02T01:50:11.494Z] + git rev-parse HEAD [2020-12-02T01:50:11.804Z] + git rev-parse origin/pr/940 [2020-12-02T01:50:11.845Z] [INFO] githubEnv: Found Git Build Cause: pr [2020-12-02T01:50:12.121Z] Masking supported pattern matches of $GITHUB_TOKEN [2020-12-02T01:51:49.142Z] Stage "Lint" skipped due to earlier failure(s) [2020-12-02T01:51:49.177Z] Stage "Test Pupperteer" skipped due to earlier failure(s) [2020-12-02T01:51:49.267Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum'" skipped due to earlier failure(s) [2020-12-02T01:51:49.268Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum'" skipped due to earlier failure(s) [2020-12-02T01:51:49.269Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum'" skipped due to earlier failure(s) [2020-12-02T01:51:49.269Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-core'" skipped due to earlier failure(s) [2020-12-02T01:51:49.269Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-core'" skipped due to earlier failure(s) [2020-12-02T01:51:49.270Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-core'" skipped due to earlier failure(s) [2020-12-02T01:51:49.270Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-react'" skipped due to earlier failure(s) [2020-12-02T01:51:49.271Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-react'" skipped due to earlier failure(s) [2020-12-02T01:51:49.271Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-react'" skipped due to earlier failure(s) [2020-12-02T01:51:49.272Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-angular'" skipped due to earlier failure(s) [2020-12-02T01:51:49.272Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-angular'" skipped due to earlier failure(s) [2020-12-02T01:51:49.273Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-angular'" skipped due to earlier failure(s) [2020-12-02T01:51:49.273Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-vue'" skipped due to earlier failure(s) [2020-12-02T01:51:49.274Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-vue'" skipped due to earlier failure(s) [2020-12-02T01:51:49.275Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-vue'" skipped due to earlier failure(s) [2020-12-02T01:51:49.348Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum'" skipped due to earlier failure(s) [2020-12-02T01:51:49.351Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum'" skipped due to earlier failure(s) [2020-12-02T01:51:49.353Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum'" skipped due to earlier failure(s) [2020-12-02T01:51:49.356Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-core'" skipped due to earlier failure(s) [2020-12-02T01:51:49.358Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-core'" skipped due to earlier failure(s) [2020-12-02T01:51:49.361Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-core'" skipped due to earlier failure(s) [2020-12-02T01:51:49.363Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-react'" skipped due to earlier failure(s) [2020-12-02T01:51:49.365Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-react'" skipped due to earlier failure(s) [2020-12-02T01:51:49.368Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-react'" skipped due to earlier failure(s) [2020-12-02T01:51:49.370Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-angular'" skipped due to earlier failure(s) [2020-12-02T01:51:49.373Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-angular'" skipped due to earlier failure(s) [2020-12-02T01:51:49.375Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-angular'" skipped due to earlier failure(s) [2020-12-02T01:51:49.377Z] Stage "Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-vue'" skipped due to earlier failure(s) [2020-12-02T01:51:49.380Z] Stage "Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-vue'" skipped due to earlier failure(s) [2020-12-02T01:51:49.382Z] Stage "Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-vue'" skipped due to earlier failure(s) [2020-12-02T01:51:49.743Z] Failed in branch Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum' [2020-12-02T01:51:49.746Z] Failed in branch Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum' [2020-12-02T01:51:49.748Z] Failed in branch Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum' [2020-12-02T01:51:49.750Z] Failed in branch Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-core' [2020-12-02T01:51:49.752Z] Failed in branch Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-core' [2020-12-02T01:51:49.755Z] Failed in branch Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-core' [2020-12-02T01:51:49.757Z] Failed in branch Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-react' [2020-12-02T01:51:49.759Z] Failed in branch Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-react' [2020-12-02T01:51:49.762Z] Failed in branch Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-react' [2020-12-02T01:51:49.764Z] Failed in branch Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-angular' [2020-12-02T01:51:49.766Z] Failed in branch Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-angular' [2020-12-02T01:51:49.768Z] Failed in branch Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-angular' [2020-12-02T01:51:49.771Z] Failed in branch Matrix - STACK_VERSION = '8.0.0-SNAPSHOT', SCOPE = '@elastic/apm-rum-vue' [2020-12-02T01:51:49.773Z] Failed in branch Matrix - STACK_VERSION = '7.7.0', SCOPE = '@elastic/apm-rum-vue' [2020-12-02T01:51:49.775Z] Failed in branch Matrix - STACK_VERSION = '7.0.0', SCOPE = '@elastic/apm-rum-vue' [2020-12-02T01:51:49.833Z] Stage "Stack 8.0.0-SNAPSHOT SauceLabs" skipped due to earlier failure(s) [2020-12-02T01:51:49.870Z] Stage "Integration Tests" skipped due to earlier failure(s) [2020-12-02T01:51:49.906Z] Stage "Benchmarks" skipped due to earlier failure(s) [2020-12-02T01:51:49.942Z] Stage "Coverage" skipped due to earlier failure(s) [2020-12-02T01:51:49.978Z] Stage "Release" skipped due to earlier failure(s) [2020-12-02T01:51:49.993Z] Stage "Release" skipped due to earlier failure(s) [2020-12-02T01:51:50.031Z] Stage "Release" skipped due to earlier failure(s) [2020-12-02T01:51:50.066Z] Stage "Release" skipped due to earlier failure(s) [2020-12-02T01:51:50.123Z] Stage "Opbeans" skipped due to earlier failure(s) [2020-12-02T01:51:50.365Z] Running on Jenkins in /var/lib/jenkins/workspace/ent-rum_apm-agent-rum-mbp_PR-940 [2020-12-02T01:51:50.455Z] [INFO] getVaultSecret: Getting secrets [2020-12-02T01:51:50.629Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID [2020-12-02T01:51:51.275Z] + chmod 755 generate-build-data.sh [2020-12-02T01:51:51.275Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/apm-agent-rum-mbp/PR-940/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/apm-agent-rum-mbp/PR-940/runs/5 FAILURE 345852 [2020-12-02T01:51:51.826Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/apm-agent-rum-mbp/PR-940/runs/5/steps/?limit=10000 -o steps-info.json [2020-12-02T01:51:52.376Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/apm-agent-rum-mbp/PR-940/runs/5/tests/?status=FAILED -o tests-errors.json [2020-12-02T01:51:52.376Z] Retry 1/3 exited 22, retrying in 1 seconds... [2020-12-02T01:51:53.287Z] Retry 2/3 exited 22, retrying in 2 seconds... 

@clyfish
Copy link
Contributor Author

clyfish commented Dec 1, 2020

Sorry for introducing the bug from commit 716d168.

Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

No worries, good catch. Can you add a test case for the same as part of the same test?

@clyfish
Copy link
Contributor Author

clyfish commented Dec 1, 2020

Done, and the Travis CI passed.

Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

Thanks @clyfish Will merge once our CI passes.

@ghost
Copy link

ghost commented Dec 1, 2020

📦 Bundlesize report

Filename Size(bundled) Size(gzip) Diff(gzip)
elastic-apm-opentracing.umd.min.js 61.8 KiB 19.7 KiB ⚠️ 2 Bytes
elastic-apm-rum.umd.min.js 55.8 KiB 18.2 KiB ⚠️ 2 Bytes
@codecov-io
Copy link

Codecov Report

Merging #940 (168e6b2) into master (9ac74c6) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@ Coverage Diff @@ ## master #940 +/- ## ========================================== + Coverage 92.86% 92.93% +0.06%  ========================================== Files 47 47 Lines 2300 2322 +22 Branches 466 472 +6 ========================================== + Hits 2136 2158 +22  Misses 161 161 Partials 3 3 
Impacted Files Coverage Δ
packages/rum-core/src/common/compress.js 57.73% <ø> (ø)
packages/rum-core/src/common/config-service.js 98.86% <100.00%> (+0.06%) ⬆️
packages/rum-core/src/common/constants.js 100.00% <100.00%> (ø)
...ckages/rum-core/src/error-logging/error-logging.js 98.73% <100.00%> (+0.03%) ⬆️
...c/performance-monitoring/performance-monitoring.js 95.18% <100.00%> (+0.37%) ⬆️
...s/rum-core/src/performance-monitoring/span-base.js 100.00% <100.00%> (ø)
packages/rum/src/apm-base.js 98.18% <100.00%> (ø)
@vigneshshanmugam vigneshshanmugam merged commit e4e10d5 into elastic:master Dec 2, 2020
@clyfish clyfish deleted the fix-null-reason branch December 2, 2020 04:59
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.93%. Comparing base (9ac74c6) to head (168e6b2).

Additional details and impacted files
@@ Coverage Diff @@ ## master #940 +/- ## ========================================== + Coverage 92.86% 92.93% +0.06%  ========================================== Files 47 47 Lines 2300 2322 +22 Branches 466 472 +6 ========================================== + Hits 2136 2158 +22  Misses 161 161 Partials 3 3 
Files with missing lines Coverage Δ
...ckages/rum-core/src/error-logging/error-logging.js 98.73% <100.00%> (+0.03%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants