Skip to content

Refactor EC2 tests to match provider module layout #5230

Closed

Description

@edersonbrilhante

Description

Follow up on the test-file organization after the runner provider split in #5203.

The production EC2 label parsing and runner operations moved into dedicated modules, while their existing tests intentionally stayed in the original files to keep the refactor reviewable. Align the test layout with the implementation so future EC2 provider changes are easier to find and maintain.

Tasks

  • Move the EC2 label parsing cases from lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts to ec2-labels.test.ts.
  • Rename lambdas/functions/control-plane/src/aws/runners.test.ts to ec2-runners.test.ts.
  • Preserve the existing assertions and test coverage during the move.

Context

Requested in the review of #5203: #5203 (comment)

Activity

  1. edersonbrilhante commented on Jul 30, 2026

    @edersonbrilhante
    ContributorAuthor

    I plan to make a pr for that after #5220 is merged.

  2. edersonbrilhante commented on Jul 30, 2026

    @edersonbrilhante
    ContributorAuthor

    Note:

    Implement the last comments of still valid
    #5203 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions