Skip to content

FreeBSD runners have low disk space #1123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hasufell opened this issue Dec 16, 2022 · 6 comments
Closed

FreeBSD runners have low disk space #1123

hasufell opened this issue Dec 16, 2022 · 6 comments
Labels

Comments

@hasufell
Copy link

I'm currently using Cirrus CI for ghcup, which is the main Haskell installer and HLS, which is the Haskell LSP Server. I build them on FreeBSD on Cirrus CI.

I frequently have issues with running out of space, although I already try hard to remove intermediate artifacts.

Latest example: https://cirrus-ci.com/task/6355502150451200

@fkorotkov
Copy link
Contributor

You can change your disk size:

freebsd_instance:
  image_family: freebsd-13-1
  disk: 100

This way you won't be restricted by the default disk size that the images have. 👌

@hasufell
Copy link
Author

Can you explain what the value does? GB? Percent of something? There seems to be no documentation for this.

I set it to 100 and 150 and still get out of disk space errors:

https://cirrus-ci.com/task/4730447451127808?logs=main#L6006

ghcup: /tmp/cirrus-ci-build/.ghcup/logs/ghcup.log: withFile: resource exhausted (No space left on device)

https://github.com/haskell/haskell-language-server/blob/9f8ce8f1e927d8b286fbf8886dfd040f9ce251da/.cirrus.yml#L3

@fkorotkov
Copy link
Contributor

My bad. Indeed freebsd_instance just uses the default disk size and it's not possible to customize it.

Thankfully freebsd_instance is a compute_instance under the hood and you can workaround it with a little more lines:

compute_engine_instance:
  image_project: freebsd-org-cloud-dev
  image: family/freebsd-13-1
  platform: freebsd
  disk_size: 100 # Gb

@hasufell
Copy link
Author

That did not work either: https://cirrus-ci.com/build/6635511201136640

100GB should be enough for this job to succeed.

@hasufell
Copy link
Author

Since this is not fixed, please re-open the ticket.

@fkorotkov fkorotkov reopened this Dec 29, 2022
@fkorotkov
Copy link
Contributor

My bad. The option is disk and not disk_size. The following config works:

compute_engine_instance:
  image_project: freebsd-org-cloud-dev
  image: family/freebsd-13-1
  platform: freebsd
  disk: 100 # Gb

freebsd13_task:
  disk_script: df -h

wez added a commit to wezterm/wezterm that referenced this issue Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants