-
Notifications
You must be signed in to change notification settings - Fork 81
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 model serving tests in 2.6 #1125
Conversation
Robot Results
|
${url}= Get Element Attribute xpath://div[.="${model_name} "]${MS_TABLE_ENDPOINT_INPUT} value | ||
SeleniumLibrary.Page Should Contain Element xpath://div[.="${model_name} "] | ||
${route_xpath}= Set Variable xpath://div[.="${model_name} "]${MS_TABLE_ENDPOINT_INPUT} | ||
${loaded}= Run Keyword And Return Status SeleniumLibrary.Wait Until Page Contains Element ${route_xpath} timeout=15s |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
${loaded}= Run Keyword And Return Status SeleniumLibrary.Wait Until Page Contains Element ${route_xpath} timeout=15s | ||
IF ${loaded} == ${FALSE} | ||
SeleniumLibrary.Reload Page | ||
SeleniumLibrary.Wait Until Page Contains Element ${route_xpath} timeout=15s | ||
END |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this masking a UI bug? Either the thing should appear without reloading, and then don't reload in the test, or it appears only after a reload, and then always reload. Not both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never saw that particular page live, so I'm not sure which, but page reload should IMO never be necessary for a user to do, unless we are workarounding something just in a test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's been reported to UI team already this morning, they will look into it. I'm going to add a warning for our tests when this IF branch is used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just afraid that this will get lost among all the warnings we already have in our tests 🙁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a realistic scenario. The alternative was to leave test failing (not worth IMO for this small UI bug). But I'm open to alternative approaches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addition of the Jira to the code is good for me ATM 🙂 I don't have better proposal now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bdattoma I would suggest to check if model is loaded in inference service then look for the xpath in the dashboard page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it would solve, it seems a UI delay in refreshing the data
PR validation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but have to say that having a warning for that reload page - in case it's an issue indeed - isn't a good approach as I really doubt we will ever notice this warning.
SeleniumLibrary.Page Should Contain Element xpath://div[.="${model_name} "] | ||
${route_xpath}= Set Variable xpath://div[.="${model_name} "]${MS_TABLE_ENDPOINT_INPUT} | ||
${loaded}= Run Keyword And Return Status SeleniumLibrary.Wait Until Page Contains Element ${route_xpath} timeout=15s | ||
IF ${loaded} == ${FALSE} |
Check notice
Code scanning / Robocop
'{{ block_name }}' condition can be simplified Note test
This is a kind of issue which imo is not worth to make the test failing bcos of it. I'm open to alternatives :) |
|
Some issues with model serving UI testing faced after the new changes in 2.6.
Likely, we just need to fix the teardown in
ods_ci/tests/Tests/400__ods_dashboard/420__model_serving/422__model_serving_llm_UI.robot
Other tentative fixes for timing issues:
Wait until keyword succeedes
(both UI and CLI test)