Skip to content

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

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

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

Triggered via pull request September 2, 2026 12:56
Status Failure
Total duration 17m 16s
Artifacts 1

build.yml

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

Annotations

3 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@4052913c, io.sentry.Hint@99c4993 ); -> 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@7b377a53, io.sentry.Hint@1b0e031b ); -> at io.sentry.okhttp.SentryOkHttpUtils.captureClientError$sentry_okhttp(SentryOkHttpUtils.kt:59)
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.38 MB
sha256:b953a7cd0272ad48dc4ae7330416f51307a8a6aa21e558078561ce383a5b32ef