Repository navigation
ci(ios): refresh the doc site example screenshots through a maps-docs PR - #4382
Merged
Merged
Conversation
1 of 8 tasks
This branch was successfully deployed
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.
Description
The nightly doc screenshot run now refreshes the doc site's example screenshots through a reviewable maps-docs PR instead of them going stale. A new job compares the captured screenshots with maps-docs main and copies only those that changed by more than 0.5% of the pixels (status bar ignored), plus new examples; screenshots of removed examples are dropped and
screenshots.jsonis kept in sync. Unchanged images stay byte-identical. If anything changed it force-pushes a single commit on top of maps-docs main toauto/example-screenshotswith the existing deploy key; rnmapbox/maps-docs#16 opens/updates the PR from that branch.excludeFromPercyexamples differ by 2-80% between runs (measured on three recent captures), so no threshold separates real changes from noise; they are only replaced when new, when the screenshot size changes, or when the workflow is dispatched withrefresh_unstable.Tested with a temporary push trigger that reused the doc-screenshots artifact of run 39746036267: the job pushed the branch with the deploy key, the maps-docs workflow opened a PR, a rerun detected the branch was up to date, and a further push updated the PR body. Test branches and PR are deleted.
Checklist
CONTRIBUTING.mdyarn generatein the root folder/exampleapp./example)