Skip to content

Commit

Permalink
Align distributed workloads tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChughShilpa authored and sutaakar committed Oct 8, 2024
1 parent 26d6340 commit 6fcdf35
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 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 @@ -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 6fcdf35

Please sign in to comment.