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

Save errors from failed YAML loading #118

Open
tortillaj opened this issue Jul 20, 2017 · 5 comments
Open

Save errors from failed YAML loading #118

tortillaj opened this issue Jul 20, 2017 · 5 comments

Comments

@tortillaj
Copy link
Contributor

tortillaj commented Jul 20, 2017

@dzink @lliss

Proposal for saving the error details of YAML loading steps.

Steps in the process of processing a PR where there is a YAML load error:

  1. Our webhook receives the PR
  2. It is sent to GithubHandler's processRequest method
  3. processRequest tries to fetch the YAML file
  4. fetchProboYamlConfigFromGithub is called to get the YAML
  5. Error callback is found
  6. Build up an error and post back to Github

I propose that we also save the update that was sent to GH in the local build store. This will also provide a point to emit this error via our eventbus to other services or webhooks that anyone using this project wants. The build object here should have a steps array, where this error should be saved. We'd just make sure that the step we save there is the same format as other steps.

@dzink
Copy link
Contributor

dzink commented Jul 20, 2017 via email

@tortillaj
Copy link
Contributor Author

@dzink just keep in mind that this is an open source project, so any solution we have must comply with that ... the coordinator and other handlers are not open source, so our solution here is without those other projects in mind.

Instead, the build updates the other services via our event bus, which internally for us means over Kafka.

@lliss
Copy link
Contributor

lliss commented Jul 20, 2017

My inclination is to avoid having logic in many places. I'd very much prefer that we pass off whatever yaml file to the next piece of the puzzle. If our current implementation is to send that to the coordinator we should add the same functionality to the container manager so as to be able to bypass the coord. If the current functionality is to send it to kafka, then we should keep doing that. If we currently send it to the coord which sends it to kafka, then we should fix that.

@tortillaj
Copy link
Contributor Author

It goes through kafka already as part of the build object.

Really, what we want here is a new build property that has startup errors in it, save those to the build object here locally, then publish that build over our eventbus like we already do.

@ProboCI ProboCI deleted a comment from dzink Oct 25, 2018
@ElusiveMind
Copy link
Contributor

A more robust mechanism of catching build errors both in terms of misnamed assets, bad yaml settings and errors caused from YAML steps are in the works that will work as part of open source and non-open source. Especially as an open source web portal is developed independently

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

No branches or pull requests

4 participants