Skip to content

How to find a PR site

Nick Watts edited this page Feb 27, 2023 · 5 revisions

Look for the "This branch was successfully deployed" card above the PR checks. Click "Show environments" and then "View deployment". The linked URL should look something like https://pr-0-dot-bvdp-saturn-dev.appspot.com.

Screenshot 2023-02-27 at 3 55 50 PM

If that card is not present, check that the ci/circleci: deploy-pr check successfully passed. Click "Details" to see output from the deploy-pr job.

There are a limited number of PR environments and thus the environment may get recycled for a new PR. If that happens, the card will say "This branch was previously deployed" instead of "This branch was successfully deployed". Re-run the CircleCI workflow to redeploy the branch to a new environment.

All PR environments are backed by dev, so you should use a non-prod account to log in.

N.B.

  1. Occasionally there won’t be a target URL, even though the deploy step appears to have completed. This is because the latest commit was pushed before the PR was actually opened on GitHub. Clicking Rebuild in the upper right corner of the Circle CI page should cause the deploy to happen.

  2. Sometimes the deploy step will fail. This is the case when the PR was opened by somebody who doesn't have permissions on the repo, so they don't have permission to access the secrets needed for the deploy to actually happen.

  3. The number used for the pr site is the last digit of the PR number. It's technically possible that a site could be clobbered by another, new enough PR, since we only do 0-9. This hasn't been a problem, so we haven't worried about finding a solution.

Clone this wiki locally