perf(core): Skip redundant setBreadcrumbs call on the addBreadcrumb path #15068
build.yml
on: pull_request
Build Job ubuntu-latest - Java 17
4m 33s
Annotations
3 errors and 1 warning
|
io.sentry.ScopeTest ► Scope add breadcrumb sync scopes:
sentry/build/test-results/test/TEST-io.sentry.ScopeTest.xml#L0
Failed test found in:
sentry/build/test-results/test/TEST-io.sentry.ScopeTest.xml
Error:
org.mockito.exceptions.verification.WantedButNotInvoked: org.mockito.exceptions.verification.WantedButNotInvoked:
Wanted but not invoked:
iScopeObserver.setBreadcrumbs(
<custom argument matcher>
);
-> at io.sentry.ScopeTest.Scope add breadcrumb sync scopes(ScopeTest.kt:696)
However, there was exactly 1 interaction with this mock:
iScopeObserver.addBreadcrumb(
io.sentry.Breadcrumb@24cfdd05
);
-> at io.sentry.Scope.addBreadcrumb(Scope.java:508)
|
|
io.sentry.ScopeTest ► Scope clear breadcrumbs sync scopes:
sentry/build/test-results/test/TEST-io.sentry.ScopeTest.xml#L0
Failed test found in:
sentry/build/test-results/test/TEST-io.sentry.ScopeTest.xml
Error:
org.mockito.exceptions.verification.TooFewActualInvocations: org.mockito.exceptions.verification.TooFewActualInvocations:
iScopeObserver.setBreadcrumbs(
<custom argument matcher>
);
Wanted 2 times:
-> at io.sentry.ScopeTest.Scope clear breadcrumbs sync scopes(ScopeTest.kt:715)
But was 1 time:
-> at io.sentry.Scope.clearBreadcrumbs(Scope.java:532)
|
|
Build Job ubuntu-latest - Java 17
Process completed with exit code 2.
|
|
Build Job ubuntu-latest - Java 17
Test report summary exceeded limit of 65535 bytes and will be trimmed
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
test-results-build
|
877 KB |
sha256:91b3d5bb5b934b61ac223a508f53a2b51bc1a3678a659a1ff15b548d2002715a
|
|