Skip to content

refactor(multi-runner): consume effective configuration - #5342

Merged
edersonbrilhante merged 17 commits into
mainfrom
replace-legacy-config-consumers
Sep 8, 2026
Merged

edersonbrilhante merged 17 commits into
mainfrom
replace-legacy-config-consumers

Conversation

@edersonbrilhante

@edersonbrilhante edersonbrilhante commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • Consume local.effective_config across the multi-runner AMI housekeeper, queues, runners, SSM, webhook, and termination-watcher resources.
  • Apply effective global and per-lane tags, artifacts, encryption, lifecycle, and provider settings consistently.
  • Add effective-config fixtures covering global artifact precedence, SSM housekeeper settings, queue settings, and resolved runner-binary targets.

Test Plan

  • terraform fmt -recursive
  • terraform validate in modules/multi-runner
  • terraform test in modules/multi-runner — 6 passed, 0 failed
  • Pre-commit formatting, validation/TFLint, and merge-conflict checks

Related Issues

Depends on #5340.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch 2 times, most recently from 033527a to cf49c59 Compare September 3, 2026 18:14
@edersonbrilhante
edersonbrilhante marked this pull request as ready for review September 3, 2026 18:32
@edersonbrilhante
edersonbrilhante requested a review from a team as a code owner September 3, 2026 18:32
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from 29643bc to 2c7202c Compare September 3, 2026 19:02
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from 2c7202c to e54c5dd Compare September 3, 2026 19:30
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from e54c5dd to c8bbc3d Compare September 3, 2026 19:45
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from c22c7a7 to 3f04604 Compare September 3, 2026 20:12
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from 3f04604 to 27337b9 Compare September 3, 2026 21:11
@edersonbrilhante
edersonbrilhante requested a review from a team as a code owner September 4, 2026 17:59
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from 7b89929 to a555fdd Compare September 4, 2026 17:59
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from a555fdd to bd7bf0b Compare September 7, 2026 15:00
@Brend-Smits
Brend-Smits requested a balanced review from Copilot September 7, 2026 15:26
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from 311d279 to 25af7e2 Compare September 8, 2026 15:16
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from 25af7e2 to a0a3532 Compare September 8, 2026 15:41
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from a0a3532 to 524ad6d Compare September 8, 2026 16:07
Base automatically changed from use-resolved-config-consumers to main September 8, 2026 16:11
@edersonbrilhante
edersonbrilhante force-pushed the replace-legacy-config-consumers branch from 524ad6d to 9e7d0f7 Compare September 8, 2026 16:11

@Brend-Smits Brend-Smits left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:!

@edersonbrilhante
edersonbrilhante merged commit e903387 into main Sep 8, 2026
58 checks passed
@edersonbrilhante
edersonbrilhante deleted the replace-legacy-config-consumers branch September 8, 2026 16:20
edersonbrilhante added a commit that referenced this pull request Sep 8, 2026
## Description

Adds the internal AWS EC2 compute-provider module and its trust-policy
submodule. The provider owns EC2 runner instances, launch templates,
networking, AMI selection, logging, bootstrap configuration, instance
profiles, runner IAM policy fragments, and compute-provider validation.

The module exposes a typed provider contract for runner-config and
orchestration consumers while keeping shared runner composition and
orchestration outside the EC2 implementation.

### Compatibility decision

The experimental v2 EC2 provider intentionally remains separate from the
stable `modules/runners` implementation. It owns its own Terraform
resource definitions and copies of the runner bootstrap templates so the
provider boundary can evolve without changing the stable module's public
contract, resource graph, state addresses, or deployed behavior.

This creates temporary Terraform and template duplication, which
increases review and maintenance effort and requires equivalent fixes to
be evaluated in both implementations. Consolidation is deferred until
stable v1 is deprecated and a migration can be designed and verified
independently. ADR-002 records the decision and alternatives.

The ten copied template bodies match the stable templates. Eight are
byte-identical; `cloudwatch_config.json` and `user-data.ps1` differ only
by a final newline.

## Test Plan

- Repository Terraform formatting, validation/TFLint, and merge-conflict
checks
- EC2 provider and trust-policy Terraform tests are included in the PR
- Compared all ten EC2 provider templates with
`modules/runners/templates`; eight are byte-identical and two have only
a final-newline difference
- `git diff --check`
- Local provider-plugin handshake prevented a complete test run on macOS
arm64

## Related Issues

Depends on #5342.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants