Skip to content

feat(http): [Data Collection 13] Apply cookie collection policy #15519

feat(http): [Data Collection 13] Apply cookie collection policy

feat(http): [Data Collection 13] Apply cookie collection policy #15519

Triggered via pull request July 24, 2026 03:50
Status Failure
Total duration 13m 59s
Artifacts 1

build.yml

on: pull_request
Build Job ubuntu-latest - Java 17
13m 55s
Build Job ubuntu-latest - Java 17
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
io.sentry.okhttp.SentryOkHttpUtilsTest ► data collection cookie defaults ignore sendDefaultPii: sentry-okhttp/build/test-results/test/TEST-io.sentry.okhttp.SentryOkHttpUtilsTest.xml#L0
Failed test found in: sentry-okhttp/build/test-results/test/TEST-io.sentry.okhttp.SentryOkHttpUtilsTest.xml Error: org.mockito.exceptions.verification.junit.ArgumentsAreDifferent: org.mockito.exceptions.verification.junit.ArgumentsAreDifferent: Argument(s) are different! Wanted: iScopes.captureEvent( <custom argument matcher>, <any io.sentry.Hint> ); -> at io.sentry.okhttp.SentryOkHttpUtilsTest.data collection cookie defaults ignore sendDefaultPii(SentryOkHttpUtilsTest.kt:174) Actual invocations have different arguments: iScopes.getOptions( ); -> at io.sentry.Span.<init>(Span.java:86) iScopes.getOptions( ); -> at io.sentry.SentryTracer.setDefaultSpanData(SentryTracer.java:548) iScopes.getOptions( ); -> at io.sentry.SentryTracer.getProfilerId(SentryTracer.java:561) iScopes.getOptions( ); -> at io.sentry.SentryTracer.getProfilerId(SentryTracer.java:561) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.captureClientError$sentry_okhttp(SentryOkHttpUtils.kt:24) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getRequestCookies(SentryOkHttpUtils.kt:69) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getRequestCookies(SentryOkHttpUtils.kt:72) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getRequestHeaders(SentryOkHttpUtils.kt:94) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getRequestHeaders(SentryOkHttpUtils.kt:101) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getResponseCookies(SentryOkHttpUtils.kt:82) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getResponseCookies(SentryOkHttpUtils.kt:83) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getResponseHeaders(SentryOkHttpUtils.kt:112) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getResponseHeaders(SentryOkHttpUtils.kt:119) iScopes.captureEvent( io.sentry.SentryEvent@566fe83c, io.sentry.Hint@743bb39a ); -> at io.sentry.okhttp.SentryOkHttpUtils.captureClientError$sentry_okhttp(SentryOkHttpUtils.kt:59)
io.sentry.okhttp.SentryOkHttpUtilsTest ► data collection filters request cookies: sentry-okhttp/build/test-results/test/TEST-io.sentry.okhttp.SentryOkHttpUtilsTest.xml#L0
Failed test found in: sentry-okhttp/build/test-results/test/TEST-io.sentry.okhttp.SentryOkHttpUtilsTest.xml Error: org.mockito.exceptions.verification.junit.ArgumentsAreDifferent: org.mockito.exceptions.verification.junit.ArgumentsAreDifferent: Argument(s) are different! Wanted: iScopes.captureEvent( <custom argument matcher>, <any io.sentry.Hint> ); -> at io.sentry.okhttp.SentryOkHttpUtilsTest.data collection filters request cookies(SentryOkHttpUtilsTest.kt:138) Actual invocations have different arguments: iScopes.getOptions( ); -> at io.sentry.Span.<init>(Span.java:86) iScopes.getOptions( ); -> at io.sentry.SentryTracer.setDefaultSpanData(SentryTracer.java:548) iScopes.getOptions( ); -> at io.sentry.SentryTracer.getProfilerId(SentryTracer.java:561) iScopes.getOptions( ); -> at io.sentry.SentryTracer.getProfilerId(SentryTracer.java:561) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.captureClientError$sentry_okhttp(SentryOkHttpUtils.kt:24) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getRequestCookies(SentryOkHttpUtils.kt:69) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getRequestCookies(SentryOkHttpUtils.kt:72) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getRequestHeaders(SentryOkHttpUtils.kt:94) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getRequestHeaders(SentryOkHttpUtils.kt:101) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getResponseCookies(SentryOkHttpUtils.kt:82) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getResponseCookies(SentryOkHttpUtils.kt:83) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getResponseHeaders(SentryOkHttpUtils.kt:112) iScopes.getOptions( ); -> at io.sentry.okhttp.SentryOkHttpUtils.getResponseHeaders(SentryOkHttpUtils.kt:119) iScopes.captureEvent( io.sentry.SentryEvent@dc1fadd, io.sentry.Hint@3ef3f661 ); -> at io.sentry.okhttp.SentryOkHttpUtils.captureClientError$sentry_okhttp(SentryOkHttpUtils.kt:59)
io.sentry.android.core.SentryAndroidTest ► AnrV2 events get enriched with previously persisted scope and options data, the new data gets persisted after that: sentry-android-core/build/test-results/testReleaseUnitTest/TEST-io.sentry.android.core.SentryAndroidTest.xml#L0
Failed test found in: sentry-android-core/build/test-results/testReleaseUnitTest/TEST-io.sentry.android.core.SentryAndroidTest.xml Error: org.junit.ComparisonFailure: org.junit.ComparisonFailure: expected:<[Test]Activity> but was:<[Main]Activity>
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
1.36 MB
sha256:5c0a1766a628764a36517c1798195ceacbd79b7d47722bf75bcc0150a59c24b9