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

Initialize the Submission data structure #332

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

mgoerens
Copy link
Contributor

@mgoerens mgoerens commented Mar 7, 2024

This is the first step towards solving #296. The code added by this commit is currently not put in use in the certification pipeline and is a partial duplicate of the "checkprcontent" package.

The Submission data structure can collect and run early validation checks on all information concerning a user's submission (i.e. a GitHub Pull Request). In its current state, given an api_url (link to a given PR), it can collect the list of modified files, and extract the category, organization, chart's name and version, as well as running basic checks, such as SemVer compatibility of the provided version.

Eventually, this data structure is meant to encapsulate more information concerning the user's submission, and be dumped to a json file (using JSONEncode / JSONDecoder, more on that in a later PR) to be passed around the certification pipeline jobs as an artifact. This early (and incomplete) version is intended to trigger discussion around the design choices and general direction taken to solve #296.

This was referenced Mar 7, 2024
@mgoerens mgoerens requested a review from komish March 7, 2024 19:58
This was referenced Mar 22, 2024
Copy link
Contributor

@komish komish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@mgoerens mgoerens merged commit 30cbd03 into openshift-helm-charts:main Apr 10, 2024
7 checks passed
jsm84 added a commit to jsm84/openshift-helm-charts-dev that referenced this pull request Jun 3, 2024
Summary:
* Standardize action runner versions across workflows by @komish in openshift-helm-charts#339
* Correctly determine the OWNERS file change type by @komish in openshift-helm-charts#340
* Initialize the Submission data structure by @mgoerens in openshift-helm-charts#332
* Allow token access to redhat OWNERS file metadata check automation by @komish in openshift-helm-charts#338
* Remove unused function in 'signed_chart.py' by @mgoerens in openshift-helm-charts#322
* Ping maintainers if the release job fails by @mgoerens in openshift-helm-charts#343
* Rework owners_file.py and add custom exception by @mgoerens in openshift-helm-charts#321
* Add debug information when tests fail to create PR by @mgoerens in openshift-helm-charts#346
* Fix empty PR number in tests logs by @mgoerens in openshift-helm-charts#348
* New chart fixture with plus sign in version by @jsm84 in openshift-helm-charts#349
* Rename crysostat fixture & rm whitespace in provider name by @jsm84 in openshift-helm-charts#351
* Added new test scenario plus-in-version to HC-17 by @jsm84 in openshift-helm-charts#350
* Cleanup unused report fixtures for HC-16 by @jsm84 in charts/development/pull/351
* Added new test scenario plus-in-version to HC-17 by @jsm84 in openshift-helm-charts#350
* Cleanup unused report fixtures for HC-16 by @jsm84 in openshift-helm-charts#352
* Inform caller if web_catatog_only key is missing by @mgoerens in openshift-helm-charts#345
* Add check for web_catalog_only to Submission by @mgoerens in openshift-helm-charts#344
openshift-helm-charts#352
* Inform caller if web_catatog_only key is missing by @mgoerens in openshift-helm-charts#345
* Add check for web_catalog_only to Submission by @mgoerens in openshift-helm-charts#344

**Full Changelog**: openshift-helm-charts/development@1.7.0...1.7.1

Signed-off-by: Josh Manning <19478595+jsm84@users.noreply.github.com>
@jsm84 jsm84 mentioned this pull request Jun 3, 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