Skip to content

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 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.

These change nothing a job does:

  • unknown keys, unknown key `foo` was dropped;
  • permissions and run-name;
  • strategy.fail-fast and strategy.max-parallel;
  • with on a run step, and shell or working-directory on a uses step, which GitHub ignores too;
  • a matrix value that runs on the same template as an earlier one.
  • 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.
  • services or container. Start the containers with docker run in a step. See Migrate: services.
  • Matrix include or exclude. Rebuild with extra workflow entries. See Migrate: matrix.
  • timeout-minutes or continue-on-error as an expression. Set a value by hand.
  • A reusable workflow call. Copy its jobs in. See Migrate: reusable workflows.
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

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.