Repository navigation
refactor(control-plane): remove EC2 assumptions - #5308
Merged
edersonbrilhante merged 1 commit intoSep 2, 2026
Merged
Conversation
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
edersonbrilhante
force-pushed
the
refactor-control-plane-provider-neutral-tests
branch
from
August 27, 2026 21:00
58d63ff to
9d4172e
Compare
edersonbrilhante
force-pushed
the
refactor-control-plane-provider-neutral-tests
branch
from
August 28, 2026 11:03
9d4172e to
6a7dbaa
Compare
Brend-Smits
previously approved these changes
Sep 2, 2026
Brend-Smits
left a comment
Contributor
There was a problem hiding this comment.
LGTM! All tests are green, no further comments.
edersonbrilhante
force-pushed
the
refactor-control-plane-provider-neutral-tests
branch
from
September 2, 2026 15:40
6a7dbaa to
a43fe60
Compare
edersonbrilhante
force-pushed
the
refactor-control-plane-provider-neutral-tests
branch
from
September 2, 2026 16:42
a43fe60 to
db5a96f
Compare
Base automatically changed from
refactor-pool-provider-test-boundary
to
main
September 2, 2026 16:46
edersonbrilhante
force-pushed
the
refactor-control-plane-provider-neutral-tests
branch
from
September 2, 2026 16:46
db5a96f to
7253e3e
Compare
stuartp44
approved these changes
Sep 2, 2026
stuartp44
reviewed
Sep 2, 2026
edersonbrilhante
deleted the
refactor-control-plane-provider-neutral-tests
branch
September 2, 2026 16:53
edersonbrilhante
added a commit
that referenced
this pull request
Sep 2, 2026
## Description Depends on #5308. Introduces an `Ec2RunnerClient` that owns a reusable EC2 client and exposes request-bound EC2 runner operations through `forRequest({ signal })`. The control-plane registry creates the client once for the warm Lambda execution environment, and the pool, scale-up, and scale-down capabilities share those operations while keeping cancellation scoped to each request. The EC2 capability boundary now distinguishes resource operations from provisioning operations, uses consistent capability naming, and removes the legacy default-operation wrappers. Launch-template block-device lookup uses the same bound EC2 client, and runner creation is named separately from runner configuration. ## Test Plan - Ran Prettier, ESLint, and the control-plane TypeScript type-check. - Ran the complete compute-provider suite: 286 tests passed. - Ran the complete control-plane suite: 345 tests passed. - Added three runner-client tests covering launch-template lookup with the bound client and request signal, rejection of an already-cancelled request before AWS is called, and isolation between cancelled and active requests sharing one client. - Updated pool, scale-up, and scale-down tests to exercise the returned capability methods and their dependency wiring. - Ran `git diff --check`. ## Related Issues None.
edersonbrilhante
added a commit
that referenced
this pull request
Sep 3, 2026
## Description Clarifies the partial runner creation test name so it explicitly states that non-retryable failures are not retried, while keeping the terminology provider-neutral. This addresses the same review suggestion raised in the stacked PR discussions for [#5308](#5308 (comment)) and [#5301](#5301 (comment)). ## Test Plan - Ran the focused control-plane scale-up suite: 113 tests passed. - Ran Prettier for the changed file. - Ran `git diff --check`. - Repository pre-commit hooks passed. ## Related Issues Related to #5338
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Depends on #5307.
Removes EC2-specific assumptions from generic control-plane tests and the local pool invocation. Scale-up and scale-down test doubles now model provider capability factories without owning a provider type, partial creation tests use provider-neutral runner terminology, and pool events rely on the optional provider type's default behavior.
The scale-up provider-selection test remains as integration coverage, but asserts the public
defaultComputeProvidercontract instead of the concrete EC2 value. The provider-type unit tests remain responsible for the concrete default mapping.Test Plan
git diff --check.Related Issues
None.