Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
theofficialgman opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@theofficialgman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant