Skip to content

fix(codespaces): use lightweight debian-12 image, for #7294 [skip buildkite] - #7713

Merged
rfay merged 3 commits into
ddev:mainfrom
stasadev:20251015_stasadev_codespaces_image
Oct 20, 2025
Merged

rfay merged 3 commits into
ddev:mainfrom
stasadev:20251015_stasadev_codespaces_image

Conversation

@stasadev

@stasadev stasadev commented Oct 15, 2025 •

Copy link
Copy Markdown
Member

The Issue

ERROR: failed to build: failed to solve: failed to register layer: write /home/codespace/.local/lib/python3.12/site-packages/numpy.libs/libscipy_openblas64_-6bb31eeb.so: no space left on device

Related:

How This PR Solves The Issue

Uses the same technique as in:

Adds CI=true to .devcontainer/setup_test_project.sh (to omit instrumentation while testing PRs in Codespaces).

Manual Testing Instructions

Click "Open in GitHub Codespaces" button.

Open in GitHub Codespaces

@stasadev ➜ /workspaces/ddev (20251015_stasadev_codespaces_image) $ df -h
Filesystem      Size  Used Avail Use% Mounted on
overlay          32G  7.3G   23G  25% /
tmpfs            64M     0   64M   0% /dev
shm              64M     0   64M   0% /dev/shm
/dev/root        29G   22G  7.6G  74% /vscode
/dev/loop4       32G  7.3G   23G  25% /workspaces
/dev/sdb1        44G  3.4G   39G   9% /tmp

Automated Testing Overview

Release/Deployment Notes

Devcontainers images: https://mcr.microsoft.com/en-us/artifact/mar/devcontainers/base/tags
This image: https://mcr.microsoft.com/en-us/artifact/mar/devcontainers/base/tag/debian-12 (has arm64 as well)
ARM64 image size is 864MB
Universal image size (amd64) was 10.4GB

@stasadev
stasadev requested review from a team as code owners October 15, 2025 10:48
@stasadev

stasadev commented Oct 15, 2025 •

Copy link
Copy Markdown
Member Author

It's not ready yet, because dev tools are not installed:

@stasadev ➜ /workspaces/ddev (20251015_stasadev_codespaces_image) $ make
/bin/bash: line 1: go: command not found

Edit: added "go" feature. (I tried to add "tiny go" to make the install faster, but it didn't work.)

@stasadev
stasadev marked this pull request as draft October 15, 2025 10:58
@stasadev
stasadev force-pushed the 20251015_stasadev_codespaces_image branch 3 times, most recently from ddc511b to b0c85b5 Compare October 15, 2025 11:58
@stasadev
stasadev marked this pull request as ready for review October 15, 2025 12:23
@stasadev

Copy link
Copy Markdown
Member Author

It takes 5 minutes to be ready and another 5 minutes to set up a test project:

2025-10-15 12:12:57.825Z: Configuration starting...
...
2025-10-15 12:17:20.041Z: Running the postCreateCommand from devcontainer.json...
2025-10-15 12:17:20.041Z: ./.devcontainer/setup_test_project.sh
...
2025-10-15 12:22:48.625Z: Finished configuring codespace.

@rfay rfay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works great, thanks!

I think when we return to this we probably don't need to do the setup-test-project when we're opening it. We can offer that as an option or something.

@rfay
rfay merged commit 07a598a into ddev:main Oct 20, 2025
@rfay
rfay deleted the 20251015_stasadev_codespaces_image branch October 20, 2025 18:38
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.

2 participants