-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Improve reporting of pipeline with wrong configuration #565
Conversation
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine for me, but proposed improvement around the switch by asserting on the error's type.
It's not blocking but as soon as there is an else
it's a smell: thanks for commenting as it helps to maintain this code (unless there is a unit test to help other maintainers than the one whom wrote the initial conditions).
Signed-off-by: Olblak <me@olblak.com>
Improve reporting of pipeline with wrong configuration
Fix #552
This pull request allows to better identify which pipeline is failing due to a bad configuration.
Now It would show
instead of the old
Test
To test this pull request, we needs updatecli configuration with wrong content and good content.
This pullrequest introduces a behavior change during the "prepare" stage.
Previously , it would just try to load as much configuration as possible and clone as much git repository as possible without failing. But now we exit if we couldn't load any pipeline or if something wrong happened with one of the git clones.
Additional Information
Tradeoff
Potential improvement
Implement the same behavior for git clones where it tries to clones as much repository as possible