ubicloud

Run heavy test suites and builds on ephemeral 16-vCPU Ubicloud VMs with automatic cleanup and quota management.

139k|20.6k|Updated Mar 11, 2026
Ready to run
npx skills add https://github.com/garrytan/gstack --skill ubicloud-garrytan
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: ubicloud
Source: https://github.com/garrytan/gstack/tree/main/ubicloud
Command: npx skills add https://github.com/garrytan/gstack --skill ubicloud-garrytan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Long-running test suites and builds consume shared CI quota and leave orphaned VMs when processes hang or disconnect. This Skill eliminates wasted resources by provisioning ephemeral VMs with TTL-based expiration, automatic reaping, quota preflight checks, and a hang watchdog that kills stalled commands and captures their last output. ## Core Features & Use Cases - Ephemeral VM Provisioning: Launch 16-vCPU standard VMs with automatic teardown on completion or after a specified TTL. - Quota Management: Preflight quota checks refuse VM creation before exhausting shared project resources; optional waiting for available capacity. - Hang Detection & Recovery: A watchdog kills remote commands that produce no output for a configurable idle timeout, preventing silent hangs. - Automatic Reaping: Expired VMs are cleaned up by their owner on the next run, preventing quota accumulation. - Use Case: Your full integration test suite takes 90 minutes on a 4-core sandbox but only 12 minutes on a 16-core VM. Use this Skill to run the suite on an ephemeral VM, capture results, and automatically destroy the VM when done. ## Quick Start Run a test suite on a 16-vCPU Ubicloud VM by setting your API key, owner identifier, and executing the runner with your bootstrap script and test command.

Frequently Asked Questions about ubicloud

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a test suite on an Ubicloud VM?▼

Set UBICLOUD_API_KEY and UBI_OWNER, then execute `$U run --setup bootstrap.sh -- 'make test'`. The runner creates the VM, streams your repository, runs the bootstrap once, executes your test command, pulls artifacts back, and destroys the VM automatically.

What happens if my test run hangs or disconnects?▼

The watchdog kills the remote command if it produces no output for the idle timeout (default 1800 seconds) and captures the last 40 lines of output. Set UBI_TTL_HOURS above your longest expected run so the reaper cleans the VM if the process dies completely.

How does quota management prevent VM exhaustion?▼

Preflight checks add your VM's vCPUs to the running total before creation and refuse if the ceiling (UBI_QUOTA_VCPUS) is exceeded. Set UBI_QUOTA_WAIT to pause instead of failing, or use a smaller VM size.

What is the UBI_OWNER and why is it required?▼

UBI_OWNER is a lowercase identifier (letters and digits) naming your VMs in the project so the reaper knows which expired VMs to destroy. Every machine and session must set it before the first vm creation to prevent orphaned resources.

Can I reuse a committed test configuration across multiple runs?▼

Yes. Define .gstack/ubicloud.json with your setup script, test command, VM size, and environment variables. Run `$U verify` to execute it, and the runner refuses if the file is missing, preventing per-lane wrappers that drift.

Why does the runner refuse to create a VM with quota preflight refused?▼

The project has reached its vCPU ceiling. Wait for another owner's VMs to finish, run `$U reap` to clean expired VMs, reduce the VM size, or set UBI_QUOTA_WAIT to pause and retry when capacity is available.