Skip to content

Commit

Permalink
[Test][Autoscaler] Rename e2e_autoscaler to e2eautoscaler to make the…
Browse files Browse the repository at this point in the history
… linter happy

Signed-off-by: Rueian <[email protected]>
  • Loading branch information
rueian committed Jun 22, 2024
1 parent 5ac3421 commit 4879ee1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
6 changes: 4 additions & 2 deletions .buildkite/test-sample-yamls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,16 @@
instance_size: large
image: golang:1.20
commands:
- ./.buildkite/setup-env.sh
- source .buildkite/setup-env.sh
- kind create cluster --wait 900s --config ./tests/framework/config/kind-config-buildkite.yml
- kubectl config set clusters.kind-kind.server https://docker:6443
# Build nightly KubeRay operator image
- pushd ray-operator
- IMG=kuberay/operator:nightly make docker-image
- kind load docker-image kuberay/operator:nightly
- IMG=kuberay/operator:nightly make deploy
- kubectl wait --timeout=90s --for=condition=Available=true deployment -n ray-system kuberay-operator
# Run e2e tests
- KUBERAY_TEST_TIMEOUT_SHORT=1m KUBERAY_TEST_TIMEOUT_MEDIUM=5m KUBERAY_TEST_TIMEOUT_LONG=10m go test -timeout 30m -v ./test/e2e_autoscaler
- KUBERAY_TEST_TIMEOUT_SHORT=1m KUBERAY_TEST_TIMEOUT_MEDIUM=5m KUBERAY_TEST_TIMEOUT_LONG=10m go test -timeout 30m -v ./test/e2eautoscaler
# Printing KubeRay operator logs
- kubectl logs -n ray-system --tail -1 -l app.kubernetes.io/name=kuberay
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package e2e_autoscaler
package e2eautoscaler

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package e2e_autoscaler
package e2eautoscaler

import (
"embed"
Expand Down Expand Up @@ -91,21 +91,6 @@ func mountConfigMap[T rayv1ac.RayClusterSpecApplyConfiguration | corev1ac.PodTem
}
}

func rayClusterSpec() *rayv1ac.RayClusterSpecApplyConfiguration {
return rayv1ac.RayClusterSpec().
WithRayVersion(GetRayVersion()).
WithHeadGroupSpec(rayv1ac.HeadGroupSpec().
WithRayStartParams(map[string]string{"dashboard-host": "0.0.0.0"}).
WithTemplate(headPodTemplateApplyConfiguration())).
WithWorkerGroupSpecs(rayv1ac.WorkerGroupSpec().
WithReplicas(1).
WithMinReplicas(1).
WithMaxReplicas(1).
WithGroupName("small-group").
WithRayStartParams(map[string]string{"num-cpus": "1"}).
WithTemplate(workerPodTemplateApplyConfiguration()))
}

func headPodTemplateApplyConfiguration() *corev1ac.PodTemplateSpecApplyConfiguration {
return corev1ac.PodTemplateSpec().
WithSpec(corev1ac.PodSpec().
Expand Down

0 comments on commit 4879ee1

Please sign in to comment.