Repository navigation
ci(android): Collect transactions as evidence in the verify-pr test workflow - #7183
Merged
Merged
Conversation
…orkflow 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
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
…ansactions Co-Authored-By: Antonis Lilis <antonis.lilis@sentry.io>
antonis
approved these changes
Dec 4, 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.ymlcan use a span inside a transaction as evidence, with the new boolean inputtransactions(defaultfalse).transactions: false: the run is the same as on main. No transaction ids go to the fetch job, a side without an error id fails the build job, andresults.json,without.jsonandwith.jsonhave the same shape as today.transactions: true, build job (spike.py): also reads each side's transaction ids from the sample's'Transaction beforeSend:', '<event id>'line.beforeSendTransactionon main already logs it, and it is distinct from the'Event beforeSend:'error line. They go toresults.jsonasruns.<side>.transaction_ids. Each side needs at least one transaction id, and error ids are optional. The first 10 transaction ids per side go to the fetch job.transactions: true, fetch job: reads each transaction by id from the same project endpoints. It refuses a response that isn'ttype: transactionor whoseverify.run_iddiffers.transaction,trace(op,status,span_id,dataofcontexts.trace), and for every spanop,description,status,data,start_timestamp,timestamp,span_idandparent_span_id, as stored. Tags (includingturbo_module.*) and processing errors are kept the same way as for errors.transactionsandmissing_transactions, next toevents./json/when it can't be read in time.missing_transactionswith its id and last result. The side fails only when none of its transactions could be read.fetch_without_transaction_idsandfetch_with_transaction_ids(at most 10 each). Giving either one turnstransactionson.The workflow stays dispatch-only on main. The build job has no secrets, and
SENTRY_AUTH_TOKENstays in the fetch job, which checks out no code. No new token or permission.💡 Motivation and Context
#7169 (
thread.idonui.long-taskspans, the test PR for this) and #7168 (TTID/TTFD span end times, already merged) need span evidence.a. Sample on main, for #7169.
longTaskIntegration({ minDurationMs: 100, spans: true })is on. UI profiling is off: there's no_experiments.profilingOptions, so no span getsthread.id. WithprofilingOptionsset and tracing on,uiProfilingIntegrationsetsthread.idon every span atspanStart, the root span included. The value isNATIVE.getCurrentThreadId()(the JS thread'sProcess.myTid()) on any API level, and the Hermes id2^32only on API 35+ withprofilesSampleRatenot above 0. The blocking buttons exist: "Block JS thread (300 ms)" on Performance and "Block JS thread for 5s" on Errors.b. Emulator.
ANDROID_API_LEVEL: "30"(Android 11). #7169 can run on it with the native thread id. The Hermes thread id (API 35, Android 15) is not covered.Needs a decision:
results.jsoncovers that.dataandcontexts.trace.dataare kept whole and printed to the public job log. Today that's only sample data.profilingOptionschange for feat(core): Link long task spans to the JS profile #7169 needs a rule change or a change on main (getsentry/team-sdk-skills#242).No clear rule:
startInactiveSpan, so it getsthread.idon both sides. Only long tasks added inprocessEventdiffer. The kept fields don't tell the two apart.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
For #7169:
_experiments.profilingOptionsin the sample, then a run withtransactions: true.#skip-changelog
via Antonis Lilis.
--
View Session [Sentry]