Skip to content

Commit

Permalink
Merge branch 'master' into fix/mr_pip_install
Browse files Browse the repository at this point in the history
  • Loading branch information
lugi0 authored Oct 8, 2024
2 parents d06340a + 6fcdf35 commit e88edb0
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ Run Training Operator ODH Test
FAIL ${TEST_NAME} failed
END

Prepare Codeflare E2E Test Suite
[Documentation] Prepare Codeflare E2E Core Test Suite
Prepare DistributedWorkloads Integration Test Suite
[Documentation] Prepare DistributedWorkloads Integration Test Suite
Log To Console "Restarting kueue"
Restart Kueue

Expand All @@ -196,16 +196,16 @@ Prepare Codeflare E2E Test Suite
IF ${result.rc} != 0
FAIL Unable to retrieve odh compiled binary
END
Create Directory %{WORKSPACE}/codeflare-odh-logs
Create Directory %{WORKSPACE}/distributed-workloads-odh-logs
Log To Console "Retrieving user tokens"
${common_user_token} = Generate User Token ${NOTEBOOK_USER_NAME} ${NOTEBOOK_USER_PASSWORD}
Set Suite Variable ${NOTEBOOK_USER_TOKEN} ${common_user_token}
Log To Console "Log back as cluster admin"
Login To OCP Using API ${OCP_ADMIN_USER.USERNAME} ${OCP_ADMIN_USER.PASSWORD}
RHOSi Setup

Teardown Codeflare E2E Test Suite
[Documentation] Teardown Codeflare E2E Test Suite
Teardown DistributedWorkloads Integration Test Suite
[Documentation] Teardown DistributedWorkloads Integration Test Suite
Log To Console "Log back as cluster admin"
Login To OCP Using API ${OCP_ADMIN_USER.USERNAME} ${OCP_ADMIN_USER.PASSWORD}
Log To Console "Removing test binaries"
Expand All @@ -220,8 +220,8 @@ Generate User Token
Should Be Equal As Integers ${rc} ${0}
RETURN ${out}

Run Codeflare ODH Test
[Documentation] Run Codeflare ODH Test
Run DistributedWorkloads ODH Test
[Documentation] Run DistributedWorkloads ODH Test
[Arguments] ${TEST_NAME} ${RAY_IMAGE}
Log To Console "Running test: ${TEST_NAME}"
${result} = Run Process ./${ODH_BINARY_NAME} -test.run ${TEST_NAME}
Expand All @@ -230,7 +230,7 @@ Run Codeflare ODH Test
... env:CODEFLARE_TEST_TIMEOUT_SHORT=5m
... env:CODEFLARE_TEST_TIMEOUT_MEDIUM=10m
... env:CODEFLARE_TEST_TIMEOUT_LONG=20m
... env:CODEFLARE_TEST_OUTPUT_DIR=%{WORKSPACE}/codeflare-odh-logs
... env:CODEFLARE_TEST_OUTPUT_DIR=%{WORKSPACE}/distributed-workloads-odh-logs
... env:CODEFLARE_TEST_RAY_IMAGE=${RAY_IMAGE}
... env:ODH_NAMESPACE=${APPLICATIONS_NAMESPACE}
... env:NOTEBOOK_USER_NAME=${NOTEBOOK_USER_NAME}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Select Distributed Workload Project By Name
[Documentation] Select the project in distributed workload metrics page by project name
[Arguments] ${project_name}
Wait Until Element Is Visible ${PROJECT_XP} timeout=20
Click Element xpath://*[@data-testid="project-selector-dropdown"]
Click Element xpath://*[@role="menuitem" and string()="${project_name}"]
Click Element xpath://button[@id='project-selector']
Click Element xpath://button[@role="menuitem" and string()="${project_name}"]

Check Expected String Contains
[Documentation] Check Expected String Contains with the xpath prvoided get text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Select Permission Type
Save Permission
Element Should Be Enabled ${SAVE_BUTTON}
Click Element ${SAVE_BUTTON}
Wait Until Page Does Not Contain Element ${SAVE_BUTTON}
Wait Until Page Does Not Contain Element ${SAVE_BUTTON} timeout=30s

Assign ${permission_type} Permissions To Group ${group_name}
[Documentation] Assign the user ${group_name} and level of permission ${permission_type}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Documentation Suite to test Workload metrics feature
Library SeleniumLibrary
Library OpenShiftLibrary
Resource ../../../Resources/Page/DistributedWorkloads/WorkloadMetricsUI.resource
Resource ../../../Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/Projects.resource
Resource ../../../../tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Resource ../../Resources/Page/DistributedWorkloads/WorkloadMetricsUI.resource
Resource ../../Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/Projects.resource
Resource ../../Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Suite Setup Project Suite Setup
Suite Teardown Project Suite Teardown
Test Tags DistributedWorkloadMetrics
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
*** Settings ***
Documentation Codeflare operator E2E tests - https://github.com/opendatahub-io/distributed-workloads/tree/main/tests/odh
Suite Setup Prepare Codeflare E2E Test Suite
Suite Teardown Teardown Codeflare E2E Test Suite
Documentation Distributed Workloads Integration tests - https://github.com/opendatahub-io/distributed-workloads/tree/main/tests/odh
Suite Setup Prepare DistributedWorkloads Integration Test Suite
Suite Teardown Teardown DistributedWorkloads Integration Test Suite
Library OperatingSystem
Library Process
Resource ../../../../tasks/Resources/RHODS_OLM/install/oc_install.robot
Resource ../../../../tests/Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Resource ../../../tasks/Resources/RHODS_OLM/install/oc_install.robot
Resource ../../Resources/Page/DistributedWorkloads/DistributedWorkloads.resource


*** Variables ***
Expand All @@ -20,44 +20,44 @@ Run TestKueueRayCpu ODH test
... Tier1
... DistributedWorkloads
... Training
... CodeflareOperator
Run Codeflare ODH Test TestMnistRayCpu ${RAY_CUDA_IMAGE}
... WorkloadsOrchestration
Run DistributedWorkloads ODH Test TestMnistRayCpu ${RAY_CUDA_IMAGE}

Run TestKueueRayGpu ODH test
[Documentation] Run Go ODH test: TestKueueRayGpu
[Tags] Resources-GPU
... Tier1
... DistributedWorkloads
... Training
... CodeflareOperator
Run Codeflare ODH Test TestMnistRayGpu ${RAY_CUDA_IMAGE}
... WorkloadsOrchestration
Run DistributedWorkloads ODH Test TestMnistRayGpu ${RAY_CUDA_IMAGE}

Run TestRayTuneHPOCpu ODH test
[Documentation] Run Go ODH test: TestMnistRayTuneHpoCpu
[Tags] RHOAIENG-10004
... Tier1
... DistributedWorkloads
... Training
... CodeflareOperator
Run Codeflare ODH Test TestMnistRayTuneHpoCpu ${RAY_CUDA_IMAGE}
... WorkloadsOrchestration
Run DistributedWorkloads ODH Test TestMnistRayTuneHpoCpu ${RAY_CUDA_IMAGE}

Run TestRayTuneHPOGpu ODH test
[Documentation] Run Go ODH test: TestMnistRayTuneHpoGpu
[Tags] Resources-GPU
... Tier1
... DistributedWorkloads
... Training
... CodeflareOperator
Run Codeflare ODH Test TestMnistRayTuneHpoGpu ${RAY_CUDA_IMAGE}
... WorkloadsOrchestration
Run DistributedWorkloads ODH Test TestMnistRayTuneHpoGpu ${RAY_CUDA_IMAGE}

Run TestKueueCustomRayCpu ODH test
[Documentation] Run Go ODH test: TestKueueCustomRayCpu
[Tags] RHOAIENG-10013
... Tier1
... DistributedWorkloads
... Training
... CodeflareOperator
Run Codeflare ODH Test TestMnistCustomRayImageCpu ${RAY_TORCH_CUDA_IMAGE}
... WorkloadsOrchestration
Run DistributedWorkloads ODH Test TestMnistCustomRayImageCpu ${RAY_TORCH_CUDA_IMAGE}

Run TestKueueCustomRayGpu ODH test
[Documentation] Run Go ODH test: TestKueueCustomRayGpu
Expand All @@ -66,5 +66,5 @@ Run TestKueueCustomRayGpu ODH test
... Tier1
... DistributedWorkloads
... Training
... CodeflareOperator
Run Codeflare ODH Test TestMnistCustomRayImageGpu ${RAY_TORCH_CUDA_IMAGE}
... WorkloadsOrchestration
Run DistributedWorkloads ODH Test TestMnistCustomRayImageGpu ${RAY_TORCH_CUDA_IMAGE}

0 comments on commit e88edb0

Please sign in to comment.