Skip to content

ci(e2e): expand subnet pool to all AZs in the VPC#500

Merged
DorianZheng merged 1 commit into
mainfrom
ci/e2e-subnet-pool
May 10, 2026
Merged

ci(e2e): expand subnet pool to all AZs in the VPC#500
DorianZheng merged 1 commit into
mainfrom
ci/e2e-subnet-pool

Conversation

@DorianZheng

Copy link
Copy Markdown
Member

Summary

  • Multi-AZ fallback in e2e-test.yml (ci(e2e): add multi-AZ fallback for EC2 instance creation #491) iterates over AWS_SUBNET_IDS, but the setup script only ever wrote AWS_SUBNET_ID (singular). The iteration degenerated to a single AZ, so today's run died on InsufficientInstanceCapacity for c8i.4xlarge in us-east-1f even though five other AZs had spare capacity.
  • Setup script now enumerates every public subnet in the VPC, writes the comma-joined list to AWS_SUBNET_IDS, and deletes the legacy AWS_SUBNET_ID so the workflow's vars.AWS_SUBNET_IDS || vars.AWS_SUBNET_ID fallback can't quietly revert to a one-AZ pool.

Test plan

  • Re-run ./scripts/ci/setup-ci-runner.sh. Verify it prints Public subnets... ✓ subnet-...,subnet-... (N AZs) and saves AWS_SUBNET_IDS.
  • gh variable list -R boxlite-ai/boxlite shows AWS_SUBNET_IDS (plural) populated and AWS_SUBNET_ID (singular) absent.
  • Re-trigger the E2E workflow. The Start E2E Runner log should iterate subnets and land on one with capacity instead of failing on the first AZ.

The workflow's multi-AZ fallback (#491) iterates over `AWS_SUBNET_IDS`,
but the setup script only saved one subnet (`AWS_SUBNET_ID`), so the
fallback degenerated to a single-AZ try. Run today hit
InsufficientInstanceCapacity for c8i.4xlarge in us-east-1f and gave up
even though five other AZs were available.

Enumerate every public subnet in the VPC, comma-join, and write
`AWS_SUBNET_IDS`. Delete the legacy `AWS_SUBNET_ID` variable so the
workflow's `vars.AWS_SUBNET_IDS || vars.AWS_SUBNET_ID` fallback can't
silently revert to a narrower pool.
@DorianZheng DorianZheng merged commit 9d57486 into main May 10, 2026
10 checks passed
@DorianZheng DorianZheng deleted the ci/e2e-subnet-pool branch May 10, 2026 13:18
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.

1 participant