Skip to content

refactor(storage): compose runner config storage providers - #5359

Merged
edersonbrilhante merged 7 commits into
mainfrom
runner-config-storage-selection
Sep 8, 2026
Merged

refactor(storage): compose runner config storage providers#5359
edersonbrilhante merged 7 commits into
mainfrom
runner-config-storage-selection

Conversation

@edersonbrilhante

Copy link
Copy Markdown
Contributor

Description

Compose the stable storage capabilities in one factory and add runner-config provider selection. Runner-config storage is selected independently from common GitHub App credentials, environment values are parsed once into immutable adapter configuration, and the old parallel provider factories are removed. The storage-provider package now declares its MIT license metadata.

Test Plan

  • Added provider-resolution and storage-composition tests.
  • git diff --check passed.
  • Runtime Yarn tests could not be run locally because the repository's pinned Yarn launcher is unavailable in this environment; CI should provide the full test result.

Related Issues

@github-actions

github-actions Bot commented Sep 4, 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 runner-config-storage-selection branch from 6af275a to 456b25c Compare September 4, 2026 11:20
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 456b25c to 93e7105 Compare September 4, 2026 11:34
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 93e7105 to de85c37 Compare September 4, 2026 11:42
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from de85c37 to 48f1d66 Compare September 4, 2026 11:49
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from e8f7a26 to 9e5205f Compare September 4, 2026 12:10
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 9e5205f to 0850256 Compare September 4, 2026 12:23
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 0850256 to 909dc67 Compare September 4, 2026 12:27
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch 4 times, most recently from ff1925b to 5149453 Compare September 4, 2026 12:54
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch 2 times, most recently from cf64d4e to d42c5d3 Compare September 7, 2026 12:49
@edersonbrilhante
edersonbrilhante marked this pull request as ready for review September 7, 2026 13:54
@edersonbrilhante
edersonbrilhante requested a review from a team as a code owner September 7, 2026 13:54

@guicaulada guicaulada 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! One minor comment about caching GitHub credentials... not sure if not caching them is intentional here, or if they are being cached elsewhere.

Comment thread lambdas/libs/storage-providers/storage-providers.ts
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 17f6a3e to 9e197cb Compare September 8, 2026 14:29
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 9e197cb to 47235df Compare September 8, 2026 17:29
guicaulada
guicaulada previously approved these changes Sep 8, 2026
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 47235df to 3f6de52 Compare September 8, 2026 19:42
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 3f6de52 to 0ac3eee Compare September 8, 2026 19:46
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 0ac3eee to 60996bb Compare September 8, 2026 19:48
Base automatically changed from runner-config-consumer to main September 8, 2026 19:54
@edersonbrilhante
edersonbrilhante force-pushed the runner-config-storage-selection branch from 60996bb to d1988d4 Compare September 8, 2026 19:54
@edersonbrilhante
edersonbrilhante merged commit 21f3aca into main Sep 8, 2026
7 checks passed
edersonbrilhante added a commit that referenced this pull request Sep 8, 2026
## Description

Adds structured diagnostics at the asynchronous AWS SSM storage adapter
boundaries. A shared logger factory attaches the canonical `aws_ssm`
provider identity while each adapter keeps its own module name.

Runner-config read and delete failures now preserve their original
causes, retryable polling misses remain debug-level events, and terminal
failures include bounded error-name chains. Credential values, private
keys, Base64 contents, and stored runner configuration values are
intentionally excluded from logs. Direct SSM consumer tests now pass
only the SSM-specific configuration instead of the generic
provider-selection field.

This PR is stacked on #5359.

## Test Plan

- Ran the storage-provider test suite: 9 files and 74 tests passed.
- Ran the storage-provider TypeScript type-check.
- Ran ESLint for `lambdas/libs/storage-providers`.
- Ran Prettier check for storage-provider TypeScript files.
- Ran `git diff --check` and a focused sensitive-log-field scan.

## Related Issues

- Related storage-backend work: #5266
@edersonbrilhante
edersonbrilhante deleted the runner-config-storage-selection branch September 9, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants