FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix GitHub Actions disk space exhaustion on Ubuntu runners by Copilot · Pull Request #3180 · DeepLabCut/DeepLabCut · GitHub

Fix GitHub Actions disk space exhaustion on Ubuntu runners - #3180

Merged
MMathisLab merged 2 commits into
mainfrom
copilot/fix-github-actions-memory-errors
Jan 13, 2026
Merged

Fix GitHub Actions disk space exhaustion on Ubuntu runners#3180
MMathisLab merged 2 commits into
mainfrom
copilot/fix-github-actions-memory-errors

Conversation

Copilot AI commented Jan 13, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Ubuntu runners were failing with "No space left on device" during dependency installation. The workflow installs ~15GB of ML packages (TensorFlow, PyTorch, OpenCV) but runners only have ~14GB available after OS and pre-installed toolchains.

Changes

  • Free disk space before installation (~10-20GB recovered)

    • Remove unused toolchains: .NET SDK, Android SDK, GHC, CodeQL
    • Prune Docker images
    • Only runs on Linux runners
  • Disable pip caching (--no-cache-dir on all pip installs)

    • Prevents additional GBs of wheel files accumulating during installation
    • Applied to TensorFlow, requirements.txt, pytest, and functional test installations
- name: Free up disk space
  if: runner.os == 'Linux'
  run: |
    sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
    sudo docker image prune --all --force

Total available space increases from ~14GB to ~24-34GB, sufficient for all dependencies.

Original prompt

the guthub actions is hitting memory errors, why?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com>
MMathisLab marked this pull request as ready for review January 13, 2026 16:31
MMathisLab self-requested a review January 13, 2026 16:31
MMathisLab changed the title [WIP] Fix memory errors in GitHub Actions Fix memory errors in GitHub Actions Jan 13, 2026
Copilot AI changed the title Fix memory errors in GitHub Actions Fix GitHub Actions disk space exhaustion on Ubuntu runners Jan 13, 2026
MMathisLab merged commit 99b45d9 into main Jan 13, 2026
11 checks passed
MMathisLab deleted the copilot/fix-github-actions-memory-errors branch January 13, 2026 17:31
deruyter92 added a commit to deruyter92/DeepLabCut-live that referenced this pull request Jan 23, 2026
MMathisLab pushed a commit to DeepLabCut/DeepLabCut-live that referenced this pull request Jan 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL