-
Notifications
You must be signed in to change notification settings - Fork 853
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
Throw an error when the input version is not found #4740
Conversation
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.
I think this works but I have no way of verifying it as we don't log or emit the error anywhere.
concourse/atc/scheduler/buildstarter.go
Lines 177 to 184 in 232f86e
plan, err := s.factory.Create(job.Config(), resourceConfigs, resourceTypes, buildInputs) | |
if err != nil { | |
// Don't use ErrorBuild because it logs a build event, and this build hasn't started | |
if err = nextPendingBuild.Finish(db.BuildStatusErrored); err != nil { | |
logger.Error("failed-to-mark-build-as-errored", err) | |
} | |
return false, nil | |
} |
Can we emit a log and show the error in the UI?
@vito Could we just log the error without showing it in the UI? |
@clarafu no |
Going to re-trigger testflight on this, it looks like a Docker flake |
If we can't find a version for an input, we should throw an error while we construct the plan. Signed-off-by: Clara Fu <cfu@pivotal.io>
Signed-off-by: Clara Fu <cfu@pivotal.io> Co-authored-by: Julia Pu <jpu@pivotal.io>
837a09e
to
225a1a1
Compare
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.
It would be nice to show it in the UI but this is good enough for now. Seems like showing it in the UI will take more work than expected.
If we can't find a version for an input, we should throw an error while
we construct the plan.
Signed-off-by: Clara Fu cfu@pivotal.io
Contributor Checklist
Reviewer Checklist
and Helm packaging; otherwise, ignored for the integration tests (for example, if they are Garden configs that are not displayed in the
--help
text).