Skip to content

fix(antigravity): fail fast with clear message when workspace lacks space for agy - #27

Merged
Lukeluds merged 1 commit into
agentexecutor:mainfrom
Lukeluds:fix/antigravity-install-space-check
Nov 19, 2026
Merged

Lukeluds merged 1 commit into
agentexecutor:mainfrom
Lukeluds:fix/antigravity-install-space-check

Conversation

@Lukeluds

Copy link
Copy Markdown
Collaborator

Follows up on @MushuEE's GKE trial in #9, where a task without resource limits hit AX's default 512Mi memory cap and failed during runtime agy installation with a cryptic tar: Wrote only 8704 of 10240 bytes error:

  • agents/antigravity/install-agy.sh:
    • Checks available space (df -Pm) on both the temp dir and destination dir before downloading against AGY_MIN_FREE_MB (default 450 MiB, covering the ~100 MB archive + ~267 MB binary on memory-backed gVisor volumes). Fails fast with an actionable message pointing to spec.profile.resources.limits.memory.
    • Removes ${tmp}/agy.tar.gz right after tar -xzf succeeds to reduce peak memory usage by ~100 MB before copying the binary into ${dest}.
  • agents/antigravity/test_harness.sh: Adds a unit test verifying the low-space check fails fast without touching the network or creating the destination directory.
  • agents/antigravity/README.md: Documents the memory limit requirement (2Gi minimum, 4Gi recommended) for runtime agy installation.

Verified:

  • ./agents/antigravity/test_harness.sh passes all tests.
  • docker build --build-arg PREINSTALL_AGY=true + ./agents/antigravity/verify_image.sh ... bundled passes.
  • ./scripts/verify/boilerplate.sh passes.

@mayawang mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, much better than the tar error. Thanks Luke!

@Lukeluds
Lukeluds merged commit 060f394 into agentexecutor:main Nov 19, 2026
6 checks passed
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