← Back to Pull requests

feat: add Lambda Cloud GPU provider #153

Open
unknown opened this pull request with 170 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 20, 2026 06:32 UTC
Author

What this PR does / why we need it

Adds an opt-in lambda provider for Lambda Cloud On-Demand GPU instances. Nebula launches one VM per workload, starts a public container with cloud-init, and reports readiness after the container responds to /healthz. The initial catalog includes one A10 SKU.

Records launch attempts on NodeClaims so a lost API response can be recovered without starting a second instance. The adapter confirms termination before the NodeClaim finalizer releases.

Which issue(s) this PR fixes

Fixes #152

Special notes for your reviewer

  • make test, race tests for the Lambda adapter and virtual kubelet, and lint passed.

  • On a K3s cluster, a real Lambda A10 instance in us-west-1 ran the sample container and returned its GPU model from /healthz. The manager adopted the same VM after a restart. Deleting the smoke-test Pod removed its NodeClaim, and the Lambda API confirmed termination.

  • A separate one-replica Deployment reached 1/1 Ready on a real A10 instance.

  • kubectl logs and kubectl exec are deferred for the Lambda provider.
  • Does this PR introduce a user-facing change?

    ``release-note
    Nebula can run single-container On-Demand GPU workloads on Lambda Cloud using the opt-in
    lambda provider. Configure the Lambda credentials and workspace settings in docs/deploy.md to enable it.
    ``

    Diff: 170 lines (+127 / -43) across 2 files Reviewer: googs1025 Review duration: 1729m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 170 lines diff across 2 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.308
    Real PR Conversation Timeline
    1 comments
    "Review active on #153"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.2% (MEDIUM) · Higher = larger blast radius
    35.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.8% · Safe to merge
    18.8%
    Repository