Repository navigation
Harden config service - #7241
Merged
Merged
Conversation
qwerty287
reviewed
Oct 7, 2026
Member
Author
|
@qwerty287 sorry that sliped through my own review ... the patches seem fine when i reviewed them 1 by 1 ... :{ |
xoxys
requested changes
Oct 7, 2026
Member
|
Overall, this is technically a breaking change. Users who relied on the silent fallback will be surprised or do I miss something? |
Member
Author
|
i cant remember we documented tjese edgecases and i personally prefere hard fails per see ... but we dont have to rush this! |
6543
marked this pull request as draft
October 7, 2026 17:53
Member
|
Thats fine. Just wanted to note it, we can still just merge and release as regular release. |
An extension answering with `{"configs": [null]}` made the server
dereference a nil pointer. The answer of an extension is foreign input,
a broken or hostile one must only fail the pipeline it was asked for.
6543
force-pushed
the
harden-config-service
branch
from
October 29, 2026 23:18
ec9229d to
7c9d020
Compare
The combined config service asked every service and only kept the error of the last one. With a config extension configured a forge that could not be reached ended as "nothing to run": the extension had no config to look at, kept it, and the pipeline got dropped without a trace instead of showing the error. Stop at the first failure. A missing config is the exception, as a later service is allowed to provide one for a repo that has none. The test forge answered a missing file with a plain error, while every real forge uses ErrConfigNotFound for it. Make it do the same.
6543
force-pushed
the
harden-config-service
branch
from
October 29, 2026 23:21
7c9d020 to
dd76c00
Compare
6543
marked this pull request as ready for review
October 29, 2026 23:23
Member
Author
|
@xoxys the break should be gone :) |
xoxys
approved these changes
Nov 24, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7241 +/- ##
==========================================
+ Coverage 67.41% 67.45% +0.04%
==========================================
Files 452 452
Lines 22793 22801 +8
==========================================
+ Hits 15366 15381 +15
+ Misses 7427 7420 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
while working on #7239 edgecases where discovered ... this handles them