Skip to content

Verify a PR whose evidence is a metric with the test workflow #7144

Backlog

Description

@antonis

Goal

Find out whether the test workflow can verify a PR when the evidence is attributes on a metric, not an error event.

The PR is #7119. It adds route, app.in_foreground, app.start_phase, sentry.segment.name and sentry.op to the react_native.long_task.duration metric. Its description says it has not been tested on a device yet.

This is the next experiment of the plan: #7124 (comment)

Expected difference

Without the change the metric arrives without these attributes. With the change it has them. The metric itself must arrive on both sides, otherwise the verdict is Inconclusive.

Stage 1: can the token read metrics?

A fetch-only run of a few seconds.

Metrics are read through an org-level query, and the existing SENTRY_AUTH_TOKEN got HTTP 403 on the org-level event search in RN-899. The same may happen here.

If it does, the experiment stops there. The options are then a dedicated read-only token with org read access, or accepting weaker evidence.

Stage 2: the run

Only if stage 1 passes.

  • Junior plans a scenario that produces a long task on a known screen, and checks that the sample has the long task integration enabled.
  • A metric has no event id in the device log. Junior proposes how the fetch job finds one run's metrics, for example by a verify.run_id attribute if scope attributes reach metrics.
  • The fetch job publishes only the metric name and the listed attributes.

Rules, as before

  • The run starts on main, and the build job has no secrets.
  • The code that uses the token is reviewed before it runs.
  • Nothing is posted on the PR.

Done when

There is a verdict for #7119, or a clear statement of what blocks it.

Activity

  1. self-assigned this
    on Nov 30, 2026
  2. linear-code commented on Nov 30, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions