Skip to content

Your pull request's result

KeepSnappy measured your pull request and gave it a result. This page is for you if someone else on your team set KeepSnappy up. For a quick answer, read What to do for each word. How a result is decided has the full rules behind each word.

Where you see the result

Each journey (one end-to-end test) gets one word per phone model (the simulator’s device type, such as iPhone 16). You can read it in these places:

  • The job log and the workflow run’s Summary page. The log prints the word, then one line for each journey that changed, worst first.
  • The dashboard: Branches, then your branch. It shows the places (screens, taps, scrolls) that changed, with their numbers.
  • The terminal: npx --no-install keepsnappy status --branch my-feature prints the word for each journey and phone model, and a dashboard link. Before init has added the CLI to your project, use npx @keepsnappy/agent status.
  • Slack, when your team has a channel connected, and a comment on the pull request when your workflow runs keepsnappy act.
  • The KeepSnappy check on your pull request. A passing check can still hold a Slightly worse or a Can’t tell, so read the word, not only the colour.

What the check does with a Worse depends on how your team set it up. With verdict_gate: blocking, or no verdict_gate, a Worse that blocks fails the check: the step then exits with 3. With verdict_gate: advisory, which init writes for a new app, the check passes and the word still says Worse (Required or advisory checks).

When you push again, the result may say Still Worse or No change now (was Worse in session 1). It is still compared with main, your comparison branch, not with your previous push, and the check follows only that comparison.

How the result reads

A result has four parts:

  • The word, such as Worse. It is the word of the worst place: the times of several places are never added up. Beside the word stands that place’s time and what drives it, for example Does 18 ms more work, or Does 18 ms more work, worst of 3 places when more places got slower.
  • The places that got slower, each with the time it added and what drives it, for example does 18 ms more work or same work, 12 ms slower. A place reads Worse when it added one frame (16.7 ms) or more in every run of your branch, and Slightly worse from 8.3 ms.
  • The components that carry each place’s time, largest first and at most three, for example Components: ChatRow 20 ms (more renders). Each part says whether the component rendered more times (more renders), is new, did the same work slower (slower renders), or is not certain. What a slower place says lists every form.
  • The places that could not be judged, each with its reason, such as “main has too few runs at this place”. With fewer than three judged places the result is Can’t tell: “too few places could be judged”. When a place is not judged says what to do for each reason.

When memory is the only thing that got worse, the result says so in place of a time, for example More memory held over launch after the journey; no place slower.

What to do for each word

Every word and label has the full list.

You seeWhat it meansWhat to do
WorseA place added one frame (16.7 ms) or more in every run of your branch, or memory is past its Worse limit. The check shows it as your team set it up (above).Look at the places (below). Then fix the places, or mark a false alarm on the page.
Worse (not blocking)Slower, for a reason that does not count against the pull request: your branch and main were measured differently, main has too few sessions at the changed places, or the platform hasn’t had its own noise check yet. Every word and label says when each applies. The check passes.Look at the places. When the cause was the setup, run again once it is fixed.
Slightly worseA place added 8.3 ms or more in every run of your branch, or memory is past its Slightly worse limit, and nothing reaches Worse. The check passes.Look at the place on the page when you have time.
No change or BetterNothing got slower. A place that got faster reads No change: today’s rules do not give Better yet.Nothing. This covers only the journeys that ran: a screen no journey visits is not measured.
Can’t tellKeepSnappy could not compare, or fewer than three places could be judged. The reason is under the word.Do what the reason says. For “main does not have enough sessions on this phone and journey yet” there is nothing to do on your branch: main’s next sessions decide it. For “there are too few valid runs in one session”, find out why runs failed, then run your branch again. For “too few places could be judged”, open the places that were not judged: each says what it needs. Every reason: Results.
No main to comparemain had no runs on this phone model when your branch ran.Ask whoever set KeepSnappy up to run main on this phone model, then run your branch again. Once main has three sessions there, the dashboard offers Compare with main now: it judges your branch again without a new run.
Session failedThe session ended with fewer than the three valid runs it needs, because runs failed or sent no data. Nothing was compared.Read the test log of the run that did not count, fix it, then run again.
Not judged yetKeepSnappy has not judged the session yet.Wait a few minutes. The link next to it opens the result.

When the job log says Session failed: no run sent any data. Check that the build carries the SDK and that the app reaches the API., the build did not measure anything. That is a setup problem, not your change. On real phones on BrowserStack, Can’t tell — the device session failed means BrowserStack ended the session early: run the job again. Troubleshooting has both.

When it is Worse

  1. Open your branch on the dashboard (Branches, then the branch). Each slower place says the time it added and what drives it, and names the components that carry that time (above). Investigate lists the screens, taps and components that changed, each with its value on main and on your branch.
  2. Look for a Likely cause beside a slower place. It is there when your workflow runs keepsnappy act: an AI read the changed code and guesses where the cause is.
  3. Look for an answer beside the place, or in keepsnappy status: KeepSnappy’s same-commit check, or an AI that calls the place a likely false alarm. Both are information: the word and the check stay as they were (False alarms).
  4. Then do one of two things:
    • Fix the places and push. The push gets a new session, and its result says whether the places are still slower.
    • If you looked and the slowdown is not from your change, mark the alarm a false alarm: choose Mark false alarm, write why, and choose Save. The mark is a note for your team, and keepsnappy status no longer counts the place as blocking. It does not change the stored result or the check: with verdict_gate: blocking, keepsnappy run --wait still fails on a blocking Worse, marked or not. See False alarms.

Is it my change?

One slow run never makes a Worse: a place must add the time in every run of your branch. Before you change code, check three things:

  • Did your pull request edit the journey? Then it is compared with a main that ran the old journey. Put journey changes in their own pull request (Journeys).
  • Did main itself just get slower there? Your branch is compared with main’s last three sessions. Until main confirms its own slowdown, the comparison uses main’s sessions from before it. If your branch contains that main commit, the Worse can come from main.
  • Is it the phone model CI always uses? A new model needs three main sessions of its own.

If none of these applies, the slowdown is most likely in your change. How a result is decided explains how a place is judged and the other rules.

Run it again

In CI, re-run the KeepSnappy workflow from its run page on GitHub. The re-run measures your commit again as a new session, and your branch’s result then comes from that newest session.

On your Mac, build the measuring build first (Try it on your Mac), then run:

Terminal window
npx --no-install keepsnappy run --upload --wait --branch my-feature --commit "$(git rev-parse HEAD)" --device <simulator UDID>

The simulator UDID is the simulator’s ID: xcrun simctl list devices booted prints it. Boot a simulator of the phone model CI uses: on any other, main has no sessions and the result is No main to compare.

A new commit or a new session changes the result, and so do more main sessions for a Can’t tell or No main to compare. For “the sides were derived with different versions”, ask whoever set KeepSnappy up to recompute both sides in Setup, with no new runs. A mark, an AI answer and waiting change nothing, except for Not judged yet.

Ask for help

Ask whoever set KeepSnappy up on your team first. They own the workflow, the journeys and main’s sessions. For a question to the KeepSnappy team, write to support@keepsnappy.com. Send:

  • the dashboard link of the session (the job log prints it),
  • the commit, the journey and the phone model,
  • the link of the workflow run,
  • what you expected, for example that your change does not touch the slower screen.