Run Tests on Test Servers
This guide takes you from an empty organization to a passing test run. It uses one small test. For every setting and key, see Test servers and Test files.
Prerequisites
Section titled “Prerequisites”- Test servers are enabled for your organization. You see Test servers under Infrastructure and Tests next to Deployments when they are.
- A cloud credential for AWS or Hetzner. Test machines are created in that account, so the credential needs the same access as for build servers.
- A GitHub or Gitea repository connected to Reoclo.
- An organization admin to turn tests on for the repository (step 5).
1. Create a test pool
Section titled “1. Create a test pool”A pool decides what kind of machine runs your jobs and how many can run at once.
- Open Test servers and choose Create pool.
- Enter a Name and a Slug. Remember the slug. Your test file selects the pool with it, and it can’t change later.
- Pick the Provider, then the credential, the Region (AWS) or Location (Hetzner), and the Server type or Instance type.
- Set Maximum machines and Job time limit (minutes). If the form shows Monthly budget, net, set it too: Reoclo stops creating machines when the next machine hour would take the month’s spend over it. Without that field, the pool gets Reoclo’s default budget.
- Choose Create pool.
2. Add variables and secrets
Section titled “2. Add variables and secrets”Variables live on the pool, not in your repository. Open the pool with Edit, choose Add variable, and enter a name and a value. Tick Secret for anything sensitive, such as a registry token or an API key.
A secret is write-only. Once saved, the dashboard shows Stored. Type to replace. and never the value. Reoclo masks secret values in job output as ***. Save the pool when you’re done.
3. Write the test file
Section titled “3. Write the test file”Add a file at ci/reoclo/tests/<name>.yml in your repository. The file name is the test’s name.
version: 1pool: cion: push: branches: [main]jobs: unit: image: node:22 timeout_minutes: 20 steps: - name: Install dependencies run: npm ci - name: Run unit tests run: npm testReplace ci with your pool’s slug. Each step runs in the job’s container with sh -e, from the repository root. More files to copy are on the Test examples page.
Commit the file to your default branch. Reoclo reads the push list from the default branch’s copy, so a push trigger only takes effect once the file is there.
4. Check the file
Section titled “4. Check the file”Open Tests. The Repositories table lists every repository with test files: how many it has, whether tests are on, its last run, and a setup score out of 5 with the next step to take. Repositories without tests are under Show repositories without tests. A repository nobody has pushed to since you connected it shows Not checked; choose the Check for test files link in the summary above the table to read the next 25.
Choose your repository. Each test file appears under Test files with a File check of Valid or Invalid. An invalid file shows the reason beside it. Reoclo reads the files on every push to the default branch. Choose Check again if you just pushed and the file isn’t listed yet.
5. Enable tests on the repository
Section titled “5. Enable tests on the repository”A test file runs commands on machines in your cloud account, so tests are off until an admin turns them on.
- Switch on Run tests from this repository.
- Confirm with Enable tests.
Until then, Reoclo lists your test files but runs none of them.
6. Start a run
Section titled “6. Start a run”From the dashboard. Choose Run next to the test, confirm the Branch, and choose Start run. The run uses the head of that branch.
From a push. Push to a branch listed under on.push.branches. Reoclo starts a run at the pushed commit. A push to a non-default branch only starts a run if the default branch’s copy of the file lists that branch.
From a pull request. Add on.pull_request.branches with the target branches, and commit the file to your default branch. A GitHub pull request from a branch in the same repository then starts a run when it is opened, gets new commits or is reopened. Pull requests from forks never run. A newer run for the same pull request or branch cancels the older one. See Test files.
7. Read the run
Section titled “7. Read the run”Your runs are listed under Runs on the Tests page. Filter them by Test and State, then open one.
The run page shows the commit, ref, trigger (a pull request shows its number and links to it), duration and the Jobs. Each job lists its image, machine, needs, duration, exit code and steps. Choose Show logs on a job to watch its output live. Choose Download to save the log, which Reoclo keeps for 30 days.
A job can sit in Waiting before it starts. The page shows why. See Troubleshooting.
8. Cancel and re-run
Section titled “8. Cancel and re-run”Choose Cancel run while a run is active. Running jobs stop, jobs that haven’t started are cancelled, and their machines are deleted. A cancelled job reports exit code 130.
Choose Re-run on a finished run to start a new run of the same test at the same commit.
9. Read the commit status
Section titled “9. Read the commit status”Reoclo posts a status named reoclo/test/<name> on the commit for GitHub and Gitea repositories. It shows on the pull request and the commit, and links to the run page. See Deployment status on GitHub and Gitea for what each result maps to. You can require it in branch protection.
Next steps
Section titled “Next steps”- Test examples for Node.js, Python, Go, load test and secret files
- Test files for every key and limit
- Test servers for pool settings, costs and limits