Skip to content

Troubleshooting / My workflow did not run

My workflow did not run

You pushed, or opened a pull request, and no hatchrun check runs appeared. Work through this list in order. Each item says how to check it and how to fix it.

The hatchrun GitHub App must be installed on the organization, with access to this repository, and an owner must have approved its latest permissions.

Check on GitHub under the organization’s Settings, GitHub Apps, hatchrun, Configure. See Install the GitHub App.

hatchrun reads only .hatchrun/config.yml at the commit of the event. .hatchrun/config.yaml, hatchrun.yml or a file on another branch does nothing.

Terminal window
git show HEAD:.hatchrun/config.yml | head

For a pull request, the file must be in the pull request’s head commit.

Terminal window
hatchrun validate

A problem in a workflow stops that workflow. A problem that belongs to the whole file, such as an executor with an unknown label, stops every workflow.

Fix every line validate prints. See Fix validate errors.

A config over 1,048,576 bytes is refused. hatchrun validate says hatchrun: .hatchrun/config.yml is 1048579 bytes; the limit is 1048576. Check the size:

Terminal window
wc -c .hatchrun/config.yml

The workflow’s on: must have a key for the event: push for a push, pull_request for a pull request. A workflow with only schedule never starts on a push.

  • Branch filters. For a push, the pushed branch must pass branches or branches-ignore. For a pull request, the base branch must pass, not the head branch.
  • Tag filters. A push trigger with only tags never starts on a branch push. One with only branches never starts on a tag push.
  • Pull request types. With no types, only opened, synchronize and reopened start a workflow. Labelling or editing a pull request does not.
  • Patterns. The last matching pattern decides. A name no pattern matches does not pass. release/* does not match release/1.0/x; use release/**.

See Triggers and filter patterns.

  • Only the first 300 changed files are checked. In a large pull request, the file that matters may be past them.
  • With paths-ignore, a change that touches only ignored files does not start the workflow.
  • Tag pushes skip path filters.

Pull requests from forks never start workflows. Push the branch to the repository itself, or ask a maintainer to.

The workflow can start and still plan no jobs. branches and tags on workflow entries drop jobs whose ref does not match, and every entry that requires a dropped one is dropped too.

A workflow whose every entry is dropped shows no check runs.

10. Schedules come from the default branch

Section titled “10. Schedules come from the default branch”

A schedule runs only from the config on the default branch. A schedule added on a feature branch does nothing until it is merged.

Push an empty commit to send a new event:

Terminal window
git commit --allow-empty -m "ci: trigger"
git push

If that starts the workflow, the first event was probably lost. See Webhook delivery problems.