Skip to content

Conversation

@awelzel
Copy link
Contributor

@awelzel awelzel commented Dec 10, 2025

In #122 there's spurious stderr output for Spicy's test suite reported. This is due to the new code from #121 eagerly reading all keys in all sections, even if some, like [environment-] sections for alternatives, would never be used if not selected explicitly.

Move the interpolation check below Options.alternative wrangling and skip sections that won't be used. This squelches the spurious stderr output. I've added a test, though it's a bit opaque.

@awelzel awelzel force-pushed the topic/awelzel/122-skip-non-selected-environment-interpolation branch from 8da9469 to d1383ac Compare December 10, 2025 14:24
@awelzel awelzel requested a review from rsmmr December 15, 2025 14:19
Copy link
Member

@rsmmr rsmmr left a comment

Choose a reason for hiding this comment

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

Thanks, works for me. I'm not totally sure if there might be other ways for the new validation to fail, but at least I can't come up with anything right now.

In #122 there's spurious stderr output for Spicy's test suite reported.
This is due to the new code from #121 eagerly reading all keys in all
sections, even if some, like [environment-<tag>] sections for
alternatives, would never be used if not selected explicitly.

Move the interpolation check below Options.alternative wrangling and
skip sections that won't be used. This squelches the spurious stderr
output. I've added a test, though it's a bit opaque.
@awelzel awelzel force-pushed the topic/awelzel/122-skip-non-selected-environment-interpolation branch from e1de2bf to 9e109ac Compare December 16, 2025 18:30
@awelzel awelzel merged commit 219b62b into master Dec 16, 2025
18 of 21 checks passed
@awelzel awelzel deleted the topic/awelzel/122-skip-non-selected-environment-interpolation branch December 16, 2025 18:31
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.

3 participants