fix: detect and recover from Hetzner primary_ip_limit exceeded error (#2905)

When parallel E2E runs exhaust Hetzner's Primary IP quota, the CLI now
detects the `resource_limit_exceeded` / `primary_ip_limit` error, automatically
cleans up orphaned Primary IPs (unattached to any server), and retries once.
If cleanup doesn't free quota, a clear message guides users to delete stale
resources or request a quota increase.

Fixes #2902

Agent: code-health

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
A 2026-03-23 03:26:32 -07:00 committed by GitHub
parent d2f11bbf06
commit 5392ff2d7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 358 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.25.16",
"version": "0.25.17",
"type": "module",
"bin": {
"spawn": "cli.js"