Repository navigation
test: [Sample Tests 1] Add an in-process MockSentryServer - #6266
Open
runningcode wants to merge 1 commit into
Open
runningcode wants to merge 1 commit into
runningcode wants to merge 1 commit into
Conversation
runningcode
marked this pull request as ready for review
October 15, 2026 13:56
runningcode
requested review from
0xadam-brown,
adinauer,
markushi and
romtsn
as code owners
October 15, 2026 13:57
4 of 9 tasks
First step of moving the sample system tests into the modules they cover. The server stands in for the Python mock server: it binds a free port, accepts envelopes through the SDK's real HTTP transport, and lets tests wait for a matching one. The release-minified UI test APK pulls in sentry-test-support, so R8 needs to be told the JDK-only com.sun.net.httpserver classes are absent. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
runningcode
force-pushed
the
no/mock-sentry-server
branch
from
October 15, 2026 14:23
ba3ad5c to
254fe63
Compare
📲 Install BuildsAndroid
|
This was referenced Oct 20, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Stack (Sample Tests)
main)📜 Description
This adds
MockSentryServertosentry-test-support. It replaces the existingsystem-test-runner.pyandtest/system-test-sentry-server.py.We can't delete that one yet until we migrate all the tests though.
💡 Motivation and Context
This is the first step of moving the end-to-end system tests out of
sentry-samples/and into the modules they cover. It will also enable test parallelization as we can run tests in parallel using a free port.Little summary from the llm:
Today those tests need three things outside Gradle:
test/system-test-runner.pyThat means they can't run as part of a module's
testtask. Two properties ofMockSentryServermatter for the follow-ups:💚 How did you test it?
MockSentryServerTestcovers two cases:Sentry.init→captureMessage→ the envelope arrives;awaitEnvelopetimes out when nothing matches.:sentry-android-integration-tests:sentry-uitest-android:assembleAndroidTestfails with R8Missing class com.sun.net.httpserver.*without the new rule, and passes with it.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
#skip-changelog