Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract PR validation from chart-verifier job
This PR refactors the certification pipeline by splitting the chart-verifier job into three jobs, running sequentially: - The new 'validate-submission' is responsible for extracting and validating all information related to a PR. - The existing 'chart-verifier' job is now only responsible for running chart-verifier against the Chart source (if provided, or verifies the submitted report.yaml instead). - The new 'manage-gh-pr' adds a comment on the PR, and merges it in case the pipeline was successfull. This PR also introduces a new mechanism for passing information between jobs. In addition to the existing GitHub outputs, a submission.json artifact containing a json representation of the Submission object is created in 'validate-submission'. Subsequent steps/jobs now have the possibility to read from this file. The main pursued goal behind this PR is to better separate concerns and avoid mixed up logic, thus improving readability and clarity of our pipeline and improve future maintainability and onboarding. This PR also opens up the ability to reducde code deduplication and redundant checks. In the interest of keeping this PR to a minimum, this has not been fully done here. One example: get-verify-params.py currently queries the GitHub API in order to get chart's information, while they are already available in the submission.json artifact. This rather trivial change is left for a future PR. Note that the 'submission' python module is essentially replacing the old 'checkpr' module. The only function remaining used by other modules being 'get_file_match_compiled_patterns', it is moved to the 'reporegex' module. Closes #296 Signed-off-by: Matthias Goerens <[email protected]>
- Loading branch information