Repository navigation
Conversation
Retakes never run on pull requests from forks. Capture reads the public baseline URL from the `VISUAL_PUBLIC_BASE_URL` repository variable, and variables are empty in `pull_request` runs from forks, so `capture.js` skips the retake. That was the case in all 115 fork capture jobs from 2026-11-19 to 2026-11-23, and forks, Meta exports included, made 55 of the 77 PR reports in that time. All 3 transient differences reported on PRs then were on forks (two Apple Intelligence notifications and an unsettled scroll), while retakes replaced 6 bad captures on same-repo PRs and `main`. This names the bucket once, as `bucket` in `packages/rn-tester/visual-tests/config.json`, and works out its public URL from it. Capture, compare and approve all read it from there, and the upload steps read it with `jq`. The `VISUAL_BUCKET` and `VISUAL_PUBLIC_BASE_URL` variables are no longer used and can be deleted once this lands, so there is no second copy to drift. `VISUAL_GCP_PROJECT` and `VISUAL_WORKLOAD_IDENTITY_PROVIDER` stay, since they grant upload access and keep compare from running on forks of the repository. Changelog: [Internal] Test plan: New unit tests for the config, and actionlint reports nothing for the three workflows. Against the real bucket, with nothing uploaded and no GitHub writes: compare's `prepare` on main run 45069821697 found both baselines at distance 0 with no differences, as CI did, approve's `prepare` for #60201 got the fingerprint of its stored report, and capture's baseline lookup found the iOS baseline at the URL worked out from the config.
This branch has not been 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.
Screenshot retakes never run on PRs from forks, which are most PRs (Meta exports included). Capture reads the bucket's URL from a repository variable, and variables are empty in
pull_requestruns from forks. All 3 transient differences reported on PRs since #60110 were on forks.This names the bucket once, in
config.json, for capture, compare and approve.VISUAL_BUCKETandVISUAL_PUBLIC_BASE_URLcan be deleted once this lands. The GCP project and identity provider stay as variables.Changelog: [Internal]
Test plan:
New unit tests. Ran compare's and approve's
prepareread-only against the real bucket, and both matched CI's results.