Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update validate command to use the new configuration options #10203

Merged
merged 1 commit into from
May 22, 2024

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented May 21, 2024

After #9516, the validate sum-command works differently from the root command.

If a downstream distribution provides URIs as part of the new ConfigProviderSettings without --config flag, the validate command fails with

2024/05/21 15:53:25 main.go:85: application run finished with error: at least one config flag must be provided

@dmitryax dmitryax requested a review from a team as a code owner May 21, 2024 22:53
@dmitryax dmitryax requested a review from songy23 May 21, 2024 22:53
@dmitryax dmitryax force-pushed the update-validate-command branch 2 times, most recently from ecf3fa9 to 8040ecb Compare May 21, 2024 22:55
Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.91%. Comparing base (d294537) to head (0f2029c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10203      +/-   ##
==========================================
+ Coverage   91.90%   91.91%   +0.01%     
==========================================
  Files         361      361              
  Lines       16970    16964       -6     
==========================================
- Hits        15596    15593       -3     
+ Misses       1032     1029       -3     
  Partials      342      342              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@evan-bradley evan-bradley left a comment

Choose a reason for hiding this comment

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

Thanks for catching this.

@songy23 songy23 added the ready-to-merge Code review completed; ready to merge by maintainers label May 22, 2024
@dmitryax dmitryax merged commit 4f36589 into open-telemetry:main May 22, 2024
66 checks passed
@github-actions github-actions bot added this to the next release milestone May 22, 2024
@dmitryax dmitryax deleted the update-validate-command branch May 22, 2024 22:39
andrzej-stencel pushed a commit to andrzej-stencel/opentelemetry-collector that referenced this pull request May 27, 2024
…lemetry#10203)

After
open-telemetry#9516, the
`validate` sum-command works differently from the root command.

If a downstream distribution provides `URIs` as part of the new
`ConfigProviderSettings` without `--config` flag, the `validate` command
fails with
```
2024/05/21 15:53:25 main.go:85: application run finished with error: at least one config flag must be provided
```
steves-canva pushed a commit to Canva/opentelemetry-collector that referenced this pull request Jun 14, 2024
…lemetry#10203)

After
open-telemetry#9516, the
`validate` sum-command works differently from the root command.

If a downstream distribution provides `URIs` as part of the new
`ConfigProviderSettings` without `--config` flag, the `validate` command
fails with
```
2024/05/21 15:53:25 main.go:85: application run finished with error: at least one config flag must be provided
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants