-
Notifications
You must be signed in to change notification settings - Fork 82
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
RHODS-12410 - Create a Robot framework test for running DW tests #980
RHODS-12410 - Create a Robot framework test for running DW tests #980
Conversation
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.
Robocop found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
bd2926a
to
15660fb
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
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
15660fb
to
c450045
Compare
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
037a39b
to
3147a6a
Compare
ods_ci/tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Fixed
Show fixed
Hide fixed
079af8b
to
0cd21a8
Compare
[Documentation] Clone Git repository | ||
[Arguments] ${DW_REPO_URL} ${DW_REPO_BRANCH} ${DW_DIR} | ||
${result} = Run Process git clone -b ${DW_REPO_BRANCH} ${DW_REPO_URL} ${DW_DIR} shell=true | ||
IF ${result.rc} != 0 |
Check notice
Code scanning / Robocop
'{{ block_name }}' condition can be simplified Note test
0def0a5
to
81e9b52
Compare
${test_resul}= Run Distributed Workloads Tests ${DW_DIR} ${DW_TEST_RESULT_FILE} | ||
Install Go Junit Report Tool | ||
Convert Go Test Results To Junit ${DW_TEST_RESULT_FILE} ${DW_JUNIT_FILE} | ||
IF ${test_result} != 0 |
Check notice
Code scanning / Robocop
'{{ block_name }}' condition can be simplified Note test
${result} = Run Process go install ${GO_JUNIT_REPORT_TOOL} | ||
... shell=true env:GOBIN=${JOB_GO_BIN} 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
${result} = Run Process go install ${GO_JUNIT_REPORT_TOOL} | ||
... shell=true env:GOBIN=${JOB_GO_BIN} stderr=STDOUT | ||
Log To Console ${result.stdout} | ||
IF ${result.rc} != 0 |
Check notice
Code scanning / Robocop
'{{ block_name }}' condition can be simplified Note test
${result} = Run Process ${JOB_GO_BIN}/go-junit-report -in ${DW_TEST_RESULT_FILE} -iocopy -out ${DW_JUNIT_FILE} | ||
... 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
81e9b52
to
096ae75
Compare
... go test -v -timeout ${GO_TEST_TIMEOUT} ./integration 2>&1 > ${DW_TEST_RESULT_FILE} | ||
... shell=true cwd=${DW_DIR}/tests env:ODH_NAMESPACE=redhat-ods-applications | ||
Log To Console ${result.stdout} | ||
${test_output}= Get File ${DW_TEST_RESULT_FILE} |
Check warning
Code scanning / Robocop
The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test
0b5f4db
to
79c2298
Compare
${result} = Run Process | ||
... go test -v -timeout ${GO_TEST_TIMEOUT} ./integration 2>&1 > ${DW_TEST_RESULT_FILE} | ||
... shell=true cwd=${DW_DIR}/tests env:ODH_NAMESPACE=redhat-ods-applications | ||
... env:DW_TEST_TIMEOUT_LONG=${DW_TEST_TIMEOUT_LONG} |
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.
Where is the DW_TEST_TIMEOUT_LONG
declared and what does it represent? In DW tests we use env variable CODEFLARE_TEST_TIMEOUT_LONG
- https://github.com/project-codeflare/codeflare-common/blob/main/support/support.go#L54
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! It should be fixed now.
f599379
to
910b26b
Compare
@aloganat @manosnoam Hello, will you have time to review this PR? |
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.
Looks good to me
910b26b
to
21afba0
Compare
Robot Results
|
21afba0
to
68b2095
Compare
68b2095
to
eca4cd2
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
|
||
Skip If "%{OPERATOR_TYPE}" != "RHODS Operator V2" | ||
DistributedWorkloads.Clone Git Repository %{DW_GIT_REPO} %{DW_GIT_REPO_BRANCH} ${DW_DIR} | ||
${test_result}= Run Distributed Workloads Tests ${DW_DIR} ${DW_TEST_RESULT_FILE} -run '.*Test[RK].*[^r]$' -parallel 1 %{DW_GO_TESTS_PARAMS} |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning 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.
lgtm, as the DW tests passed in the sanity run execution
The goal is to allow tests from Distributed Workloads repo to be run as robot framework tests (https://github.com/opendatahub-io/distributed-workloads/tree/main/tests).