Skip to content

Conversation

@vertex451
Copy link
Contributor

@vertex451 vertex451 commented Jan 5, 2026

Description

Ubuntu's package repository updated and removed the old package version libudev-dev_255.4-1ubuntu8.11. The CI system is trying to fetch a specific old version that no longer exists in the repository.

Changes

  • Replaced apt install with apt-get install which is more suitable for scripts
  • added apt-get update to update cache before install
  • Added a cleanup step to free up the runner space. I remove not used staff like dotnet, android, haskell deps.

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • (n/a) provided a link to the relevant issue or specification
  • (n/a) included the necessary unit and integration tests
  • (n/a) added a changelog entry to CHANGELOG.md
  • (n/a) included comments for documenting Go code
  • (n/a) updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

@vertex451 vertex451 requested a review from a team as a code owner January 5, 2026 10:57
@coderabbitai
Copy link

coderabbitai bot commented Jan 5, 2026

Walkthrough

Updated GitHub Actions CI: the Ubuntu setup action now runs apt-get update before installing packages, and the tests workflow adds a "Free disk space" step that removes specific system directories prior to build steps.

Changes

Cohort / File(s) Summary
GitHub Actions Ubuntu Setup
.github/actions/setup-ubuntu/action.yaml
Changed install step from a single-line sudo apt install -y … to a multi-line shell script that runs sudo apt-get update then sudo apt-get install -y ….
Tests workflow — free disk step
.github/workflows/tests.yaml
Added a "Free disk space" step in the build-bins job that removes specific directories (/usr/share/dotnet, Android libs, GHC dirs) before setup/build.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 apt-get wake, then tidy the den,

I hop and I clear where the old files have been,
Packages fresh, the workflow takes flight,
CI hums softly into the night.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'ci: update cache before install' directly matches the primary change of adding apt-get update before install in the setup-ubuntu action.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The PR description clearly explains the problem (outdated package version in Ubuntu repository) and details the changes made (apt-get update, apt install replacement, disk cleanup).
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch artem/fix/CI

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/actions/setup-ubuntu/action.yaml (1)

17-19: LGTM! This correctly fixes the CI failure.

The addition of apt-get update ensures the package cache is refreshed before installation, which resolves the issue with the removed libudev-dev version. The switch from apt to apt-get is also a good practice for scripting, as apt-get provides a more stable interface for automated environments.

Optional: Consider adding error handling for network resilience

For improved robustness against transient network issues, you could add retry logic or explicit error handling:

 run: |
-  sudo apt-get update
-  sudo apt-get install -y make direnv unzip lz4 wget curl npm jq pv coreutils libudev-dev
+  sudo apt-get update || { echo "apt-get update failed, retrying..."; sleep 5; sudo apt-get update; }
+  sudo apt-get install -y make direnv unzip lz4 wget curl npm jq pv coreutils libudev-dev

Or for stricter error handling:

 run: |
+  set -e
   sudo apt-get update
   sudo apt-get install -y make direnv unzip lz4 wget curl npm jq pv coreutils libudev-dev
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 56645e3 and ccfd92d.

📒 Files selected for processing (1)
  • .github/actions/setup-ubuntu/action.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: network-upgrade
  • GitHub Check: release-dry-run
  • GitHub Check: lint-go
  • GitHub Check: sims
  • GitHub Check: build-bins
  • GitHub Check: tests
  • GitHub Check: build-macos
  • GitHub Check: coverage

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Free disk space
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After I fixed version issue I started to hit out of space error.
Decided to cleanup github action runner deps that are not used in our case.

@vertex451
Copy link
Contributor Author

Moved the solution to akash-network/support#406

@vertex451 vertex451 closed this Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants