Repository navigation
ci(android): Pass event ids from the device log to the verify-pr test fetch job - #7141
Merged
Merged
Conversation
… fetch job Co-Authored-By: Antonis Lilis <antonis.lilis@sentry.io>
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog. This PR will not appear in the changelog. 🤖 This preview updates automatically when you update the PR. |
Contributor
antonis
marked this pull request as ready for review
November 30, 2026 11:10
antonis
requested review from
alwx,
antonis and
lucas-zimerman
as code owners
November 30, 2026 11:10
antonis
approved these changes
Nov 30, 2026
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.
📢 Type of change
📜 Description
verify-pr-spike.ymland.github/verify-pr-spike/spike.pystop searching Sentry for a run's events. The build job now reads the event ids from the device log, and the fetch job reads each event by id.Build job (
spike.py)runcollects the ids from the sample's'Event beforeSend:', '<32 hex>'log lines, in order and without duplicates. They go intoevent_idsin that side's entry inresults.json. The step fails if a side has none.Pass the event ids to the fetch job(spike.py outputs), writes the job outputswithout_event_idsandwith_event_ids, one comma-separated list per side.Fetch job
SEARCH_ENDPOINT,SEARCH_PERIOD,urllib.parse, and thereadyretry condition that only the search used.[0-9a-f]{32}and accepts at most 5 per side. More than 5, none, or a malformed id fails the job before any request is made, and the value is never printed./events/<id>/json/and/events/<id>/. The expected run ids are still built in the job fromgithub.run_id, and an event whoseverify.run_iddiffers is refused. The output keepsexceptions(frames),tags, anderrors, and dropssearch_endpoint.Fetch-only mode
fetch_run_id(digits), andfetch_without_idsandfetch_with_ids(comma-separated 32-hex ids).fetch_run_idis set, the build job is skipped and only the fetch job runs, with those ids. The expected run ids aregh<fetch_run_id>-withoutand-with. The fetch job checks these inputs itself before any request.ref,pr,base_sha, andfloware nowrequired: false, so this mode can leave them out. In a normal run, the build job'sValidate the inputsstep still rejects an empty value for each of them.fetch_without_idsandfetch_with_idsare ignored whenfetch_run_idis empty.Nothing else changes: triggers, permissions, the token guard, the checkouts, the build and run steps, and the artifacts.
💡 Motivation and Context
SENTRY_AUTH_TOKENis refused on the search endpoint,/organizations/sentry-sdks/events/(HTTP 403 on both sides in run 46398841347). The single-event endpoints have accepted it. This is the fallback named in #7139.The ids come from the build job, which runs PR code, so the fetch job checks them against a fixed pattern and still refuses any event from another run. Fetch-only mode lets a finished run's events be read again without rebuilding.
#skip-changelog
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
via Antonis Lilis.
--
View Session [Sentry]