Skip to content

ci(ios): nightly Percy build of the doc screenshots, Streets basemap visual scene - #4381

Merged
mfazekas merged 1 commit into
mainfrom
ci/percy-nightly-doc-screenshots
Oct 22, 2026
Merged

mfazekas merged 1 commit into
mainfrom
ci/percy-nightly-doc-screenshots

Conversation

@mfazekas

@mfazekas mfazekas commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Extends the Percy visual testing from #4380.

  1. Adds a streets-v12 basemap scene (Budapest z14) to the per-run visual snapshots. The Standard style scene is left out because its labels weren't placed the same way on every run.
  2. Adds ios-nightly-percy.yml, which runs nightly on main (and via workflow_dispatch). It captures the doc screenshots and uploads them to Percy as doc/<group>/<example>. A scheduled run is skipped when main has no commits since the last successful run. The uploads go to their own Percy branch (doc-screenshots), so they never become the baseline for the per-commit builds on main, or the other way round. Diffs under 0.5% of the pixels are ignored (PERCY_VISUAL_CONFIG).
  3. Doc screenshots now use a Release build, so they have no "Connect to Metro" banner or LogBox toast. The status bar override now sets a full battery and active cellular bars; before, it set 1% battery and an animated "searching" indicator. The location arrow still comes and goes, so the copies sent to Percy leave out the status bar. The doc site images keep the full screen.
  4. A new excludeFromPercy example metadata flag keeps 11 examples out of the upload: their screenshots differ between runs because of unfinished camera animations, label placement, random data, the pulsing puck or radar frames.
  5. The doc screenshots job gets a 120 min timeout (90 min for the capture step), and the artifacts are uploaded even when the capture fails or times out.
  6. Fixes ShapeSourceIcon: two images are reported missing at once, and setState from stale state kept only one of them, so a different pin showed on each run.

Note on quota: the Percy project renders each uploaded image in 4 browsers (browser selection is a paid feature), so a nightly build is 59 × 4 = 236 screenshots.

Checklist

  • I've read CONTRIBUTING.md
  • I updated the doc/other generated code with running yarn generate in the root folder
  • I have tested the new feature on /example app.
    • In V11 mode/ios
    • In New Architecture mode/ios
    • In V11 mode/android
    • In New Architecture mode/android
  • I added/updated a sample - if a new feature was implemented (/example)

Screenshot OR Video

I verified this by running the nightly workflow on this branch with a temporary push trigger:

  1. Two runs uploaded to Percy: build #8 and build #10. Build [Android] Error while updating property reactStyle #10 was auto-approved with no unreviewed snapshots. Only two snapshots had any diff (ShapeSourceIcon 0.29%, UserLocationUpdates 0.13%), and both were under the threshold. There's no status bar or Metro banner in the images.
  2. A third run, without the Percy upload, checked the final capture code. 54/59 images were pixel-identical to run 2. ShapeSourceIcon changed as intended (both pins now), and the rest differ by a timestamp or 1–2 px.

@mfazekas
mfazekas force-pushed the ci/percy-nightly-doc-screenshots branch from d52df54 to 188f337 Compare October 22, 2026 09:50
@mfazekas
mfazekas marked this pull request as ready for review October 22, 2026 09:51
…visual scene

- add a streets-v12 basemap scene to the per-run visual snapshots
- nightly (and manual) workflow that captures the doc screenshots and uploads
  them to Percy as doc/<group>/<example> on their own Percy branch, skipped
  when main has no new commits since the last successful run
- doc screenshots use a Release build (no Metro banner / LogBox toast) and a
  fixed status bar override; the Percy copies leave out the status bar
- excludeFromPercy example metadata for the examples with unstable screenshots
- longer timeout for the doc screenshots, artifacts are uploaded on failure too
- ShapeSourceIcon: add the missing images with a functional setState, so
  both pins show instead of whichever image was reported last
@mfazekas
mfazekas force-pushed the ci/percy-nightly-doc-screenshots branch from 188f337 to c17b338 Compare October 22, 2026 09:51
@mfazekas
mfazekas merged commit a029fdf into main Oct 22, 2026
10 checks passed
@mfazekas
mfazekas deleted the ci/percy-nightly-doc-screenshots branch October 22, 2026 10:58

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant