metrics icon indicating copy to clipboard operation
metrics copied to clipboard

Add `xz-utils` as dependencies

Open MarioZZJ opened this issue 11 months ago • 10 comments

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.04 as workaround

MarioZZJ avatar Dec 28 '24 02:12 MarioZZJ

@lowlighter Hi, I noticed this issue during recent GitHub Actions ubuntu-latest upgrade process.

Would you mind reviewing this PR?

MarioZZJ avatar Dec 28 '24 03:12 MarioZZJ

Might this be related to repository stats no longer seeming to work for the past few days? grafik

tr7zw avatar Jan 09 '25 08:01 tr7zw

Might this be related to repository stats no longer seeming to work for the past few days? grafik

Hey tr7zw, yeah that's the reason. It shouldve failed all builds for you for last few days

MrMasrozYTLIVE avatar Jan 09 '25 08:01 MrMasrozYTLIVE

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.

tr7zw avatar Jan 09 '25 08:01 tr7zw

This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity.

github-actions[bot] avatar Apr 10 '25 02:04 github-actions[bot]

bump

MrMasrozYTLIVE avatar Apr 10 '25 15:04 MrMasrozYTLIVE

This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity.

github-actions[bot] avatar Jul 10 '25 02:07 github-actions[bot]

bump

lishaduck avatar Jul 10 '25 02:07 lishaduck

This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity.

github-actions[bot] avatar Oct 10 '25 02:10 github-actions[bot]

Bump

lishaduck avatar Oct 10 '25 02:10 lishaduck