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

Allow user to provide custom-manifests to run ODS_CI on PR #1445

Merged
merged 2 commits into from
May 17, 2024

Conversation

vaibhavjainwiz
Copy link
Contributor

Allow user to provide custom-manifests to run ODS_CI on PR.

Custom-manifest in below syntax should be define on test-variable.yaml file.

CUSTOM_MANIFESTS:
  kserve:
    manifests:
    - uri: https://github.com/vaibhavjainwiz/kserve/tarball/test_pr
      contextDir: config
      sourcePath: ''

Values of custom manifest could be passed using Jenkins as inline parameter(component1:repo_org:repo_name:branch_name:context_dir:source_path)

python3 -u ./utils/scripts/testconfig/generateTestConfigFile.py --custom_manifests=kserve:vaibhavjainwiz:kserve:test_pr:config: --components=kserve:Managed

@@ -274,6 +274,7 @@
END
END
Create DataScienceCluster CustomResource Using Test Variables
Apply Custom Manifest in DataScienceCluster CustomResource Using Test Variables

Check warning

Code scanning / Robocop

Keyword name '{{ keyword_name }}' does not follow case convention Warning

Keyword name 'Apply Custom Manifest in DataScienceCluster CustomResource Using Test Variables' does not follow case convention
@@ -307,6 +308,21 @@
END
END

Apply Custom Manifest in DataScienceCluster CustomResource Using Test Variables

Check warning

Code scanning / Robocop

Keyword name '{{ keyword_name }}' does not follow case convention Warning

Keyword name 'Apply Custom Manifest in DataScienceCluster CustomResource Using Test Variables' does not follow case convention
${file_path} = Set Variable tasks/Resources/Files/
FOR ${cmp} IN @{COMPONENT_LIST}
IF $cmp in $CUSTOM_MANIFESTS
${manifest_string}= Convert To String ${CUSTOM_MANIFESTS}[${cmp}]

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning

The assignment sign is not consistent within the file. Expected ' =' but got '=' instead
Copy link
Contributor

github-actions bot commented May 14, 2024

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
459 0 0 459 100

@mwaykole
Copy link
Member

i think you will have to do the changes in ods/jenkins and ods/odhcluster
can u please test it once

@vaibhavjainwiz
Copy link
Contributor Author

@aloganat @mwaykole
I had raised below PR to introducing corresponding changes in Jenkins.
https://gitlab.cee.redhat.com/ods/jenkins/-/merge_requests/811

I had already tested my changes againts rhods_smoke.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@mwaykole mwaykole merged commit 6956ab0 into red-hat-data-services:master May 17, 2024
7 of 8 checks passed
@jstourac jstourac mentioned this pull request May 17, 2024
jstourac added a commit to jstourac/ods-ci that referenced this pull request May 17, 2024
Reason is that this doesn't work when empty array is generated in
test-variables.yml file. This should be easy to fix, but I'm lazy to do
it.

This is a followup of red-hat-data-services#1445.
jstourac added a commit that referenced this pull request May 17, 2024
Reason is that this doesn't work when empty array is generated in
test-variables.yml file. This should be easy to fix, but I'm lazy to do
it.

This is a followup of #1445.
@jstourac jstourac assigned jstourac and unassigned jstourac May 20, 2024
adolfo-ab pushed a commit to adolfo-ab/ods-ci that referenced this pull request May 21, 2024
…ata-services#1445)

Allow user to provide custom-manifests

Co-authored-by: Milind Waykole <mwaykole@redhat.com>
adolfo-ab pushed a commit to adolfo-ab/ods-ci that referenced this pull request May 21, 2024
Reason is that this doesn't work when empty array is generated in
test-variables.yml file. This should be easy to fix, but I'm lazy to do
it.

This is a followup of red-hat-data-services#1445.
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.

4 participants