---
title: "Set up a dev sandbox"
canonical: "https://support.appfire.com/space/RS/3624304708/Set+up+a+dev+sandbox"
format: markdown
---
A **Dev sandbox** is a virtual machine that is started, used by QueueZero during code verification, and is then spun down; depending on your organization configuration, a dev sandbox may be suspended for a short time instead of immediately removed. Dev sandboxes are used to verify QueueZero changes against a repository's real environment before a pull request is created. 

When using a dev sandbox, QueueZero creates an isolated environment for the repository and runs its install, lint, and test commands against the proposed changes. This gives QueueZero additional evidence that the generated code works with the repository rather than relying only on static code analysis. If QueueZero encounters and errors during CI/CD, the dev sandbox also provides a full environment against which errors can be explored and fixes implemented. All of this happens before a pull request is generated. 

> 📝 Environments are configured separately for each repository in a space.

## Before you start

To configure a dev sandbox environment:

- You must be a Space Admin, Organization Admin, or Owner.
- The repository must already be added to the QueueZero space.
- Your organization's plan must include dev sandboxes. If the feature is not available for your plan, these options are not displayed.
- If the repository uses dependencies from a private package registry, configure the required registry credentials during setup.

## Create a dev sandbox

1. Open the QueueZero space.
2. Select **Settings**.
3. Open the **Knowledge** tab.
4. Select the repository you want to configure.
5. Click the **Environment** card or open the **Environment **tab.
6. In the upper-right corner, click **Configure environment**.

QueueZero opens a guided setup process for the environment.

## Configure the environment

The setup process consists of four stages.

### 1. Select the base image

First, select the base image for your environment. Each option is best for a specific scenario.  

|  | **Barebones** | **Universal (Default)** | **Your own image** |
| --- | --- | --- | --- |
| Included | Git and a shell | Node, Java and Python toolchains | As you configure |
| Actions | Plans and edits.<br>No installs, nothing runs. | Installs dependencies, runs your lint and tests. | Installs dependencies, runs your lint and tests **on you exact toolchain**. |
| Speed | Fastest - nothing to set up. | Installs once, then reuses the warm state | Fast once prepared; first copy takes longer. |
| Purpose | No build in the repo - docs, configuration, infrastructure - or you only want a diff to review. | **Almost always**. Standard toolchains uses versions declared in your repo. | Your build needs something at the OS level, or you already maintain a CI image. |

Depending on the image you select, the wizard will include different options: 

- **Barebones** - No options. Review and save only.
- **Universal** - Select options for Runtimes, Commands, and Registries.
- **Build your own image** - Select a base image to pull, Commands, and Registries.

### 2a. Select runtimes (Universal image)

Select the runtimes that should be included in the environment. In addition to standard inclusions, runtimes from your repo are detected for inclusion. Additionally, select the node package manager to use. 

> 📝 **Note**: Leaving a runtime unchecked will exclude it from the environment, even if the repo requests it.

### 2b. Base image (Build your own image)

The Base image must be a linux/arm64 image with a shell and git. Provide a container image reference; digest pins are highly recommended as moving tags make it so that QueueZero cannot reproduce a run. Additionally, if the image lives in a private registry, select the image pull identity. 

### 3. Add commands

QueueZero detects the ecosystems used in the repositories and creates one card for each. Within each card, you can add any specific commands to be run for installing dependencies, compiling, linting, and testing. Leaving any of the command categories blank means QueueZero will decide how to fulfill that step; installs are run based on lockfiles, testing and linting will be based on any checks the agent chose to run. 

### 4. Configure private package registries

Add private registries as needed for your sandbox. Dependencies will resolve from the registries selected. Only the Registries that have been added to your space can be selected. See [Registries tab](https://appfire.atlassian.net/wiki/spaces/RS/pages/3734831105) for more information on adding registries. 

### 5. Test the environment

Start the environment build.

QueueZero creates the isolated environment and prepares the repository so that its own install, lint, and test commands can be run against generated changes.

The first environment build can take some time. The status on the card updates while detection and building are in progress.

## Run environment checks

After the environment has been built, select **Run checks** to run the repository's configured checks again.

QueueZero displays the output in a log so you can review the install, lint, and test results.

Re-running checks usually takes less time than the initial environment build.

If the repository contains multiple components, each component can have its own verification result. This means some components may pass while others fail.

## Understand results

QueueZero displays run results in several parts of the resolution experience, including the work item Overview, Logs, and Resolve screens. Run results are based on the dev sandbox configured for use with each repository. 

You may see results such as:

- **Verified against the repository's real environment** - QueueZero successfully ran the repository checks against the generated change.
- **Not verified - the booted env did not complete verification for this fix** - Grounding was available, but verification did not complete successfully.
- **Not verified - this fix ran without an environment** - The resolution ran without environment verification.

A **Not verified** result does not mean the resolution failed. QueueZero can still complete the resolution and create a pull request without Grounding. Environment verification provides additional confidence in the change; it is not required for the pull request to be created.

## Fix issues from a work item

After a resolution, QueueZero may show an environment recommendation on the work item.

If an environment was not enabled for a repository, you may see an **Enable** link.

If an environment was enabled but the environment could not be built, you may see **Fix environment**.

These links take you to the relevant repository in **Space settings > Knowledge** so you can configure or repair the environment.

These messages are advisory. A completed resolution can still have a valid pull request even when its changes were not verified with a dev sandbox.