The PR Previews Page
The PR Previews page lists every preview of your project's backend, shows where each one is in its life, and lets you open, copy, rebuild or tear down a preview. You can also start a preview of any backend branch by hand. This page explains each part of the screen, every status, and every item in the Actions menu.
What this page is for
A preview is a short-lived copy of your backend, with its own empty database and its own web address, that Helm starts from your Docker Compose file for a pull request or a branch. Most previews are requested by your GitHub Actions workflows; see Set Up PR Previews for Your Backend. This page is where you watch them, find their addresses, and act on them. What happens to a preview over its life, including what a rebuild keeps and what it deletes, is explained in Preview Lifecycle.
Open the page
- Open your project in Helm.
- In the sidebar, under Build, click PR Previews. The page is at
/<company>/<project>/previews/.
The Build section, and the PR Previews link in it, appear in the sidebar only when the project has the Build module and your project membership includes Build access. If you do not see the link, ask an Owner or Admin of your organization; see Companies, Projects and Roles.
What is on the page
From top to bottom, the page shows:
- The heading PR Preview Containers.
- A row of status filter buttons, starting with All.
- The Create preview card, shown only to Project Admins and above.
- The Preview build cache card with Clear preview build cache, shown when the project has a Backend Repo URL.
- The Fleet previews table. Every new preview appears here.
- The Local previews table. It holds previews made by Helm's earlier way of running previews, and for most projects it says "No preview environments found". It is described at the end of this page.
The Fleet previews table
Each row is one preview, newest first. A preview that has been torn down stays in the list with the status Destroyed, so you can see what happened to it.
Columns
| Column | What it shows |
|---|---|
| (star) | The pin. A filled amber star means the preview is pinned: nothing tears it down until someone unpins it. An outline star means it is not pinned. A Project Admin clicks the star to pin or unpin. See "Pinning a preview" below. |
| Status | Where the preview is in its life. See "Statuses" below. Under a ready preview, Rebuild requested means a rebuild you asked for is waiting to start. |
| Operation | What the request asked Helm to do. New previews always show Create. A rebuild does not add a row, so you see Rebuild only on rows from before rebuilds worked in place. Destroy marks a request to remove a preview. |
| PR / Ref | The pull request number, for example #42, when the preview was asked for a pull request. Otherwise the branch name, for example staging. |
| Hostname | The preview's host name, for example myapp-pr-42-a1b2c3.preview.helmcode.dev. When the preview is ready, the name is a link that opens the preview in a new tab. Before Helm has chosen a name, the cell says "assigned by the fleet". |
| Commit | The first characters of the commit Helm built, when the request named one. A dash means Helm builds the newest commit on the branch. |
| Requested | How long ago the preview was requested, for example "2 hours ago". Under it, "Expires Nov 18, 14:02" says when Helm tears the preview down because it reached your organization's Preview TTL (hours). A pinned preview says "Pinned, does not expire" instead. |
| Actions | The Actions menu. See "The Actions menu" below. While a teardown is being sent, the cell says "Cancelling…". For a destroyed preview it shows a dash. |
Lines under a row
Some rows have an extra line underneath:
- A red line with an error under a failed preview gives the reason it failed. See "Why a preview failed" below.
- "Last rebuild failed:", in amber, means Helm refused the latest rebuild before changing anything, and the line ends with "The previous version is still serving." The preview stays ready at the same address with its old code. (A rebuild that fails after it started makes the preview Failed instead, because a rebuild replaces the old version.) The line goes away after a later rebuild succeeds. See "When a rebuild fails" in Preview Lifecycle.
- "Rebuild not started:", in amber, under a ready preview means Helm did not start the rebuild you asked for. The preview is exactly as it was. The line gives the reason, and it is cleared when you ask for another rebuild. The reasons are listed in "When a rebuild is not started" in Preview Lifecycle and in Troubleshooting below.
- "The Helm GitHub App cannot read ...", in amber, under a failed preview means Helm could not copy the backend repository. The line links to Install the Helm GitHub App when Helm knows the install page, and to See which repositories Helm can read, which opens Company settings → GitHub. Give the App access to the repository, then click Rebuild. See Connect GitHub for PR Previews.
- Artifacts lists files Helm stored for the preview, when there are any. Each name is a download link that works for one hour after the page loads. A name followed by "(uploading…)" is not ready yet, and "(upload failed)" means the file could not be stored.
When Helm cannot send requests
If Helm's preview service is unreachable for a while, an amber box appears above the table: "The fleet is temporarily unavailable. Your requests are saved and will be sent as soon as it comes back. Statuses below may be out of date until then." Nothing you asked for is lost. Your creates, rebuilds and teardowns are sent when the service is back, and the statuses catch up.
Statuses
The table below lists every status in the Fleet previews table. The status your
workflow reads from GET /api/previews/<id>/ is shown in the second column.
| Status on the page | API value | What it means | What to do |
|---|---|---|---|
| Requested | pending_submit | Helm has saved the request but has not yet sent it on to be built. | Wait. It normally moves on within seconds. If the amber "temporarily unavailable" box is shown, it moves on when the service is back. |
| Submitted | submitted | The request has been sent and accepted. | Wait. |
| Queued | queued | The preview is waiting for room on Helm's preview machines. | Wait. If it is still Queued after 15 minutes, see Troubleshooting below. |
| Provisioning | provisioning | Helm is starting the preview's virtual machine, copying the branch, checking your Compose file, running your Pre-deploy Command and starting the stack. | Wait. A small stack is typically ready a few minutes after the request. Building and starting may take up to 20 minutes, and the web service then has five minutes to answer. |
| Ready | ready | The web service answers at the preview's address. | Use it. Click the host name to open it. |
| Failed | failed | The preview could not be built or started. The red line under the row gives the reason. | Fix the reason, then click Rebuild to start it again as a new preview. |
| Cancelling | cancel_requested | Someone asked for a teardown, and Helm is sending the request. | Wait. |
| Draining | draining | Helm is removing the preview's virtual machine, its services and its address. | Wait. |
| Destroyed | destroyed | The preview and all its data are gone, and the address answers 404. | Nothing. Request a new preview if you need one. |
A preview that is being rebuilt keeps the status Ready, but its address answers with an error until the new version is ready, because a rebuild replaces the preview's virtual machine and starts its database empty.
Why a preview failed
The red line under a failed preview shows the reason in the form reason: details,
for example build_failed, readiness_failed or
predeploy_failed: exit code 1. When one of your commands failed, the line ends with
the last lines the command printed. The status request in your workflow returns the same text
in error_message. Most reasons come from your repository or your settings, and
their fixes are in the Troubleshooting sections of
Set Up PR Previews for Your Backend,
Write the Compose File
and Preview Commands.
A line that starts "Helm refused this preview's settings or Compose file. Fix the setting named below, then rebuild:" means Helm refused the preview before anything started, because a preview setting or the project's Compose file broke a rule, or the Compose file could not be read. The rest of the line is the reason, for example "service app sets privileged"; it names the setting or the Compose file entry to change. The settings previews refuse are listed in Write the Compose File.
Helm also keeps a failed preview's logs: the output of docker compose up, of each
command and of every service. To see them, contact Helm support with the preview's address.
Two reasons need a step outside your code:
- A line that starts "Helm will not use the Helm GitHub App for the GitHub account" means the GitHub account that owns the backend repository is not connected to your Helm organization. An Owner or Admin of the organization connects it in Company settings → GitHub → Connect GitHub.
- "Internal server error: Helm couldn't create this preview right now. Please try again later." means the problem was on Helm's side. Click Rebuild later, and contact Helm support if it keeps happening.
The status filter
The buttons above the tables show only previews in one group of statuses. The button in use is
highlighted, and the filter applies to both tables. Click All to see every
preview again. The filter is part of the page address, for example
/<company>/<project>/previews/?status=failed, so you can bookmark or share a filtered view.
| Button | Fleet previews it shows |
|---|---|
| All | Every preview. |
| Provisioning | Previews that are still starting: Requested, Submitted, Queued and Provisioning. |
| Running | Ready previews. |
| Failed | Failed previews. |
| Tearing Down | Cancelling and Draining previews. |
| Rebuilding | Ready previews whose rebuild you asked for and Helm has not yet started. Once the rebuild starts, the preview is listed under Running again. |
| Destroyed | Previews that have been torn down. |
When no preview matches, the table says "No fleet previews match this filter".
How the page updates
You do not need to reload the page. While a preview is starting, rebuilding or being torn down, the page checks every few seconds, and the row changes within seconds of the preview moving on: its status, its address (a link as soon as it is Ready), its Actions menu and any message under it. After you create, rebuild or tear down a preview the page checks again at once, so a new preview appears straight away as Requested and then moves to Queued, Provisioning and Ready by itself. The Requested column's "... ago" times also keep counting.
When every preview is stable (ready, failed or destroyed), the page checks only once a minute, which is enough to show a preview a pull request has just requested. It does not check while the browser tab is hidden, and checks at once when you come back to it.
A Project Admin can change how often the page checks while nothing is changing: open Settings, click Dashboard under Build, enter a number of seconds in Previews Poll, and click Save Changes. It is 60 seconds when empty. The same value applies to the previews on the project dashboard.
Create a preview by hand
The Create preview card starts a preview of any branch of the backend repository, with no pull request and no workflow run. Use it to try a branch, or to give a tester a backend to point an app at. The card appears only to Project Admins and above.
Before you start, the project's Backend Repo URL must be set; see Preview Settings Reference.
-
In Branch, type the name of a branch of the backend repository, for example:
feature/my-branchThe field starts filled in with the project's Fallback Branch, or
stagingwhen that setting is empty. If you paste a name that starts withrefs/heads/ororigin/, Helm removes that part. -
Click Create preview. The button turns grey and shows a spinner while Helm checks the branch.
-
The card shows a green message that starts "Requested a preview of", followed by the branch name. The new preview appears at the top of the Fleet previews table with the status Requested, and moves to Ready when it is up.
A preview made this way is always a backend preview of exactly the branch you typed. Helm checks that the branch exists first and does not fall back to another branch. It has no pull request, so it never replaces another preview, and it counts against your organization's preview limit. Under the button, the card says how long the preview lasts, for example "Reclaimed automatically after 168h." This is your organization's Preview TTL (hours) setting; see "Expiry and limits" in Preview Lifecycle.
If the preview cannot be created, the card shows the reason in red. The messages are listed in Troubleshooting below.
Clear the preview build cache
Helm saves the Docker layers it builds for a preview (the saved steps of each image, such as installed packages) in the build cache of the project's backend repository, so later previews build faster. If a preview keeps building from a wrong or outdated layer, clear that cache. Only the preview layers are deleted; the repository's CI caches stay.
The Preview build cache card names the backend repository from the project's Backend Repo URL setting. It does not appear when that setting is empty. Clearing needs the Project Admin role or higher; other members see the button greyed out.
- Click Clear preview build cache.
- Your browser asks you to confirm and says that the next preview will rebuild every image from the start. Click OK.
- A panel under the card shows the progress at each site, and then how many entries were deleted and how much space was freed. The build machines at each site carry it out, usually within a few minutes.
The sizes of the preview build cache are on the Caching page under Build, in the repository's Preview builds row; see Caching. The card says the repository "does not belong to one of your organization's linked GitHub accounts" when the repository's owner is not linked in Organization Settings → GitHub.
The Actions menu
Click Actions on a row to open its menu. Click anywhere else to close it. Which items appear depends on the preview's status:
| Status | Items in the menu |
|---|---|
| Ready | Admin and Copy admin URL (only when the project has an Admin path), Copy URL, Rebuild (or "Rebuild requested…"), Teardown |
| Requested, Submitted, Queued, Provisioning, Draining | Teardown |
| Failed | Rebuild |
| Cancelling | No menu. The cell says "Cancelling…". |
| Destroyed | No menu. |
Open the preview
To open a ready preview, click its host name in the Hostname column. It opens in a new tab. Anyone who can see the page can do this.
Admin
Opens your app's own admin site in a new tab, at the preview's address followed by the
project's Admin path. For example, with the Admin path /admin/ it
opens https://myapp-pr-42-a1b2c3.preview.helmcode.dev/admin/. This is the admin
site built into your backend, such as the Django admin, not a Helm page. Anyone who can see the
page can use it; signing in is up to your app.
The item appears only when the project has an Admin path. A Project Admin sets it in Settings → Preview Environments; see Preview Settings. When the Admin path is empty, the menu has no Admin or Copy admin URL item, because Helm takes an empty path to mean your backend has no admin site.
Copy admin URL
Copies the same admin address to your clipboard. The item says "Copied!" for a moment and the menu closes. If your browser blocks clipboard access, it says "Copy failed". Like Admin, it appears only when the project has an Admin path. Anyone who can see the page can use it.
Copy URL
Copies the preview's address, for example https://myapp-pr-42-a1b2c3.preview.helmcode.dev,
to your clipboard, with the same "Copied!" or "Copy failed" message. Paste it into a test app's
server setting or a message to a tester. Anyone who can see the page can use it.
Rebuild
Needs the Project Admin role or higher. What it does depends on the status:
-
On a ready preview, it rebuilds the preview in place. Your browser asks you to confirm the rebuild and names the commit it builds; click OK. Helm deletes the preview's virtual machine and then builds a new one:
- The preview is unavailable during the rebuild. Its address answers with an error until the new version is ready, which takes about two minutes, or longer when images are built from the start.
- The address and the preview's id stay the same.
- The data starts empty. The database and every other volume are inside the virtual machine that is deleted, so nothing is kept, whatever your Compose file says. Your Pre-deploy and First-deploy Commands run again and can load seed data.
The status stays Ready during the rebuild. The row shows Rebuild requested until the rebuild starts, and the menu shows "Rebuild requested…" instead of a second Rebuild. The rebuild uses the project's current variables, Compose settings and commands.
-
On a failed preview, it starts the preview again as a new preview from the same branch, pull request and commit. Your browser asks: "Start this preview again as a new preview from ... ? It gets a new address and an empty database, and it needs a free preview slot." Click OK. A new row appears at the top of the table with the status Requested. The failed row stays as it was.
If Helm refuses the rebuild, an amber box above the table gives the reason until the table next refreshes. Exactly what a rebuild keeps and changes is in Preview Lifecycle.
Teardown
Needs the Project Admin role or higher. On a pinned preview it removes nothing: a dialog says "This preview is pinned. Unpin it before tearing it down." with Unpin and Cancel. See "Pinning a preview" below. On any other preview it removes the preview, with every service in its Compose file and all their data, and frees its place in your organization's preview limit. Your browser asks: "Tear this preview down? The fleet will destroy it and release its resources." Click OK.
- If the preview was still Requested, it is withdrawn at once and shows Destroyed.
- Otherwise the status changes to Cancelling, then Draining, then Destroyed. The Actions cell says "Cancelling…" while the request is sent.
A failed preview has no Teardown item, because it holds nothing to remove and takes no place in the limit.
Pinning a preview
Pin a preview when people still need it, for example while testers use a build that talks to it. A pinned preview has a filled amber star at the start of its row, on this page and on the Dashboard, so everyone can see it must stay up. Helm also keeps it up:
- Teardown on the page opens a dialog instead of removing the preview: "This preview is pinned. Unpin it before tearing it down."
- A workflow or script that calls
POST /api/previews/<id>/teardown/gets the answer409with the codepreview_pinned, and the preview stays up. The Helm MCP toolteardown_preview_environmentgives the same refusal. - It does not expire. Its row says "Pinned, does not expire" instead of an expiry time.
- Closing its pull request or deleting its branch does not tear it down.
A pinned preview still counts toward your organization's preview limit. A new run of the same pull request still replaces it with a new preview, and the pin moves to the new one.
Pin or unpin
Pinning and unpinning need the Project Admin role or higher.
Find the preview's row in the Fleet previews table.
Click the outline star at the start of the row. It turns into a filled amber star, and the expiry line under Requested changes to "Pinned, does not expire".
To unpin, click the filled star again. The preview can then be torn down by hand, and it expires on its usual schedule.
You can also unpin from the Teardown dialog: click Teardown on a pinned preview, then Unpin. The table redraws with the preview unpinned; click Teardown again to remove it. Members without the Project Admin role see the star but cannot click it, and the dialog shows only Cancel with the line "Unpinning a preview requires Project Admin or higher."
A failed or destroyed preview cannot be pinned; its row shows a dash instead of a star. Agents
can pin and unpin with the Helm MCP tools pin_preview_environment and
unpin_preview_environment. There is no preview API endpoint for pinning, so a CI
workflow cannot unpin a preview a person pinned.
The Local previews table
This table lists previews made by Helm's earlier way of running previews. New previews never appear here, so for most projects it shows "No preview environments found". If your project still has rows here, they work as follows.
- The columns are Status, Platform (iOS, Android or Backend, the app whose workflow asked for the preview), PR / Branch, Subdomain (a link once the preview is running), Commit, Created and Actions.
- The statuses are Provisioning, Running, Failed, Tearing Down, Rebuilding and Destroyed. A failed row shows its reason in red underneath.
- The star at the start of the row pins and unpins the preview, as in the Fleet previews table. A pinned local preview is also never the one Helm tears down to make room when your organization reaches its limit.
- The Actions menu of a running preview has Admin (only when the project has an Admin path), Copy URL, Console, Rebuild and Teardown. Console opens a terminal panel at the bottom of the page with a shell inside the app's container; close it with the × button. A failed preview offers Rebuild and Teardown, and a provisioning or rebuilding one offers Teardown.
- Rebuild and Teardown need the Project Admin role or higher, as in the Fleet previews table. A member below that who clicks one sees "Rebuilding a preview requires Project Admin or higher." or "Tearing down a preview requires Project Admin or higher." above the table.
- A rebuild here builds the newest commit on the branch again, after the confirmation "Rebuild '...' from the latest commit on its branch? This tears down the current containers and re-provisions." As in the Fleet previews table, the address is unavailable while it runs and the database starts empty.
To move a project off this table, tear its local previews down and request new ones.
Troubleshooting
"This preview environment is pinned. Unpin it before tearing it down."
Someone pinned the preview after your page was drawn, so the teardown was refused. The table now shows the star. Ask whoever pinned it whether it can go; if it can, click the star to unpin it, then click Teardown.
I don't see PR Previews in the sidebar
The project does not have the Build module, or your membership does not include Build access. Ask an Owner or Admin of your organization to give you Build access on the project.
I don't see the Create preview card
Only Project Admins and above see it. Ask a Project Admin to create the preview, or to give you the role.
"Branch is required."
The Branch field was empty. Type a branch name and click Create preview again.
"This project has no preview backend repo configured — set PREVIEW_BACKEND_REPO_URL in Settings."
The project's Backend Repo URL is empty. Open Settings, click
Preview Environments under Build, fill in
Backend Repo URL, for example https://github.com/your-org/your-backend,
and click Save Changes.
"Branch "..." was not found in the preview backend repo."
The backend repository has no branch with that name. Check the spelling and capital letters, and make sure the branch has been pushed to GitHub.
"Could not reach the preview backend repo to check "..."
Helm could not read the repository's branches, for example because GitHub did not answer or the Helm GitHub App cannot read the repository. Check the repository's access in Connect GitHub for PR Previews, then try again.
"This organization is at its limit of N active preview environment(s), counted across all of its projects."
Your organization already has as many previews as it may have at once. Tear down a preview you no longer need, in this project or another, then try again. The same message can appear when you click Rebuild on a failed preview, because that starts a new preview.
"This preview is still starting. Rebuild it once it is ready."
You clicked Rebuild before the preview was ready. Wait for the status Ready, then click Rebuild again.
"Rebuild not started:" is shown under a ready preview
Follow the reason on the line. If it says the preview settings or the Compose file were not accepted, fix the setting it names, and check the settings on the Preview Environments settings tab; see Preview Settings Reference.
A preview stays Queued or Provisioning
Queued means the preview is waiting for room on Helm's preview machines; Provisioning means it is being built and started.
- If it is still Queued after 15 minutes, or Provisioning after 45 minutes, click Teardown and create the preview again.
- If that does not help, contact Helm support with the preview's address. Helm support checks that the preview machines are online and have room, that nothing on Helm's side is holding the request back, and what the preview's own logs say.
The Copy items say "Copy failed"
Your browser did not allow the page to write to the clipboard. Allow clipboard access for the Helm site, or click the host name, open the preview, and copy the address from the address bar.
The Actions menu has no Admin item
The project's Admin path is empty. If your backend has an admin site, ask a
Project Admin to open Settings, click Preview Environments
under Build, type the admin site's path, for example /admin/, in
Admin path, and click Save Changes. The PR Previews page shows
the items by itself the next time it checks for changes.
Admin opens a "not found" page
Your backend has no page at the project's Admin path. Check the path your backend uses for its admin site and correct Admin path in Settings → Preview Environments, or empty the field if the backend has no admin site.