Skip to content

Isolate the Swift collector default-configuration test - #18

Merged
pda merged 1 commit into
mainfrom
isolate-swift-default-collector-test
Aug 27, 2026
Merged

Isolate the Swift collector default-configuration test#18
pda merged 1 commit into
mainfrom
isolate-swift-default-collector-test

Conversation

@pda

@pda pda commented Aug 27, 2026

Copy link
Copy Markdown
Member

Why

The default collector test claims to exercise an empty configuration, but EnvironmentValues(values: [:]) still reads the process environment and Info.plist. Hosted macOS coverage added in #17 exposed this coupling while validating #12 on agents that provide telemetry exporter variables.

What

Disable both fallback readers in that test so it remains deterministic without changing production configuration behavior.

Related:

Prevent the no-configuration test from reading ambient process or Info.plist values. Hosted macOS agents may provide telemetry variables, so relying on the runner environment makes the assertion depend on CI configuration.

This keeps production lookup behavior unchanged and confines test setup to the empty environment it claims to exercise.

Amp-Thread-ID: https://ampcode.com/threads/T-01a037c7-e3e7-70e4-b18f-a43cec542d56
Co-authored-by: Amp <amp@ampcode.com>
@pda
pda requested a review from a team as a code owner August 27, 2026 09:40
@pda
pda merged commit 56cb787 into main Aug 27, 2026
4 checks passed
@pda
pda deleted the isolate-swift-default-collector-test branch August 27, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant