metrics
metrics copied to clipboard
Add `xz-utils` as dependencies
Description
Fix licensed gem installation failure on ubuntu-latest (probably Ubuntu 24.04) runner. The issue was discovered during recent GitHub Actions ubuntu-latest image upgrade (announcement), where nokogiri compilation fails due to missing xzcat.
Problem
When running metrics action on Ubuntu 24.04 (new ubuntu-latest), licensed gem installation failed with:
ERROR: Failed to build gem native extension.
...
/var/lib/gems/3.1.0/gems/mini_portile2-2.8.8/lib/mini_portile2/mini_portile.rb:557:in `xzcat_exe': xzcat not found (RuntimeError)
Solution
Add xz-utils package to Dockerfile dependencies to provide xzcat command required by nokogiri compilation.
Testing
Successfully tested with action running on ubuntu-latest (workflow run)
Notes
Since GitHub's ubuntu-latest upgrade is rolling out until January 17th, 2025 (see announcement):
- This PR could be merged after majority of users migrate to Ubuntu 24.04
- Or affected users can temporarily use
runs-on: ubuntu-22.04as workaround
@lowlighter Hi, I noticed this issue during recent GitHub Actions ubuntu-latest upgrade process.
Would you mind reviewing this PR?
Might this be related to repository stats no longer seeming to work for the past few days?
Might this be related to repository stats no longer seeming to work for the past few days?
Hey tr7zw, yeah that's the reason. It shouldve failed all builds for you for last few days
I had the first failing one today (https://github.com/tr7zw/tr7zw/actions/runs/12682127087/attempts/1 but it worked on a second retry), outside of that I just noticed that all repo stat values vanish from time to time (https://github.com/tr7zw/tr7zw/commit/2482f9a7fbd2dfe714f1de4888bed7bd7ef00aa3#diff-15c77d2bbedf6bd69a53f23e8705a32acfeeb9a45ca324f78e8f385924ab3f29L188), might depend on which ubuntu runner it happens to use.
This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity.
bump
This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity.
bump
This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity.
Bump
