Troubleshooting / convert warnings and errors
convert warnings and errors
hatchrun convert prints files over 1 MiB first, then warnings, then
errors, on standard
error. This page sorts them by what you need to do. Every message is
in Error and warning messages.
Warning or error
Section titled “Warning or error”| Warning | Error | |
|---|---|---|
| What it means | A key was dropped or changed | A job, event, input or file was left out |
| Exit code | 0 if there are no errors | 1 |
| The config | Has the job, without that key | Lacks the job; has everything else |
| Typical words | “was dropped”, “became” | “names no runner template”, “has neither”, “the job was dropped” |
A job that needs a dropped job is dropped too, with a warning that ends in “which did not convert” or “which calls a reusable workflow”. Fix the first job and the others come back.
Safe to ignore
Section titled “Safe to ignore”These change nothing a job does:
- unknown keys,
unknown key `foo` was dropped; permissionsandrun-name;strategy.fail-fastandstrategy.max-parallel;withon a run step, andshellorworking-directoryon a uses step, which GitHub ignores too;- a matrix value that runs on the same template as an earlier one.
Needs a decision
Section titled “Needs a decision”concurrency. hatchrun will not cancel older runs of a branch. Fine for most repositories.environment. The job keeps the name, but the environment does not come with it. Create it in the hatchrun app with its branch patterns, approval and secrets. A job that names a missing environment fails. See Environments.- A retired Ubuntu label became
ubuntu-latest. The job now runs on Ubuntu 26.04. Run it once and check the tools. - macOS or Windows matrix legs were dropped. Keep a GitHub workflow for them.
- An event other than push, pull_request, schedule or workflow_dispatch. Keep that workflow on GitHub Actions.
Needs a fix
Section titled “Needs a fix”servicesorcontainer. Start the containers withdocker runin a step. See Migrate: services.- Matrix
includeorexclude. Rebuild with extra workflow entries. See Migrate: matrix. timeout-minutesorcontinue-on-erroras an expression. Set a value by hand.- A reusable workflow call. Copy its jobs in. See Migrate: reusable workflows.
Errors
Section titled “Errors”| Error | Fix |
|---|---|
runs-on names no runner template |
Use a template label, or keep the job on GitHub |
runs-on: ${{ matrix.KEY }} over two templates |
Split the job by runner |
uses: docker://... |
Use docker run in a run: step |
strategy or jobs context |
Use matrix and needs |
| A bad expression | Fix it in the GitHub file |
| Two files become one workflow | Rename one file |
| A file that is not valid YAML | Fix the YAML; the file is skipped |
| A file over 1 MiB | Shrink it; the file is skipped and the rest convert |
When nothing is written
Section titled “When nothing is written”convert writes no config when nothing converted at all, which
includes every file being over 1 MiB, when a file cannot be read, or
when there is no .github/workflows/ and you named
no files. The messages say which.