actions / actions/runner

shellcheck hangs and exits after timeout on ubuntu-latest (24.04) but does not on local ubuntu 24.04 install

Open
#3,667 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

Describe the bug
shellcheck hangs and exits after timeout on ubuntu-latest (24.04) but does not on local ubuntu 24.04 install.
we use shellcheck to check our bash scripts for any formatting errors at pi-apps. after the automatic update of ubuntu-latest from ubuntu-22.04 to ubuntu-24.04 we noticed that shellcheck hangs and the runner kills the application after a few minutes on ubuntu-24.04 when it did not on ubuntu-22.04. This issue occurs with 100% frequency on the ubuntu-24.04 runners. This issue does NOT occur on a local ubuntu 24.04 install on real hardware so I deemed it an issue with the github actions runner or the hosted cloud hardware configuration.

See the following actions for the error:
https://github.com/Botspot/pi-apps/actions/runs/12858439525/job/35847541399#step:4:2279

To Reproduce
Steps to reproduce the behavior:

  1. setup a ubuntu-latest (ubuntu-24.04) action
  2. install and run shellcheck on this file https://raw.githubusercontent.com/Botspot/pi-apps/4bb0d5ea96cd535875f3867cd35de6acfd77cec8/gui
  3. Observe a hang and timeout:
 In gui line 611:
      --width $width --height $height --xposition $xoffset --yposition $yoffset \
              ^----^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
                              ^-----^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
                                                  ^------^ SC2206 (warning): Quote to prevent word splittin
Error: The operation was canceled.

Expected behavior
Github actions does not hang when running shellcheck

Runner Version and Platform

Runner Image
Image: ubuntu-24.04
Version: 20250105.1.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20250105.1/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20250105.1
Runner Image Provisioner
2.0.417.1

What's not working?

hang on running shellcheck that does not occur on native ubuntu 24.04 hardware

Job Log Output

 In gui line 611:
      --width $width --height $height --xposition $xoffset --yposition $yoffset \
              ^----^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
                              ^-----^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
                                                  ^------^ SC2206 (warning): Quote to prevent word splittin
Error: The operation was canceled.

Runner and Worker's Diagnostic Logs

logs_33252108520.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked GitHub Actions job log and the attached runner diagnostic logs, then reproduce the command on the specified ubuntu-24.04 runner image using the referenced pi-apps gui file. Compare the hosted runner behavior with local Ubuntu 24.04 execution and trace where shellcheck stops responding. Done means the hang is explained and the runner or execution path no longer times out on this reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, shell, ubuntu
Domain
ci-cd, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.