-
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
RHOAIENG-14731 - Run ValidatingAdmissionPolicy test downstream #2192
base: master
Are you sure you want to change the base?
RHOAIENG-14731 - Run ValidatingAdmissionPolicy test downstream #2192
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jiripetrlik The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[Tags] Tier2 | ||
... DistributedWorkloads | ||
... WorkloadsOrchestration | ||
Run DistributedWorkloads ODH Test TestValidatingAdmissionPolicy ${RAY_CUDA_IMAGE_3.11} ${NOTEBOOK_IMAGE_3.11} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
Robot Results
|
e3f21a6
to
786750e
Compare
@@ -308,3 +308,39 @@ | |||
Container Image Url Should Contain ${APPLICATIONS_NAMESPACE} ${pod} ${container} | |||
... ${registry_name}/rhoai/${expected_image} | |||
Log To Console ${pod_name}'s container image is verified | |||
|
|||
Enable appwrapper in Codeflare operator |
Check warning
Code scanning / Robocop
Keyword name '{{ keyword_name }}' does not follow case convention Warning test
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
786750e
to
118dd74
Compare
... DistributedWorkloads | ||
... WorkloadsOrchestration | ||
... MYTEST | ||
[Setup] Enable appwrapper in Codeflare operator |
Check warning
Code scanning / Robocop
Keyword name '{{ keyword_name }}' does not follow case convention Warning test
... WorkloadsOrchestration | ||
... MYTEST | ||
[Setup] Enable appwrapper in Codeflare operator | ||
[Teardown] Disable appwrapper in Codeflare operator |
Check warning
Code scanning / Robocop
Keyword name '{{ keyword_name }}' does not follow case convention Warning test
... MYTEST | ||
[Setup] Enable appwrapper in Codeflare operator | ||
[Teardown] Disable appwrapper in Codeflare operator | ||
Run DistributedWorkloads ODH Test TestValidatingAdmissionPolicy ${RAY_CUDA_IMAGE_3.11} ${NOTEBOOK_IMAGE_3.11} |
Check warning
Code scanning / Robocop
'{{ section_name }}' is in wrong place of Test Case. Recommended order of elements in Test Cases: {{ recommended_order }} Warning test
118dd74
to
ff4d7e3
Compare
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ff4d7e3
to
c83bdf4
Compare
... shell=true | ||
... stderr=STDOUT | ||
Log To Console ${result.stdout} | ||
IF ${result.rc} != 0 |
Check notice
Code scanning / Robocop
'{{ block_name }}' condition can be simplified Note test
... shell=true | ||
... stderr=STDOUT | ||
Log To Console ${result.stdout} | ||
IF ${result.rc} != 0 |
Check notice
Code scanning / Robocop
'{{ block_name }}' condition can be simplified Note test
c83bdf4
to
3b3b44f
Compare
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
3b3b44f
to
1982de3
Compare
IF ${result.rc} != 0 | ||
FAIL Unable to edit codeflare-operator-config configmap | ||
END | ||
${result} = Run Process oc -n ${APPLICATIONS_NAMESPACE} delete pod -l app.kubernetes.io/name\=codeflare-operator |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
IF ${result.rc} != 0 | ||
FAIL Unable to edit codeflare-operator-config configmap | ||
END | ||
${result} = Run Process oc -n ${APPLICATIONS_NAMESPACE} delete pod -l app.kubernetes.io/name\=codeflare-operator |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
1982de3
to
7f0516c
Compare
... shell=true | ||
... stderr=STDOUT | ||
Log To Console ${result.stdout} | ||
IF ${result.rc} != 0 |
Check notice
Code scanning / Robocop
IF can be replaced with inline IF Note test
... shell=true | ||
... stderr=STDOUT | ||
Log To Console ${result.stdout} | ||
IF ${result.rc} != 0 |
Check notice
Code scanning / Robocop
'{{ block_name }}' condition can be simplified Note test
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
... shell=true | ||
... stderr=STDOUT | ||
Log To Console ${result.stdout} | ||
IF ${result.rc} != 0 |
Check notice
Code scanning / Robocop
IF can be replaced with inline IF Note test
... shell=true | ||
... stderr=STDOUT | ||
Log To Console ${result.stdout} | ||
IF ${result.rc} != 0 |
Check notice
Code scanning / Robocop
'{{ block_name }}' condition can be simplified Note test
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
7f0516c
to
31f9c99
Compare
IF ${result.rc} != 0 | ||
FAIL Unable to reset codeflare-operator pod | ||
END | ||
${result} = Run Process oc -n ${APPLICATIONS_NAMESPACE} wait --for\=condition\=Available deployment/codeflare-operator-manager |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
IF ${result.rc} != 0 | ||
FAIL Unable to reset codeflare-operator pod | ||
END | ||
${result} = Run Process oc -n ${APPLICATIONS_NAMESPACE} wait --for\=condition\=Available deployment/codeflare-operator-manager |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
31f9c99
to
ab75d4f
Compare
[Tags] Tier2 | ||
... DistributedWorkloads | ||
... WorkloadsOrchestration | ||
... MYTEST |
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.
Should be removed?
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.
@sutaakar
Thank you for noticing it! Tag was removed.
ab75d4f
to
742bbf8
Compare
|
||
Enable appwrapper in Codeflare operator | ||
[Documentation] Enable appwrapper in Codeflare operator | ||
${result} = Run Process oc -n ${APPLICATIONS_NAMESPACE} get configmap codeflare-operator-config -o yaml | sed 's/enabled: false/enabled: true/' | oc apply -n redhat-ods-applications -f - |
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 guess this also overrides kueueJobReconciller/waitForPodsReady , is it so?
Would it be possible to use yq to modify just the specific field?
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.
Echoing what @jiripetrlik and I discussed offline:
The VAP resource's default behaviour is to reject RayClusters that don't use a LocalQueue. Hence, the resource can conflict with other tests.
As part of the teardown for that test, I recommend to disable the ValidatingAdmissionPolicyBinding
resource named "kueue-validating-admission-policy-binding". This can be done as follows:
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicyBinding
metadata:
name: kueue-validating-admission-policy-binding
spec:
policyName: disabled ##### SET TO DISABLED
validationActions: [Deny]
matchResources:
namespaceSelector: {}
742bbf8
to
e402e73
Compare
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
e402e73
to
cc8c1fb
Compare
cc8c1fb
to
40813fe
Compare
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
40813fe
to
d968e74
Compare
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
d968e74
to
4c03f4d
Compare
|
|
||
Enable appwrapper in Codeflare operator | ||
[Documentation] Enable appwrapper in Codeflare operator | ||
${result} = Run Process config_yaml\=\$(oc -n ${APPLICATIONS_NAMESPACE} get configmap codeflare-operator-config -o json | jq -r '.data."config.yaml"' | yq ".appwrapper.enabled\=true" | sed 's/"/\\\\"/g') && oc -n ${APPLICATIONS_NAMESPACE} get configmap codeflare-operator-config -o json | jq ".data.\\"config.yaml\\"\=\\"\$config_yaml\\"" | oc apply -n ${APPLICATIONS_NAMESPACE} -f - |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
|
||
Disable appwrapper in Codeflare operator | ||
[Documentation] Enable appwrapper in Codeflare operator | ||
${result} = Run Process config_yaml\=\$(oc -n ${APPLICATIONS_NAMESPACE} get configmap codeflare-operator-config -o json | jq -r '.data."config.yaml"' | yq ".appwrapper.enabled\=false" | sed 's/"/\\\\"/g') && oc -n ${APPLICATIONS_NAMESPACE} get configmap codeflare-operator-config -o json | jq ".data.\\"config.yaml\\"\=\\"\$config_yaml\\"" | oc apply -n ${APPLICATIONS_NAMESPACE} -f - |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
No description provided.