Skip to content

Save errors from failed YAML loading #118

@tortillaj

Description

@tortillaj

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions