Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 5, 2026

Updates project to Go 1.25.5 (latest stable) and modernizes CI infrastructure by upgrading deprecated GitHub Actions. Additionally addresses CI disk space issues by adding automatic cleanup before test execution.

Changes Made

Go Version Update

  • Go runtime: 1.23.01.25.0 (toolchain 1.24.21.25.5)
  • Dockerfile: Updated to use golang:1.25-bookworm base image
  • Dependencies: Updated via go mod tidy for Go 1.25 compatibility

GitHub Actions Updates

  • actions/setup-go: v2v5
  • actions/checkout: v2v4
  • goreleaser/goreleaser-action: v2v6
  • codecov/codecov-action: v2.1.0v5

CI Disk Space Management

  • Added jlumbroso/free-disk-space@v1.3.1 to all test jobs in pr.yml and push.yml workflows
  • Automatically frees ~30GB of disk space before tests run by removing:
    • Android libraries (~14GB)
    • .NET runtime (~2.7GB)
    • Haskell runtime
    • Large misc packages (~5.3GB)
    • Docker images
    • Swap storage (~4GB)
  • Prevents "no space left on device" failures during unit and integration tests

Affected Workflows

  • pr.yml, push.yml - Go version updates, all actions updates, and disk space cleanup
  • release.yml - Go version matrix and all actions updates
  • image.yml, pages.yml - Checkout action only

Testing

  • ✅ Docker build passes with Go 1.25
  • ✅ Code review completed - no issues found
  • ✅ Security scan passed - no vulnerabilities detected
  • ✅ Disk space action pinned to stable version for production reliability
Original prompt

let's try to fix CI tests, bump golang to latest, update deps


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
@mudler mudler marked this pull request as ready for review January 5, 2026 22:08
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI tests and update Go to latest version Bump Go to 1.25.x and update GitHub Actions dependencies Jan 5, 2026
Copilot AI requested a review from mudler January 5, 2026 22:10
@mudler
Copy link
Owner

mudler commented Jan 5, 2026

@copilot seems the CI tests failed, can you fix these?

Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 5, 2026

@copilot seems the CI tests failed, can you fix these?

Fixed in a5fa616. The Dockerfile was using golang:bullseye which provided Go 1.24.6, but go.mod requires Go >= 1.25.0. Updated to use golang:1.25-bookworm base image.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/upx/upx/releases/latest
    • Triggering command: /usr/bin/curl curl -sL REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

@mudler
Copy link
Owner

mudler commented Jan 6, 2026

@copilot unit tests are failing

Copy link
Contributor Author

Copilot AI commented Jan 6, 2026

@copilot unit tests are failing

The unit test failure is due to disk space exhaustion on the GitHub Actions runner (49 MB left), not related to the Go 1.25 upgrade. The test fails with "write /tmp/tmpluet/.tmp-snapshot...: no space left on device". This is a flaky infrastructure issue - the Docker build now succeeds with my Dockerfile fix (a5fa616). A re-run should pass once the runner has sufficient disk space.

@mudler
Copy link
Owner

mudler commented Jan 6, 2026

@copilot if it's a space issue, use https://github.com/marketplace/actions/free-disk-space-ubuntu to clean up before starting tests

Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 6, 2026

@copilot if it's a space issue, use https://github.com/marketplace/actions/free-disk-space-ubuntu to clean up before starting tests

Added in d144533. The Free Disk Space action now runs after checkout in all test jobs (tests-unit, tests-integration, tests-integration-img) in both pr.yml and push.yml workflows. This removes Android, .NET, Haskell, large packages, Docker images, and swap storage to free up ~30GB of disk space before tests run.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/jlumbroso/free-disk-space/releases/latest
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • https://api.github.com/repos/jlumbroso/free-disk-space/tags
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Copilot AI changed the title Bump Go to 1.25.x and update GitHub Actions dependencies Bump Go to 1.25.x, update GitHub Actions dependencies, and add disk space management Jan 6, 2026
@mudler mudler merged commit d303aab into master Jan 6, 2026
7 checks passed
@mudler mudler deleted the copilot/fix-ci-tests-update-golang branch January 6, 2026 08:37
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