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

Run custom tests against upstream PR 392 #394

Closed
wants to merge 2 commits into from

Conversation

jsm84
Copy link
Contributor

@jsm84 jsm84 commented Oct 9, 2024

Test self-hosted OpenShift cluster as well as changes from PR 392 from upstream.

mgoerens and others added 2 commits October 1, 2024 12:19
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 openshift-helm-charts#296

Signed-off-by: Matthias Goerens <mgoerens@redhat.com>
Summary:
* Updated settings to run on a different OpenShift cluster, as well as
  targeting a different prod and sandbox repo.

Signed-off-by: Josh Manning <19478595+jsm84@users.noreply.github.com>
@jsm84
Copy link
Contributor Author

jsm84 commented Oct 10, 2024

Submitted this to the wrong fork. Closing

@jsm84 jsm84 closed this Oct 10, 2024
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

Successfully merging this pull request may close these issues.

2 participants