Repository navigation
ci(ios): send doc screenshots that stay unstable to a separate PR - #4447
Merged
Merged
Conversation
…er 5 nights Keep a per-screenshot count of consecutive nights held back as unstable in a doc-screenshot-history artifact, list them in the job summary, and after 5 nights update the screenshot anyway and flag it in the maps-docs PR for a manual look.
…ocs PR After 5 unstable nights, push the captures to auto/example-screenshots-flaky instead of the normal screenshots branch. While its PR is open, earlier flaky screenshots are carried over and the PR is updated in place.
This branch was previously 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
Follow-up to #4446. A doc screenshot that differs from the docs and from last night's capture is held back as "Unstable, not updated", so an example that renders differently every night would hide real changes indefinitely.
update-doc-screenshots.jskeeps a per-screenshot history inFLAKY_DIR/history.json: consecutive unstable nights, the first night, and the last 7 nights' % off the docs and % off last night. The nightly downloads it (doc-screenshot-historyartifact) from the run it takes the previous capture from and uploads the new one. Every night the job summary lists the unstable screenshots.auto/example-screenshots-flaky, never to the normal screenshots branch. Its commit message, which becomes the PR body, lists each screenshot with its night count and recent diffs and asks for a manual check. Stable changes keep going to the normal PR, so that one can be merged quickly and the flaky one checked or closed on its own.maps-docs needs a matching change, which this PR doesn't make:
example-screenshots-pr.ymlthere only runs forauto/example-screenshots, so it also has to trigger onauto/example-screenshots-flaky(with a per-branch concurrency group). Until then the flaky branch is pushed but no PR is opened for it.I preferred this over a looser threshold against the accepted screenshot, which still hides changes smaller than the noise, and over updating when the example source changed, which misses style, tile and SDK changes.
Tested locally with a fixture script that replays 8 nights of synthetic captures (nights with only flaky, only stable and both kinds of changes, a missing capture, a night without a previous capture, the count reset), and runs the new workflow step against a local maps-docs repo with a stubbed
gh(new PR, open PR with carry-over after main moved, same screenshot flagged again, closed PR). I didn't run the workflow itself, since it pushes to maps-docs.Checklist
CONTRIBUTING.mdyarn generatein the root folder/exampleapp./example)Screenshot OR Video
Component to reproduce the issue you're fixing