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

Fix faulty kserve tests #1005

Merged
merged 16 commits into from
Nov 6, 2023

Conversation

bdattoma
Copy link
Contributor

@bdattoma bdattoma commented Nov 2, 2023

KServe (aka LLM or WatsonX) has some failing tests. This PR wants to fix them.

As part of the test fixing, I had to do some refactoring and remove yq from poetry.

yq dependency installation should be handled in a different PR to solve #953

@bdattoma bdattoma self-assigned this Nov 2, 2023
@bdattoma bdattoma added needs testing Needs to be tested in Jenkins enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) labels Nov 2, 2023
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Robocop found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link
Contributor

github-actions bot commented Nov 2, 2023

Robot Results

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

@bdattoma
Copy link
Contributor Author

bdattoma commented Nov 3, 2023

PR validation

  1. rhods-ci-pr-test/2100 a better run, 2 failures remaining ODS-2377 & ODS-2380
  2. rhods-ci-pr-test/2101 1 failure out 16 because of a mistake in teardown. Re-running only ODS-2380 rhods-ci-pr-test/2103

@jstourac
Copy link
Member

jstourac commented Nov 3, 2023

@bdattoma please, there seem to be multiple trailing whitespace lines reported by robocop and consider adding the doc to the one keyword robocop complan. 🙂

@bdattoma
Copy link
Contributor Author

bdattoma commented Nov 3, 2023

@bdattoma please, there seem to be multiple trailing whitespace lines reported by robocop and consider adding the doc to the one keyword robocop complan. 🙂

done

Copy link
Member

@jstourac jstourac left a comment

Choose a reason for hiding this comment

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

Thank you, put some comments but otherwise LGTM.

Signed-off-by: bdattoma <[email protected]>
Copy link

sonarcloud bot commented Nov 3, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

... insecure=${TRUE} skip_res_json=${skip_json_load_response}
... &{args}
Log ${res}
IF ${validate_response} == ${TRUE}

Check notice

Code scanning / Robocop

'{{ block_name }}' condition can be simplified Note test

'IF' condition can be simplified
${status}= Run Keyword And Return Status
... Query Model Multiple Times isvc_name=${isvc_name} model_name=${model_name} n_times=1
... namespace=${namespace}
IF ${status} == ${TRUE}

Check notice

Code scanning / Robocop

'{{ block_name }}' condition can be simplified Note test

'IF' condition can be simplified
[Arguments] ${model_name} ${namespace} ${isvc_name}=${model_name}
... ${endpoint}=${CAIKIT_ALLTOKENS_ENDPOINT} ${n_times}=10
... ${streamed_response}=${FALSE} ${query_idx}=0 ${validate_response}=${TRUE} &{args}
IF ${validate_response} == ${FALSE}

Check notice

Code scanning / Robocop

'{{ block_name }}' condition can be simplified Note test

'IF' condition can be simplified
@bdattoma bdattoma merged commit 1233b85 into red-hat-data-services:master Nov 6, 2023
9 of 10 checks passed
jgarciao pushed a commit to jgarciao/ods-ci that referenced this pull request Nov 6, 2023
* refactor query keyword

Signed-off-by: bdattoma <[email protected]>

* fix canary test + needed refactor

Signed-off-by: bdattoma <[email protected]>

* increase timeout for minreplicas change

Signed-off-by: bdattoma <[email protected]>

* revert erroneus edits

Signed-off-by: bdattoma <[email protected]>

* fix typo

Signed-off-by: bdattoma <[email protected]>

* fix skip json load logic

Signed-off-by: bdattoma <[email protected]>

* increase query number in canary test (attempt)

Signed-off-by: bdattoma <[email protected]>

* increase queries for autoscale stability (attempt)

Signed-off-by: bdattoma <[email protected]>

* fix autoscaling test

Signed-off-by: bdattoma <[email protected]>

* remove old yq from poetry - fix hw req test

Signed-off-by: bdattoma <[email protected]>

* remove unused variable

Signed-off-by: bdattoma <[email protected]>

* fix robocop alerts and add documentations

Signed-off-by: bdattoma <[email protected]>

* fix suite doc

Signed-off-by: bdattoma <[email protected]>

* remove unused variable

Signed-off-by: bdattoma <[email protected]>

* fix teardown of custom requests/limits

Signed-off-by: bdattoma <[email protected]>

* fix line too long alert

Signed-off-by: bdattoma <[email protected]>

---------

Signed-off-by: bdattoma <[email protected]>
ChughShilpa pushed a commit to ChughShilpa/ods-ci that referenced this pull request Nov 28, 2023
* refactor query keyword

Signed-off-by: bdattoma <[email protected]>

* fix canary test + needed refactor

Signed-off-by: bdattoma <[email protected]>

* increase timeout for minreplicas change

Signed-off-by: bdattoma <[email protected]>

* revert erroneus edits

Signed-off-by: bdattoma <[email protected]>

* fix typo

Signed-off-by: bdattoma <[email protected]>

* fix skip json load logic

Signed-off-by: bdattoma <[email protected]>

* increase query number in canary test (attempt)

Signed-off-by: bdattoma <[email protected]>

* increase queries for autoscale stability (attempt)

Signed-off-by: bdattoma <[email protected]>

* fix autoscaling test

Signed-off-by: bdattoma <[email protected]>

* remove old yq from poetry - fix hw req test

Signed-off-by: bdattoma <[email protected]>

* remove unused variable

Signed-off-by: bdattoma <[email protected]>

* fix robocop alerts and add documentations

Signed-off-by: bdattoma <[email protected]>

* fix suite doc

Signed-off-by: bdattoma <[email protected]>

* remove unused variable

Signed-off-by: bdattoma <[email protected]>

* fix teardown of custom requests/limits

Signed-off-by: bdattoma <[email protected]>

* fix line too long alert

Signed-off-by: bdattoma <[email protected]>

---------

Signed-off-by: bdattoma <[email protected]>
ChughShilpa pushed a commit to ChughShilpa/ods-ci that referenced this pull request Jan 2, 2024
* refactor query keyword

Signed-off-by: bdattoma <[email protected]>

* fix canary test + needed refactor

Signed-off-by: bdattoma <[email protected]>

* increase timeout for minreplicas change

Signed-off-by: bdattoma <[email protected]>

* revert erroneus edits

Signed-off-by: bdattoma <[email protected]>

* fix typo

Signed-off-by: bdattoma <[email protected]>

* fix skip json load logic

Signed-off-by: bdattoma <[email protected]>

* increase query number in canary test (attempt)

Signed-off-by: bdattoma <[email protected]>

* increase queries for autoscale stability (attempt)

Signed-off-by: bdattoma <[email protected]>

* fix autoscaling test

Signed-off-by: bdattoma <[email protected]>

* remove old yq from poetry - fix hw req test

Signed-off-by: bdattoma <[email protected]>

* remove unused variable

Signed-off-by: bdattoma <[email protected]>

* fix robocop alerts and add documentations

Signed-off-by: bdattoma <[email protected]>

* fix suite doc

Signed-off-by: bdattoma <[email protected]>

* remove unused variable

Signed-off-by: bdattoma <[email protected]>

* fix teardown of custom requests/limits

Signed-off-by: bdattoma <[email protected]>

* fix line too long alert

Signed-off-by: bdattoma <[email protected]>

---------

Signed-off-by: bdattoma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) needs testing Needs to be tested in Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants