Set up / Check runs and statuses
Check runs and statuses
hatchrun reports results through GitHub check runs. You read them where you read GitHub Actions results today: on the commit, in the pull request’s merge box and in its Checks tab.
One check run per job
Section titled “One check run per job”Every job hatchrun plans gets its own check run, named after its job id. Matrix combinations and parallel copies are separate jobs, so each gets its own check run:
| Workflow entry | Check runs |
|---|---|
test |
test |
test with matrix: { node: [20, 22] } |
test (20), test (22) |
test on a job with parallelism: 2 |
test [1/2], test [2/2] |
hold with type: approval |
hold |
A job dropped by its branches or tags filter gets no check run.
See job ids
for the full naming rule.
States
Section titled “States”| State on GitHub | Meaning |
|---|---|
| Queued | The job waits for the jobs it requires, a machine, or an approval |
| In progress | The job runs on a machine |
| Success | Every step passed, or failed with continue-on-error: true |
| Failure | A step failed |
| Cancelled | The job timed out, or the run was cancelled |
| Skipped | The job’s if: was false, or a job it requires did not succeed |
hatchrun updates a check run when a step ends, never per log line.
Read a failed check
Section titled “Read a failed check”- Open the pull request and choose the failed check, or open the Checks tab.
- The summary names the step that failed and shows the end of its log.
- Lines a step prints in GitHub’s
::error file=PATH,line=N::messageform appear as annotations on the changed files. - Choose the link to the full log in the hatchrun app.
The full log of each job lives in the hatchrun app. While a job runs, the app streams the log. When the job ends, hatchrun stores the log and keeps it for 30 days.
Anyone with read access to the repository can read its logs. Logs of public repositories are public. Secret values are masked on the machine before the log leaves it.
Require checks before merging
Section titled “Require checks before merging”Branch protection and rulesets can require hatchrun check runs like any other check. Require the job ids that run on every pull request. A job that its filters drop never reports, so requiring it blocks the merge.