Repository navigation
refactor(control-plane): decouple pool tests from EC2 - #5307
Merged
Merged
Conversation
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
This was referenced Aug 27, 2026
edersonbrilhante
force-pushed
the
refactor-pool-provider-test-boundary
branch
from
August 27, 2026 21:00
02163f5 to
b29ba6e
Compare
edersonbrilhante
force-pushed
the
refactor-pool-provider-test-boundary
branch
from
August 28, 2026 11:03
b29ba6e to
98230a3
Compare
Brend-Smits
previously approved these changes
Sep 2, 2026
Brend-Smits
left a comment
Contributor
There was a problem hiding this comment.
Tested, all looks good. Nice work.
edersonbrilhante
force-pushed
the
refactor-pool-provider-test-boundary
branch
from
September 2, 2026 15:40
98230a3 to
4a71056
Compare
edersonbrilhante
force-pushed
the
refactor-pool-provider-test-boundary
branch
from
September 2, 2026 16:42
4a71056 to
7a34de4
Compare
edersonbrilhante
added a commit
that referenced
this pull request
Sep 2, 2026
## 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 `defaultComputeProvider` contract instead of the concrete EC2 value. The provider-type unit tests remain responsible for the concrete default mapping. ## Test Plan - Ran the affected scale-up, scale-down, and Lambda wrapper suites: 253 tests passed. - Ran the complete Lambda Vitest suite: 819 tests passed. - Ran the control-plane TypeScript type-check. - Ran ESLint and Prettier checks for all changed files. - Ran `git diff --check`. - Verified the four scoped files contain no EC2 references. ## Related Issues None.
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 #5306.
Refactors the control-plane pool tests to use the
PoolComputeProvidercapability boundary instead of importing and mocking the EC2 runner implementation.EC2-specific assertions for running-instance filters, busy and booting runner counts, and the
pool-lambdasource now live in the EC2 pool provider tests. Generic pool orchestration coverage remains in the control-plane test.Test Plan
git diff --checkagainstrefactor-ec2-runner-operations.Related Issues
None.