Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Jun 16, 2025

This has us output a dedicated exit code in the event of an invalid configuration file to make it easier to identify those situations in an automated context.

Because we ignore invalid configs rather than hard erroring, supporting this has required adding a new method to our logger interface for tracking if we errored specifically because of an invalid config - while this might seem strange, I think it's actually fine because this is all internal code and it should be straightforward to make it more generic if we find further need for this sort of thing (also tying in somewhat to doing more structured logging)

Relates to #1221 (comment)

@G-Rath G-Rath requested review from another-rex, cuixq and hogo6002 June 16, 2025 01:58
@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2025

Codecov Report

Attention: Patch coverage is 58.33333% with 10 lines in your changes missing coverage. Please review.

Project coverage is 65.76%. Comparing base (147470f) to head (8aed105).
Report is 88 commits behind head on main.

Files with missing lines Patch % Lines
cmd/osv-reporter/main.go 0.00% 8 Missing ⚠️
internal/testlogger/handler.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1957      +/-   ##
==========================================
- Coverage   65.77%   65.76%   -0.02%     
==========================================
  Files         167      167              
  Lines       16071    16092      +21     
==========================================
+ Hits        10571    10583      +12     
- Misses       4841     4850       +9     
  Partials      659      659              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@G-Rath G-Rath force-pushed the config/exit-code branch from f1a1446 to 8aed105 Compare June 17, 2025 23:01
@another-rex another-rex merged commit e3acbc7 into google:main Jun 18, 2025
16 checks passed
@another-rex another-rex deleted the config/exit-code branch June 18, 2025 01:12
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