Skip to content

Generated Install ripgrep step can block the agent job indefinitely #53937

Description

@mnkiefer

The generated Install ripgrep prerequisite step can block indefinitely before the agent starts. The installer uses quiet, unbounded apt-get commands, so the job provides no progress output and has no local timeout or fallback when package installation stalls.

This occurred on a GitHub-hosted ubuntu-latest runner, not a self-hosted runner.

Environment

  • gh-aw: v0.86.2
  • Runner: GitHub-hosted ubuntu-latest

Actual behavior

The generated step started at 07:13:04Z and produced only one installer message before it was manually cancelled at 07:19:36Z:

Install ripgrep  2026-08-19T07:13:04.1391302Z Run bash "${RUNNER_TEMP}/gh-aw/actions/install_ripgrep.sh"
Install ripgrep  2026-08-19T07:13:04.1512905Z ripgrep not found; installing with apt-get...
Install ripgrep  2026-08-19T07:19:36.6133961Z The operation was canceled.

The agent never started. Standard run cancellation also did not finish promptly; the run ultimately required the Actions force-cancel endpoint.

The installer in github/gh-aw-actions at v0.86.2, setup/sh/install_ripgrep.sh, executes:

echo "ripgrep not found; installing with apt-get..."
sudo apt-get update -qq
sudo apt-get install -y -qq ripgrep

Neither command has a timeout. The -qq option also makes it impossible to tell whether the update or install command is blocked.

Expected behavior

Generated prerequisite installation should finish within a bounded period or fail with a clear diagnostic, allowing the workflow to terminate normally instead of consuming the full job timeout before agent execution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions