Skip to content

feat(app): SSM-resolved GPU DLAMI base + boot-install DCV (#286/#389) - #587

Merged
scttfrdmn merged 2 commits into
mainfrom
feat/389-dcv-boot-install
Sep 12, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
feat/389-dcv-boot-install

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Part 2 of 2 implementing the #286 decision (Part 1 is libs#40). Together they let spawn app launch paraview work in any region with no owned/shared AMI — closing the #389 defect class by construction.

What changes (spawn)

  • Base AMI resolved via SSM, not an owned table. spawn app launch now calls the existing GetRecommendedAMI(region, instanceType) resolver — the AWS Deep Learning Base GPU AMI (AL2023, NVIDIA driver preinstalled, present in every region) for GPU instance types, or standard AL2023 otherwise. The old hard error (no spore-dcv-base AMI for <app> in <region> — build/share it…) is gone. An optional catalog base_amis pin still wins (custom pre-baked image).
  • DCV installed at boot (dcvInstallBlock()), idempotently: downloads the pinned Amazon DCV server (nice-dcv-server + nice-xdcv for virtual sessions + nice-dcv-gl for GPU OpenGL on x86_64) from the official DCV CloudFront layout, GPG-verified. DCV is free on EC2 and self-licenses via S3, so there's no license/subscription step. If dcv is already present (a pinned pre-baked base), the install is skipped.
  • Root volume → 100 GiB (floored at the AMI snapshot size, so it can only grow, never undershoot the larger DLAMI) for the DLAMI base + multi-GB container images.
  • Docs refreshed: docs/catalog-overlay.example.yaml (base_amis now optional), docs/dcv-streaming-design-review.md (component table + boot sequence).

Why this is the right shape

The only bake-worthy GPU component is the NVIDIA driver, and AWS already builds/distributes/maintains it (DLAMI, SSM-resolvable everywhere). DCV installs from a repo in ~1–2 min and is free on EC2. So owning a base AMI — the source of #389 — buys nothing. See the decision record on #286.

Tests

  • New TestDCVInstalledAtBoot: asserts the idempotent guard, the correct pinned tarball/CloudFront path, nice-xdcv/nice-dcv-gl/GPG-key presence, and that the install precedes the cert step and dcvserver start.
  • Existing TestBuildContainerDCVUserData, TestContainerRunWrapper, TestBuildDCVUserData_LegacyUnchanged, TestCatalogValid stay green (verified locally against the libs#40 catalog via a temporary replace).

Dependency / merge order

  1. Merge libs#40 (removes base_amis from the shipped catalog; makes it an optional pin) and release libs v0.44.0.
  2. Then a one-line go get github.com/spore-host/[email protected] && go mod tidy bump is added to this PR before merge. Until then this PR compiles and all unit tests pass against the current libs (v0.43.3); only the shipped catalog data lags.

Not yet verified

End-to-end pixel streaming needs a real GPU instance (no CI integration test for DCV exists). The boot-install follows AWS's documented AL2023 recipe and is unit-tested at the script level, but a cost-controlled real-GPU validation run (TTL + explicit terminate + leak-check) is the required follow-up before calling this "working end to end."

Refs #286, #389.

…389)

spawn app launch no longer depends on an owned/shared per-region 'DCV base AMI'
(the dangling/unshared/duplicated table that caused #389). It now resolves the
AWS-maintained GPU Deep Learning Base AMI (AL2023, NVIDIA driver preinstalled,
every region) via GetRecommendedAMI's SSM lookup, and installs the free,
self-licensing Amazon DCV server at boot (idempotent). An optional catalog
base_amis pin still wins for custom pre-baked images. Root volume bumped to
100 GiB (floored at the AMI snapshot) for the DLAMI + container images.

Refs #286, #389.
@codecov

codecov Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/app.go 80.00% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit 04e14d1 into main Sep 12, 2026
7 checks passed
@scttfrdmn
scttfrdmn deleted the feat/389-dcv-boot-install branch September 12, 2026 05:29
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