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

Pin Ubuntu version in github action to 22.04 #1171

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

aliuk2012
Copy link
Contributor

This week, Github changed the ubuntu-latest to Ubuntu 24. This broken our linting action where shellcheck keep on following with the following error:

Run npm run shellcheck

> [email protected] shellcheck
> npx shellcheck ./script/**/*[^utils] ./script/utils/**

[INFO ] ShellCheck binary not found or invalid, downloading to '/home/runner/work/hmpps-temporary-accommodation-ui/hmpps-temporary-accommodation-ui/node_modules/shellcheck/bin/shellcheck'
[INFO ] Downloading 'https://github.com/vscode-shellcheck/shellcheck-binaries/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.gz' to '/tmp/uNDjpK/shellcheck.download'
[INFO ] Extracting '/tmp/uNDjpK/shellcheck.download' to '/tmp/uNDjpK'
[INFO ] Copying '/tmp/uNDjpK/shellcheck' to '/home/runner/work/hmpps-temporary-accommodation-ui/hmpps-temporary-accommodation-ui/node_modules/shellcheck/bin/shellcheck'
[INFO ] ShellCheck binary successfully downloaded to '/home/runner/work/hmpps-temporary-accommodation-ui/hmpps-temporary-accommodation-ui/node_modules/shellcheck/bin/shellcheck'
./script/**/*[^utils]: ./script/**/*[^utils]: openBinaryFile: does not exist (No such file or directory)
Error: Process completed with exit code 2.

See: https://github.com/ministryofjustice/hmpps-temporary-accommodation-ui/actions/runs/12350577855/job/34517811023

We have seen this error before and it was an issue with github action runners. I noticed that the ubuntu version has been bumped and its most likely why shellcheck has broken again.

All the jobs also had the following warning from Github: ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see actions/runner-images#10636

This week, Github changed the `ubuntu-latest` to Ubuntu 24. This broken our linting action where shellcheck keep on following with the following error:

```
Run npm run shellcheck

> [email protected] shellcheck
> npx shellcheck ./script/**/*[^utils] ./script/utils/**

[INFO ] ShellCheck binary not found or invalid, downloading to '/home/runner/work/hmpps-temporary-accommodation-ui/hmpps-temporary-accommodation-ui/node_modules/shellcheck/bin/shellcheck'
[INFO ] Downloading 'https://github.com/vscode-shellcheck/shellcheck-binaries/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.gz' to '/tmp/uNDjpK/shellcheck.download'
[INFO ] Extracting '/tmp/uNDjpK/shellcheck.download' to '/tmp/uNDjpK'
[INFO ] Copying '/tmp/uNDjpK/shellcheck' to '/home/runner/work/hmpps-temporary-accommodation-ui/hmpps-temporary-accommodation-ui/node_modules/shellcheck/bin/shellcheck'
[INFO ] ShellCheck binary successfully downloaded to '/home/runner/work/hmpps-temporary-accommodation-ui/hmpps-temporary-accommodation-ui/node_modules/shellcheck/bin/shellcheck'
./script/**/*[^utils]: ./script/**/*[^utils]: openBinaryFile: does not exist (No such file or directory)
Error: Process completed with exit code 2.

```
See: https://github.com/ministryofjustice/hmpps-temporary-accommodation-ui/actions/runs/12350577855/job/34517811023

We have seen this error before and it was an issue with github action runners. I noticed that the ubuntu version has been bumped and its most likely why shellcheck has broken again.

All the jobs also had the following warning from Github:
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see actions/runner-images#10636
@aliuk2012 aliuk2012 force-pushed the pin-ubuntu-version-in-github-workflow branch from 17f4ea2 to c9e9b52 Compare December 17, 2024 10:12
@aliuk2012 aliuk2012 merged commit af6a79f into main Dec 17, 2024
7 checks passed
@aliuk2012 aliuk2012 deleted the pin-ubuntu-version-in-github-workflow branch December 17, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants