Adding Tier1 kuberay e2e tests (including autoscaler, packages: ./test/e2erayjob ./test/e2eautoscaler) Adding Smoke kuberay e2e tests (packages: ./test/e2e) Selected tiers: Tier1 Smoke Test packages: ./test/e2erayjob ./test/e2eautoscaler ./test/e2e Running e2e tests matching: ^(TestRayJobWithClusterSelector|TestRayJob|TestRayJobSuspend|TestRayJobLightWeightMode|TestRayClusterAutoscaler|TestRayClusterAuthenticationRhoai|TestRayClusterAuthOptions)$ Test timeout: 60m go: downloading k8s.io/api v0.35.0 go: downloading k8s.io/apimachinery v0.35.0 go: downloading k8s.io/client-go v0.35.0 go: downloading github.com/onsi/gomega v1.38.3 go: downloading github.com/stretchr/testify v1.11.1 go: downloading k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 go: downloading github.com/onsi/ginkgo/v2 v2.27.3 go: downloading github.com/prometheus/client_golang v1.23.2 go: downloading sigs.k8s.io/gateway-api v1.4.1 go: downloading github.com/openshift/api v0.0.0-20251214014457-bfa868a22401 go: downloading github.com/robfig/cron/v3 v3.0.1 go: downloading sigs.k8s.io/controller-runtime v0.22.4 go: downloading github.com/google/go-cmp v0.7.0 go: downloading github.com/Masterminds/semver/v3 v3.4.0 go: downloading sigs.k8s.io/yaml v1.6.0 go: downloading github.com/go-logr/logr v1.4.3 go: downloading k8s.io/apiserver v0.34.3 go: downloading k8s.io/component-base v0.34.3 go: downloading gopkg.in/inf.v0 v0.9.1 go: downloading sigs.k8s.io/randfill v1.0.0 go: downloading github.com/cert-manager/cert-manager v1.18.2 go: downloading github.com/orcaman/concurrent-map/v2 v2.0.1 go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 go: downloading github.com/beorn7/perks v1.0.1 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/prometheus/client_model v0.6.2 go: downloading github.com/prometheus/common v0.67.4 go: downloading github.com/prometheus/procfs v0.19.2 go: downloading google.golang.org/protobuf v1.36.11 go: downloading k8s.io/klog/v2 v2.130.1 go: downloading k8s.io/kube-openapi v0.0.0-20251125145642-4e65d59e963e go: downloading sigs.k8s.io/structured-merge-diff/v6 v6.3.1 go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 go: downloading golang.org/x/net v0.48.0 go: downloading github.com/spf13/pflag v1.0.10 go: downloading golang.org/x/term v0.38.0 go: downloading github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7 go: downloading github.com/smallnest/chanx v1.2.0 go: downloading sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 go: downloading github.com/google/gnostic-models v0.7.1 go: downloading github.com/evanphx/json-patch/v5 v5.9.11 go: downloading go.yaml.in/yaml/v3 v3.0.4 go: downloading go.yaml.in/yaml/v2 v2.4.3 go: downloading gopkg.in/yaml.v3 v3.0.1 go: downloading github.com/gogo/protobuf v1.3.2 go: downloading golang.org/x/sys v0.39.0 go: downloading golang.org/x/time v0.14.0 go: downloading github.com/json-iterator/go v1.1.12 go: downloading golang.org/x/oauth2 v0.34.0 go: downloading github.com/fxamacker/cbor/v2 v2.9.0 go: downloading github.com/moby/spdystream v0.5.0 go: downloading gomodules.xyz/jsonpatch/v2 v2.5.0 go: downloading golang.org/x/text v0.32.0 go: downloading sigs.k8s.io/scheduler-plugins v0.33.5 go: downloading volcano.sh/apis v1.13.0 go: downloading github.com/google/uuid v1.6.0 go: downloading k8s.io/apiextensions-apiserver v0.34.3 go: downloading github.com/google/btree v1.1.3 go: downloading golang.org/x/sync v0.19.0 go: downloading golang.org/x/tools v0.40.0 go: downloading github.com/go-openapi/jsonreference v0.21.4 go: downloading github.com/go-openapi/swag v0.25.4 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd go: downloading github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee go: downloading github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f go: downloading github.com/x448/float16 v0.8.4 go: downloading github.com/blang/semver/v4 v4.0.0 go: downloading go.opentelemetry.io/otel/trace v1.39.0 go: downloading go.opentelemetry.io/otel v1.39.0 go: downloading gopkg.in/evanphx/json-patch.v4 v4.13.0 go: downloading github.com/go-openapi/jsonpointer v0.22.4 go: downloading github.com/go-openapi/swag/cmdutils v0.25.4 go: downloading github.com/go-openapi/swag/conv v0.25.4 go: downloading github.com/go-openapi/swag/fileutils v0.25.4 go: downloading github.com/go-openapi/swag/jsonname v0.25.4 go: downloading github.com/go-openapi/swag/jsonutils v0.25.4 go: downloading github.com/go-openapi/swag/loading v0.25.4 go: downloading github.com/go-openapi/swag/mangling v0.25.4 go: downloading github.com/go-openapi/swag/netutils v0.25.4 go: downloading github.com/go-openapi/swag/stringutils v0.25.4 go: downloading github.com/go-openapi/swag/typeutils v0.25.4 go: downloading github.com/go-openapi/swag/yamlutils v0.25.4 go: downloading github.com/emicklei/go-restful/v3 v3.13.0 go: downloading golang.org/x/mod v0.31.0 === RUN TestRayJobWithClusterSelector rayjob_cluster_selector_test.go:27: [2026-07-22T13:45:44Z] Created ConfigMap test-ns-w4btf/jobs successfully rayjob_cluster_selector_test.go:35: [2026-07-22T13:45:44Z] Created RayCluster test-ns-w4btf/raycluster successfully rayjob_cluster_selector_test.go:37: [2026-07-22T13:45:44Z] Waiting for RayCluster test-ns-w4btf/raycluster to become ready === RUN TestRayJobWithClusterSelector/Successful_RayJob === PAUSE TestRayJobWithClusterSelector/Successful_RayJob === RUN TestRayJobWithClusterSelector/Failing_RayJob === PAUSE TestRayJobWithClusterSelector/Failing_RayJob === RUN TestRayJobWithClusterSelector/RayJob_should_be_created_but_not_to_be_updated_when_managed_externally rayjob_cluster_selector_test.go:109: [2026-07-22T13:49:11Z] Created RayJob test-ns-w4btf/managed-externally successfully --- PASS: TestRayJobWithClusterSelector/RayJob_should_be_created_but_not_to_be_updated_when_managed_externally (3.01s) === RUN TestRayJobWithClusterSelector/RayJob_should_not_be_created_due_to_managedBy_invalid_value --- PASS: TestRayJobWithClusterSelector/RayJob_should_not_be_created_due_to_managedBy_invalid_value (0.01s) === CONT TestRayJobWithClusterSelector/Successful_RayJob rayjob_cluster_selector_test.go:57: [2026-07-22T13:49:14Z] Created RayJob test-ns-w4btf/counter successfully rayjob_cluster_selector_test.go:59: [2026-07-22T13:49:14Z] Waiting for RayJob test-ns-w4btf/counter to complete --- PASS: TestRayJobWithClusterSelector/Successful_RayJob (18.16s) === CONT TestRayJobWithClusterSelector/Failing_RayJob rayjob_cluster_selector_test.go:81: [2026-07-22T13:49:32Z] Created RayJob test-ns-w4btf/fail successfully rayjob_cluster_selector_test.go:83: [2026-07-22T13:49:32Z] Waiting for RayJob test-ns-w4btf/fail to complete --- PASS: TestRayJobWithClusterSelector/Failing_RayJob (18.15s) test.go:114: [2026-07-22T13:49:50Z] Retrieving Pod Container test-ns-w4btf/counter-gk58b/ray-job-submitter logs test.go:102: [2026-07-22T13:49:50Z] Creating ephemeral output directory as KUBERAY_TEST_OUTPUT_DIR env variable is unset test.go:105: [2026-07-22T13:49:50Z] Output directory has been created at: /tmp/TestRayJobWithClusterSelector4249397304/001 test.go:114: [2026-07-22T13:49:50Z] Retrieving Pod Container test-ns-w4btf/fail-v27bs/ray-job-submitter logs test.go:114: [2026-07-22T13:49:50Z] Retrieving Pod Container test-ns-w4btf/raycluster-head-xb4kc/ray-head logs test.go:114: [2026-07-22T13:49:50Z] Retrieving Pod Container test-ns-w4btf/raycluster-head-xb4kc/kube-rbac-proxy logs test.go:114: [2026-07-22T13:49:50Z] Retrieving Pod Container test-ns-w4btf/raycluster-small-group-worker-7ntf2/ray-worker logs --- PASS: TestRayJobWithClusterSelector (209.62s) === RUN TestRayJobLightWeightMode rayjob_lightweight_test.go:28: [2026-07-22T13:49:50Z] Created ConfigMap test-ns-nrsln/jobs successfully === RUN TestRayJobLightWeightMode/Successful_RayJob rayjob_lightweight_test.go:57: [2026-07-22T13:49:50Z] Created RayJob test-ns-nrsln/counter successfully rayjob_lightweight_test.go:59: [2026-07-22T13:49:50Z] Waiting for RayJob test-ns-nrsln/counter to complete --- PASS: TestRayJobLightWeightMode/Successful_RayJob (33.30s) === RUN TestRayJobLightWeightMode/Failing_RayJob_without_cluster_shutdown_after_finished rayjob_lightweight_test.go:91: [2026-07-22T13:50:23Z] Created RayJob test-ns-nrsln/fail successfully rayjob_lightweight_test.go:93: [2026-07-22T13:50:23Z] Waiting for RayJob test-ns-nrsln/fail to complete --- PASS: TestRayJobLightWeightMode/Failing_RayJob_without_cluster_shutdown_after_finished (99.65s) === RUN TestRayJobLightWeightMode/Should_transition_to_'Complete'_if_the_Ray_job_has_stopped. rayjob_lightweight_test.go:122: [2026-07-22T13:52:03Z] Created RayJob test-ns-nrsln/stop successfully rayjob_lightweight_test.go:124: [2026-07-22T13:52:03Z] Waiting for RayJob test-ns-nrsln/stop to be 'Running' rayjob_lightweight_test.go:128: [2026-07-22T13:54:01Z] Waiting for RayJob test-ns-nrsln/stop to be 'Complete' rayjob_lightweight_test.go:138: [2026-07-22T13:54:25Z] Deleted RayJob test-ns-nrsln/stop successfully --- PASS: TestRayJobLightWeightMode/Should_transition_to_'Complete'_if_the_Ray_job_has_stopped. (141.92s) === RUN TestRayJobLightWeightMode/Successful_RayJob_in_HTTP_mode_with_auth_token rayjob_lightweight_test.go:157: [2026-07-22T13:54:25Z] Created RayJob test-ns-nrsln/counter-auth successfully with auth token rayjob_lightweight_test.go:160: [2026-07-22T13:54:25Z] Waiting for RayCluster to be created rayjob_lightweight_test.go:170: [2026-07-22T13:54:26Z] Waiting for RayCluster test-ns-nrsln/counter-auth-2zrd7 to become ready rayjob_lightweight_test.go:193: [2026-07-22T13:56:19Z] Waiting for RayJob test-ns-nrsln/counter-auth to complete rayjob_lightweight_test.go:205: [2026-07-22T13:56:26Z] RayJob test-ns-nrsln/counter-auth completed successfully with auth token --- PASS: TestRayJobLightWeightMode/Successful_RayJob_in_HTTP_mode_with_auth_token (120.89s) test.go:114: [2026-07-22T13:56:26Z] Retrieving Pod Container test-ns-nrsln/counter-auth-2zrd7-head-pccp5/ray-head logs test.go:102: [2026-07-22T13:56:26Z] Creating ephemeral output directory as KUBERAY_TEST_OUTPUT_DIR env variable is unset test.go:105: [2026-07-22T13:56:26Z] Output directory has been created at: /tmp/TestRayJobLightWeightMode2734412894/001 test.go:114: [2026-07-22T13:56:26Z] Retrieving Pod Container test-ns-nrsln/counter-auth-2zrd7-head-pccp5/kube-rbac-proxy logs test.go:114: [2026-07-22T13:56:26Z] Retrieving Pod Container test-ns-nrsln/counter-auth-2zrd7-small-group-worker-cszwq/ray-worker logs test.go:114: [2026-07-22T13:56:26Z] Retrieving Pod Container test-ns-nrsln/fail-7qdgm-head-ksx9m/ray-head logs test.go:114: [2026-07-22T13:56:26Z] Retrieving Pod Container test-ns-nrsln/fail-7qdgm-head-ksx9m/kube-rbac-proxy logs test.go:114: [2026-07-22T13:56:26Z] Retrieving Pod Container test-ns-nrsln/fail-7qdgm-small-group-worker-glz4j/ray-worker logs --- PASS: TestRayJobLightWeightMode (395.89s) === RUN TestRayJobSuspend rayjob_suspend_test.go:27: [2026-07-22T13:56:26Z] Created ConfigMap test-ns-phb6w/jobs successfully === RUN TestRayJobSuspend/Suspend_the_RayJob_when_its_status_is_'Running',_and_then_resume_it. rayjob_suspend_test.go:41: [2026-07-22T13:56:26Z] Created RayJob test-ns-phb6w/long-running successfully rayjob_suspend_test.go:43: [2026-07-22T13:56:26Z] Waiting for RayJob test-ns-phb6w/long-running to be 'Running' rayjob_suspend_test.go:47: [2026-07-22T13:58:08Z] Suspend the RayJob test-ns-phb6w/long-running rayjob_suspend_test.go:52: [2026-07-22T13:58:08Z] Waiting for RayJob test-ns-phb6w/long-running to be 'Suspended' rayjob_suspend_test.go:68: [2026-07-22T13:58:09Z] Resume the RayJob by updating `suspend` to false. rayjob_suspend_test.go:78: [2026-07-22T13:59:53Z] Deleted RayJob test-ns-phb6w/long-running successfully --- PASS: TestRayJobSuspend/Suspend_the_RayJob_when_its_status_is_'Running',_and_then_resume_it. (206.47s) === RUN TestRayJobSuspend/Create_a_suspended_RayJob,_and_then_resume_it. rayjob_suspend_test.go:97: [2026-07-22T13:59:53Z] Created RayJob test-ns-phb6w/counter successfully rayjob_suspend_test.go:99: [2026-07-22T13:59:53Z] Waiting for RayJob test-ns-phb6w/counter to be 'Suspended' rayjob_suspend_test.go:103: [2026-07-22T13:59:54Z] Resume the RayJob by updating `suspend` to false. rayjob_suspend_test.go:108: [2026-07-22T13:59:54Z] Waiting for RayJob test-ns-phb6w/counter to complete rayjob_suspend_test.go:123: [2026-07-22T14:00:46Z] Deleted RayJob test-ns-phb6w/counter successfully --- PASS: TestRayJobSuspend/Create_a_suspended_RayJob,_and_then_resume_it. (55.44s) test.go:102: [2026-07-22T14:00:48Z] Creating ephemeral output directory as KUBERAY_TEST_OUTPUT_DIR env variable is unset test.go:105: [2026-07-22T14:00:48Z] Output directory has been created at: /tmp/TestRayJobSuspend1117050098/001 --- PASS: TestRayJobSuspend (261.95s) === RUN TestRayJob rayjob_test.go:34: [2026-07-22T14:00:48Z] Created ConfigMap test-ns-6zcs6/jobs successfully === RUN TestRayJob/Successful_RayJob rayjob_test.go:51: [2026-07-22T14:00:48Z] Created RayJob test-ns-6zcs6/counter successfully rayjob_test.go:61: [2026-07-22T14:02:36Z] Waiting for RayJob test-ns-6zcs6/counter to complete rayjob_test.go:77: [2026-07-22T14:02:56Z] Checking that the RayJob status info has been set correctly. rayjob_test.go:94: [2026-07-22T14:02:56Z] Update `suspend` to true. However, since the RayJob is completed, the status should not be updated to `Suspended`. rayjob_test.go:104: [2026-07-22T14:03:26Z] Deleted RayJob test-ns-6zcs6/counter successfully --- PASS: TestRayJob/Successful_RayJob (157.73s) === RUN TestRayJob/Failing_RayJob_without_cluster_shutdown_after_finished rayjob_test.go:118: [2026-07-22T14:03:26Z] Created RayJob test-ns-6zcs6/fail successfully rayjob_test.go:120: [2026-07-22T14:03:26Z] Waiting for RayJob test-ns-6zcs6/fail to complete rayjob_test.go:143: [2026-07-22T14:05:20Z] Deleted RayJob test-ns-6zcs6/fail successfully --- PASS: TestRayJob/Failing_RayJob_without_cluster_shutdown_after_finished (115.78s) === RUN TestRayJob/Failing_submitter_K8s_Job rayjob_test.go:171: [2026-07-22T14:05:22Z] Created RayJob test-ns-6zcs6/fail-k8s-job successfully rayjob_test.go:173: [2026-07-22T14:05:22Z] Waiting for RayJob test-ns-6zcs6/fail-k8s-job to complete rayjob_test.go:196: [2026-07-22T14:07:48Z] Deleted RayJob test-ns-6zcs6/fail-k8s-job successfully --- PASS: TestRayJob/Failing_submitter_K8s_Job (146.98s) === RUN TestRayJob/Should_transition_to_'Complete'_if_the_Ray_job_has_stopped. rayjob_test.go:210: [2026-07-22T14:07:48Z] Created RayJob test-ns-6zcs6/stop successfully rayjob_test.go:212: [2026-07-22T14:07:48Z] Waiting for RayJob test-ns-6zcs6/stop to be 'Running' rayjob_test.go:216: [2026-07-22T14:09:41Z] Waiting for RayJob test-ns-6zcs6/stop to be 'Complete' rayjob_test.go:226: [2026-07-22T14:10:19Z] Deleted RayJob test-ns-6zcs6/stop successfully --- PASS: TestRayJob/Should_transition_to_'Complete'_if_the_Ray_job_has_stopped. (151.02s) === RUN TestRayJob/RuntimeEnvYAML_is_not_a_valid_YAML_string rayjob_test.go:238: [2026-07-22T14:10:20Z] Created RayJob test-ns-6zcs6/invalid-yamlstr successfully --- PASS: TestRayJob/RuntimeEnvYAML_is_not_a_valid_YAML_string (1.02s) === RUN TestRayJob/RayJob_name_too_long_with_48_characters rayjob_test.go:253: [2026-07-22T14:10:21Z] Created RayJob test-ns-6zcs6/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa successfully --- PASS: TestRayJob/RayJob_name_too_long_with_48_characters (1.02s) === RUN TestRayJob/RayJob_has_passed_ActiveDeadlineSeconds rayjob_test.go:272: [2026-07-22T14:10:22Z] Created RayJob test-ns-6zcs6/long-running successfully rayjob_test.go:275: [2026-07-22T14:10:22Z] Waiting for RayJob test-ns-6zcs6/long-running to be 'Complete' --- PASS: TestRayJob/RayJob_has_passed_ActiveDeadlineSeconds (7.07s) === RUN TestRayJob/RayJob_controller_recreates_the_head_Pod_if_it_is_deleted_while_the_job_is_running rayjob_test.go:292: [2026-07-22T14:10:29Z] Created RayJob test-ns-6zcs6/delete-head-after-submit successfully rayjob_test.go:295: [2026-07-22T14:10:29Z] Waiting for RayJob test-ns-6zcs6/delete-head-after-submit to be 'Running' rayjob_test.go:308: [2026-07-22T14:12:05Z] Deleting head Pod test-ns-6zcs6/delete-head-after-submit-xvnh6-head-9knw9 for RayCluster delete-head-after-submit-xvnh6 rayjob_test.go:337: [2026-07-22T14:13:02Z] Deleted RayJob test-ns-6zcs6/delete-head-after-submit successfully --- PASS: TestRayJob/RayJob_controller_recreates_the_head_Pod_if_it_is_deleted_while_the_job_is_running (153.04s) === RUN TestRayJob/RayJob_should_be_created,_but_not_updated_when_managed_externally rayjob_test.go:356: [2026-07-22T14:13:02Z] Created RayJob test-ns-6zcs6/managed-externally successfully rayjob_test.go:382: [2026-07-22T14:13:02Z] Deleted RayJob test-ns-6zcs6/managed-externally successfully --- PASS: TestRayJob/RayJob_should_be_created,_but_not_updated_when_managed_externally (0.05s) === RUN TestRayJob/RayJob_has_exceed_SubmitterFinishedTimeout rayjob_test.go:395: [2026-07-22T14:13:02Z] Created RayJob test-ns-6zcs6/submitter-timeout successfully rayjob_test.go:398: [2026-07-22T14:13:02Z] Waiting for RayJob test-ns-6zcs6/submitter-timeout deployment status to be 'Running' rayjob_test.go:401: [2026-07-22T14:15:00Z] Waiting for Ray job test-ns-6zcs6/submitter-timeout to be actually running in Ray cluster rayjob_test.go:406: [2026-07-22T14:15:12Z] Waiting for submitter job to be created rayjob_test.go:411: [2026-07-22T14:15:12Z] Updating submitter job status to complete rayjob_test.go:440: [2026-07-22T14:15:12Z] Successfully marked submitter job as completed at 2026-07-22 14:15:12.1506267 +0000 UTC m=+1767.465857030 rayjob_test.go:446: [2026-07-22T14:15:12Z] Waiting for RayJob test-ns-6zcs6/submitter-timeout to exceed SubmitterFinishedTimeout --- PASS: TestRayJob/RayJob_has_exceed_SubmitterFinishedTimeout (163.19s) === RUN TestRayJob/RayCluster_status_update_propagates_to_RayJob rayjob_test.go:476: [2026-07-22T14:15:45Z] Created RayJob test-ns-6zcs6/cluster-status-update successfully rayjob_test.go:504: [2026-07-22T14:17:41Z] Deleted RayJob test-ns-6zcs6/cluster-status-update successfully --- PASS: TestRayJob/RayCluster_status_update_propagates_to_RayJob (115.78s) === RUN TestRayJob/Successful_RayJob_in_K8s_Job_mode_with_auth_token rayjob_test.go:524: [2026-07-22T14:17:41Z] Created RayJob test-ns-6zcs6/counter-auth successfully with auth token rayjob_test.go:527: [2026-07-22T14:17:41Z] Waiting for RayCluster to be created rayjob_test.go:537: [2026-07-22T14:17:42Z] Waiting for RayCluster test-ns-6zcs6/counter-auth-zdmd7 to become ready rayjob_test.go:561: [2026-07-22T14:18:13Z] Waiting for submitter Job to be created rayjob_test.go:567: [2026-07-22T14:18:13Z] Waiting for submitter Job pod to be created rayjob_test.go:577: [2026-07-22T14:18:13Z] Waiting for RayJob test-ns-6zcs6/counter-auth to complete rayjob_test.go:589: [2026-07-22T14:18:33Z] RayJob test-ns-6zcs6/counter-auth completed successfully with auth token --- PASS: TestRayJob/Successful_RayJob_in_K8s_Job_mode_with_auth_token (52.38s) === RUN TestRayJob/RayJob_PreRunningDeadlineSeconds_expires_during_Initializing_state rayjob_test.go:608: [2026-07-22T14:18:33Z] Created RayJob test-ns-6zcs6/ttl-initializing successfully rayjob_test.go:615: [2026-07-22T14:18:34Z] Waiting for RayJob test-ns-6zcs6/ttl-initializing to be 'Failed' --- PASS: TestRayJob/RayJob_PreRunningDeadlineSeconds_expires_during_Initializing_state (6.07s) === RUN TestRayJob/RayJob_PreRunningDeadlineSeconds_expires_during_Waiting_state rayjob_test.go:652: [2026-07-22T14:19:14Z] Waiting for RayJob test-ns-6zcs6/ttl-waiting to be 'Failed' --- PASS: TestRayJob/RayJob_PreRunningDeadlineSeconds_expires_during_Waiting_state (36.26s) test.go:114: [2026-07-22T14:19:15Z] Retrieving Pod Container test-ns-6zcs6/counter-auth-k6r9w/ray-job-submitter logs test.go:102: [2026-07-22T14:19:15Z] Creating ephemeral output directory as KUBERAY_TEST_OUTPUT_DIR env variable is unset test.go:105: [2026-07-22T14:19:15Z] Output directory has been created at: /tmp/TestRayJob1425566113/001 test.go:114: [2026-07-22T14:19:15Z] Retrieving Pod Container test-ns-6zcs6/long-running-zt876-head-7fwkd/ray-head logs test.go:114: [2026-07-22T14:19:15Z] Retrieving Pod Container test-ns-6zcs6/long-running-zt876-head-7fwkd/kube-rbac-proxy logs test.go:114: [2026-07-22T14:19:15Z] Retrieving Pod Container test-ns-6zcs6/long-running-zt876-small-group-worker-h2m5w/ray-worker logs test.go:114: [2026-07-22T14:19:15Z] Retrieving Pod Container test-ns-6zcs6/submitter-timeout-9jnr9/ray-job-submitter logs test.go:114: [2026-07-22T14:19:15Z] Retrieving Pod Container test-ns-6zcs6/ttl-waiting-x7j7r-head-8l5zl/ray-head logs test.go:114: [2026-07-22T14:19:15Z] Retrieving Pod Container test-ns-6zcs6/ttl-waiting-x7j7r-head-8l5zl/kube-rbac-proxy logs test.go:114: [2026-07-22T14:19:15Z] Retrieving Pod Container test-ns-6zcs6/ttl-waiting-x7j7r-small-group-worker-l2c6g/ray-worker logs --- PASS: TestRayJob (1107.55s) PASS ok github.com/ray-project/kuberay/ray-operator/test/e2erayjob 2011.336s === RUN TestRayClusterAutoscaler === RUN TestRayClusterAutoscaler/Create_a_RayCluster_with_autoscaling_enabled raycluster_autoscaler_test.go:30: [2026-07-22T14:19:18Z] Created ConfigMap test-ns-chtfq/scripts successfully raycluster_autoscaler_test.go:50: [2026-07-22T14:19:18Z] Created RayCluster test-ns-chtfq/ray-cluster successfully raycluster_autoscaler_test.go:59: [2026-07-22T14:19:50Z] Found head pod test-ns-chtfq/ray-cluster-head-vz22x core.go:88: [2026-07-22T14:19:50Z] Executing command: [python /home/ray/test_scripts/create_detached_actor.py actor1] core.go:101: [2026-07-22T14:19:52Z] Command stdout: core.go:102: [2026-07-22T14:19:52Z] Command stderr: 2026-07-22 14:19:50,771 INFO worker.py:1672 -- Using address 127.0.0.1:6379 set in the environment variable RAY_ADDRESS 2026-07-22 14:19:50,773 INFO worker.py:1814 -- Connecting to existing Ray cluster at address: 10.133.0.48:6379... 2026-07-22 14:19:50,792 INFO worker.py:2003 -- Connected to Ray cluster. View the dashboard at http://10.133.0.48:8265  /opt/app-root/lib64/python3.12/site-packages/ray/_private/worker.py:2051: FutureWarning: Tip: In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None (default). To enable this behavior and turn off this error message, set RAY_ACCEL_ENV_VAR_OVERRIDE_ON_ZERO=0 warnings.warn( core.go:88: [2026-07-22T14:19:56Z] Executing command: [python /home/ray/test_scripts/create_detached_actor.py actor2] core.go:101: [2026-07-22T14:19:57Z] Command stdout: core.go:102: [2026-07-22T14:19:57Z] Command stderr: 2026-07-22 14:19:56,596 INFO worker.py:1672 -- Using address 127.0.0.1:6379 set in the environment variable RAY_ADDRESS 2026-07-22 14:19:56,598 INFO worker.py:1814 -- Connecting to existing Ray cluster at address: 10.133.0.48:6379... 2026-07-22 14:19:56,616 INFO worker.py:2003 -- Connected to Ray cluster. View the dashboard at http://10.133.0.48:8265  /opt/app-root/lib64/python3.12/site-packages/ray/_private/worker.py:2051: FutureWarning: Tip: In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None (default). To enable this behavior and turn off this error message, set RAY_ACCEL_ENV_VAR_OVERRIDE_ON_ZERO=0 warnings.warn( core.go:88: [2026-07-22T14:20:01Z] Executing command: [python /home/ray/test_scripts/terminate_detached_actor.py actor1] core.go:101: [2026-07-22T14:20:03Z] Command stdout: core.go:102: [2026-07-22T14:20:03Z] Command stderr: 2026-07-22 14:20:02,375 INFO worker.py:1672 -- Using address 127.0.0.1:6379 set in the environment variable RAY_ADDRESS 2026-07-22 14:20:02,379 INFO worker.py:1814 -- Connecting to existing Ray cluster at address: 10.133.0.48:6379... 2026-07-22 14:20:02,398 INFO worker.py:2003 -- Connected to Ray cluster. View the dashboard at http://10.133.0.48:8265  /opt/app-root/lib64/python3.12/site-packages/ray/_private/worker.py:2051: FutureWarning: Tip: In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None (default). To enable this behavior and turn off this error message, set RAY_ACCEL_ENV_VAR_OVERRIDE_ON_ZERO=0 warnings.warn( core.go:88: [2026-07-22T14:22:54Z] Executing command: [python /home/ray/test_scripts/terminate_detached_actor.py actor2] core.go:101: [2026-07-22T14:22:55Z] Command stdout: core.go:102: [2026-07-22T14:22:55Z] Command stderr: 2026-07-22 14:22:54,808 INFO worker.py:1672 -- Using address 127.0.0.1:6379 set in the environment variable RAY_ADDRESS 2026-07-22 14:22:54,813 INFO worker.py:1814 -- Connecting to existing Ray cluster at address: 10.133.0.48:6379... 2026-07-22 14:22:54,831 INFO worker.py:2003 -- Connected to Ray cluster. View the dashboard at http://10.133.0.48:8265  /opt/app-root/lib64/python3.12/site-packages/ray/_private/worker.py:2051: FutureWarning: Tip: In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None (default). To enable this behavior and turn off this error message, set RAY_ACCEL_ENV_VAR_OVERRIDE_ON_ZERO=0 warnings.warn( test.go:114: [2026-07-22T14:24:05Z] Retrieving Pod Container test-ns-chtfq/ray-cluster-head-vz22x/ray-head logs test.go:102: [2026-07-22T14:24:05Z] Creating ephemeral output directory as KUBERAY_TEST_OUTPUT_DIR env variable is unset test.go:105: [2026-07-22T14:24:05Z] Output directory has been created at: /tmp/TestRayClusterAutoscalerCreate_a_RayCluster_with_autoscaling_en2450341987/001 test.go:114: [2026-07-22T14:24:05Z] Retrieving Pod Container test-ns-chtfq/ray-cluster-head-vz22x/autoscaler logs test.go:114: [2026-07-22T14:24:05Z] Retrieving Pod Container test-ns-chtfq/ray-cluster-head-vz22x/kube-rbac-proxy logs test.go:114: [2026-07-22T14:24:05Z] Retrieving Pod Container test-ns-chtfq/ray-cluster-small-group-worker-t85mm/ray-worker logs --- PASS: TestRayClusterAutoscaler/Create_a_RayCluster_with_autoscaling_enabled (287.27s) === RUN TestRayClusterAutoscaler/Create_a_RayCluster_with_autoscaler_v2_enabled raycluster_autoscaler_test.go:30: [2026-07-22T14:24:05Z] Created ConfigMap test-ns-kln7s/scripts successfully raycluster_autoscaler_test.go:50: [2026-07-22T14:24:05Z] Created RayCluster test-ns-kln7s/ray-cluster successfully raycluster_autoscaler_test.go:59: [2026-07-22T14:25:40Z] Found head pod test-ns-kln7s/ray-cluster-head-p2ghd core.go:88: [2026-07-22T14:25:40Z] Executing command: [python /home/ray/test_scripts/create_detached_actor.py actor1] core.go:101: [2026-07-22T14:25:42Z] Command stdout: core.go:102: [2026-07-22T14:25:42Z] Command stderr: 2026-07-22 14:25:41,377 INFO worker.py:1672 -- Using address 127.0.0.1:6379 set in the environment variable RAY_ADDRESS 2026-07-22 14:25:41,379 INFO worker.py:1814 -- Connecting to existing Ray cluster at address: 10.132.0.52:6379... 2026-07-22 14:25:41,398 INFO worker.py:2003 -- Connected to Ray cluster. View the dashboard at http://10.132.0.52:8265  /opt/app-root/lib64/python3.12/site-packages/ray/_private/worker.py:2051: FutureWarning: Tip: In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None (default). To enable this behavior and turn off this error message, set RAY_ACCEL_ENV_VAR_OVERRIDE_ON_ZERO=0 warnings.warn( core.go:88: [2026-07-22T14:25:47Z] Executing command: [python /home/ray/test_scripts/create_detached_actor.py actor2] core.go:101: [2026-07-22T14:25:49Z] Command stdout: core.go:102: [2026-07-22T14:25:49Z] Command stderr: 2026-07-22 14:25:48,238 INFO worker.py:1672 -- Using address 127.0.0.1:6379 set in the environment variable RAY_ADDRESS 2026-07-22 14:25:48,241 INFO worker.py:1814 -- Connecting to existing Ray cluster at address: 10.132.0.52:6379... 2026-07-22 14:25:48,259 INFO worker.py:2003 -- Connected to Ray cluster. View the dashboard at http://10.132.0.52:8265  /opt/app-root/lib64/python3.12/site-packages/ray/_private/worker.py:2051: FutureWarning: Tip: In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None (default). To enable this behavior and turn off this error message, set RAY_ACCEL_ENV_VAR_OVERRIDE_ON_ZERO=0 warnings.warn( core.go:88: [2026-07-22T14:25:52Z] Executing command: [python /home/ray/test_scripts/terminate_detached_actor.py actor1] core.go:101: [2026-07-22T14:25:54Z] Command stdout: core.go:102: [2026-07-22T14:25:54Z] Command stderr: 2026-07-22 14:25:53,025 INFO worker.py:1672 -- Using address 127.0.0.1:6379 set in the environment variable RAY_ADDRESS 2026-07-22 14:25:53,029 INFO worker.py:1814 -- Connecting to existing Ray cluster at address: 10.132.0.52:6379... 2026-07-22 14:25:53,048 INFO worker.py:2003 -- Connected to Ray cluster. View the dashboard at http://10.132.0.52:8265  /opt/app-root/lib64/python3.12/site-packages/ray/_private/worker.py:2051: FutureWarning: Tip: In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None (default). To enable this behavior and turn off this error message, set RAY_ACCEL_ENV_VAR_OVERRIDE_ON_ZERO=0 warnings.warn( core.go:88: [2026-07-22T14:28:34Z] Executing command: [python /home/ray/test_scripts/terminate_detached_actor.py actor2] core.go:101: [2026-07-22T14:28:36Z] Command stdout: core.go:102: [2026-07-22T14:28:36Z] Command stderr: 2026-07-22 14:28:35,370 INFO worker.py:1672 -- Using address 127.0.0.1:6379 set in the environment variable RAY_ADDRESS 2026-07-22 14:28:35,374 INFO worker.py:1814 -- Connecting to existing Ray cluster at address: 10.132.0.52:6379... 2026-07-22 14:28:35,397 INFO worker.py:2003 -- Connected to Ray cluster. View the dashboard at http://10.132.0.52:8265  /opt/app-root/lib64/python3.12/site-packages/ray/_private/worker.py:2051: FutureWarning: Tip: In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None (default). To enable this behavior and turn off this error message, set RAY_ACCEL_ENV_VAR_OVERRIDE_ON_ZERO=0 warnings.warn( test.go:114: [2026-07-22T14:29:45Z] Retrieving Pod Container test-ns-kln7s/ray-cluster-head-p2ghd/ray-head logs test.go:102: [2026-07-22T14:29:45Z] Creating ephemeral output directory as KUBERAY_TEST_OUTPUT_DIR env variable is unset test.go:105: [2026-07-22T14:29:45Z] Output directory has been created at: /tmp/TestRayClusterAutoscalerCreate_a_RayCluster_with_autoscaler_v2_3229205369/001 test.go:114: [2026-07-22T14:29:45Z] Retrieving Pod Container test-ns-kln7s/ray-cluster-head-p2ghd/autoscaler logs test.go:114: [2026-07-22T14:29:45Z] Retrieving Pod Container test-ns-kln7s/ray-cluster-head-p2ghd/kube-rbac-proxy logs test.go:114: [2026-07-22T14:29:45Z] Retrieving Pod Container test-ns-kln7s/ray-cluster-small-group-worker-s94tg/ray-worker logs --- PASS: TestRayClusterAutoscaler/Create_a_RayCluster_with_autoscaler_v2_enabled (340.54s) --- PASS: TestRayClusterAutoscaler (627.81s) PASS ok github.com/ray-project/kuberay/ray-operator/test/e2eautoscaler 627.829s === RUN TestRayClusterAuthOptions === RUN TestRayClusterAuthOptions/RayCluster_with_token_authentication_enabled === PAUSE TestRayClusterAuthOptions/RayCluster_with_token_authentication_enabled === CONT TestRayClusterAuthOptions/RayCluster_with_token_authentication_enabled raycluster_auth_test.go:38: [2026-07-22T14:29:47Z] Created RayCluster test-ns-9rn69/raycluster-auth-token successfully with AuthModeToken raycluster_auth_test.go:40: [2026-07-22T14:29:47Z] Waiting for RayCluster test-ns-9rn69/raycluster-auth-token to become ready === RUN TestRayClusterAuthOptions/Submit_job_with_auth_token_should_succeed raycluster_auth_test.go:65: [2026-07-22T14:31:39Z] Testing job submission WITH auth token core.go:88: [2026-07-22T14:31:39Z] Executing command: [bash -c RAY_AUTH_TOKEN=rdtcog6OAkZ6bgHPXHSgMf4SSc3dBz/Cve/2xCdmQv4= ray job submit --address http://127.0.0.1:8265 --submission-id test-job-with-auth-1784730699 --no-wait -- python -c 'import ray; ray.init(); print("Job with auth succeeded")'] core.go:101: [2026-07-22T14:31:42Z] Command stdout: 2026-07-22 14:31:41,173 INFO cli.py:41 -- Job submission server address: http://10.133.0.51:8265 2026-07-22 14:31:41,986 SUCC cli.py:65 -- ---------------------------------------------------------- 2026-07-22 14:31:41,987 SUCC cli.py:66 -- Job 'test-job-with-auth-1784730699' submitted successfully 2026-07-22 14:31:41,987 SUCC cli.py:67 -- ---------------------------------------------------------- 2026-07-22 14:31:41,987 INFO cli.py:326 -- Next steps 2026-07-22 14:31:41,987 INFO cli.py:327 -- Query the logs of the job: 2026-07-22 14:31:41,987 INFO cli.py:329 -- ray job logs test-job-with-auth-1784730699 2026-07-22 14:31:41,987 INFO cli.py:331 -- Query the status of the job: 2026-07-22 14:31:41,987 INFO cli.py:333 -- ray job status test-job-with-auth-1784730699 2026-07-22 14:31:41,987 INFO cli.py:335 -- Request the job to be stopped: 2026-07-22 14:31:41,987 INFO cli.py:337 -- ray job stop test-job-with-auth-1784730699 core.go:102: [2026-07-22T14:31:42Z] Command stderr: core.go:88: [2026-07-22T14:31:42Z] Executing command: [bash -c RAY_AUTH_TOKEN=rdtcog6OAkZ6bgHPXHSgMf4SSc3dBz/Cve/2xCdmQv4= ray job status --address http://127.0.0.1:8265 test-job-with-auth-1784730699] core.go:101: [2026-07-22T14:31:44Z] Command stdout: 2026-07-22 14:31:44,246 INFO cli.py:41 -- Job submission server address: http://10.133.0.51:8265 2026-07-22 14:31:44,250 INFO cli.py:91 -- Status for job 'test-job-with-auth-1784730699': RUNNING 2026-07-22 14:31:44,250 INFO cli.py:93 -- Status message: Job is currently running. core.go:102: [2026-07-22T14:31:44Z] Command stderr: core.go:88: [2026-07-22T14:31:45Z] Executing command: [bash -c RAY_AUTH_TOKEN=rdtcog6OAkZ6bgHPXHSgMf4SSc3dBz/Cve/2xCdmQv4= ray job status --address http://127.0.0.1:8265 test-job-with-auth-1784730699] core.go:101: [2026-07-22T14:31:47Z] Command stdout: 2026-07-22 14:31:47,267 INFO cli.py:41 -- Job submission server address: http://10.133.0.51:8265 2026-07-22 14:31:47,271 SUCC cli.py:65 -- --------------------------------------------- 2026-07-22 14:31:47,271 SUCC cli.py:66 -- Job 'test-job-with-auth-1784730699' succeeded 2026-07-22 14:31:47,271 SUCC cli.py:67 -- --------------------------------------------- core.go:102: [2026-07-22T14:31:47Z] Command stderr: raycluster_auth_test.go:92: [2026-07-22T14:31:47Z] Successfully submitted and verified job with auth token --- PASS: TestRayClusterAuthOptions/Submit_job_with_auth_token_should_succeed (8.11s) === RUN TestRayClusterAuthOptions/Submit_job_with_incorrect_auth_token_should_fail raycluster_auth_test.go:96: [2026-07-22T14:31:47Z] Testing job submission WITH incorrect auth token (should fail) core.go:88: [2026-07-22T14:31:47Z] Executing command: [bash -c RAY_AUTH_TOKEN=incorrect-token-12345 ray job submit --address http://127.0.0.1:8265 --submission-id test-job-bad-auth-1784730707 --no-wait -- python -c 'print("Should not run")'] core.go:101: [2026-07-22T14:31:49Z] Command stdout: core.go:102: [2026-07-22T14:31:49Z] Command stderr: [2026-07-22 14:31:49,246 W 1178 1178] gcs_client.cc:205: Failed to get cluster ID from GCS server: Unauthenticated: RPC error: InvalidAuthToken: Authentication token is missing or incorrect Traceback (most recent call last): File "/opt/app-root/bin/ray", line 8, in sys.exit(main()) ^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/ray/scripts/scripts.py", line 2892, in main return cli() ^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/click/core.py", line 1514, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/click/core.py", line 1435, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/click/core.py", line 1902, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/click/core.py", line 1902, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/click/core.py", line 1298, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/click/core.py", line 853, in invoke return callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/ray/dashboard/modules/job/cli_utils.py", line 54, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/ray/autoscaler/_private/cli_logger.py", line 823, in wrapper return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/ray/dashboard/modules/job/cli.py", line 303, in submit client = _get_sdk_client( ^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/ray/dashboard/modules/job/cli.py", line 34, in _get_sdk_client client = JobSubmissionClient( ^^^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/ray/dashboard/modules/job/sdk.py", line 101, in __init__ api_server_url = get_address_for_submission_client(address) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/ray/dashboard/utils.py", line 733, in get_address_for_submission_client address = ray_address_to_api_server_url(address) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/app-root/lib64/python3.12/site-packages/ray/dashboard/utils.py", line 676, in ray_address_to_api_server_url gcs_client = GcsClient(address=address) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "python/ray/_raylet.pyx", line 2770, in ray._raylet.GcsClient.__cinit__ File "python/ray/includes/gcs_client.pxi", line 73, in ray._raylet.InnerGcsClient.standalone File "python/ray/includes/common.pxi", line 143, in ray._raylet.check_status_timeout_as_rpc_error File "python/ray/includes/common.pxi", line 116, in ray._raylet.check_status ray.exceptions.AuthenticationError: RPC error: InvalidAuthToken: Authentication token is missing or incorrect. Ensure that the token for the cluster is available in a local file (e.g., ~/.ray/auth_token or via RAY_AUTH_TOKEN_PATH) or as the `RAY_AUTH_TOKEN` environment variable. To generate a token for local development, use `ray get-auth-token --generate` For remote clusters, ensure that the token is propagated to all nodes of the cluster when token authentication is enabled. For more information, see: https://docs.ray.io/en/latest/ray-security/token-auth.html raycluster_auth_test.go:113: [2026-07-22T14:31:49Z] Job submission correctly rejected with incorrect auth token --- PASS: TestRayClusterAuthOptions/Submit_job_with_incorrect_auth_token_should_fail (1.97s) --- PASS: TestRayClusterAuthOptions/RayCluster_with_token_authentication_enabled (121.77s) test.go:114: [2026-07-22T14:31:49Z] Retrieving Pod Container test-ns-9rn69/raycluster-auth-token-head-gtx4z/ray-head logs test.go:102: [2026-07-22T14:31:49Z] Creating ephemeral output directory as KUBERAY_TEST_OUTPUT_DIR env variable is unset test.go:105: [2026-07-22T14:31:49Z] Output directory has been created at: /tmp/TestRayClusterAuthOptions562544703/001 test.go:114: [2026-07-22T14:31:49Z] Retrieving Pod Container test-ns-9rn69/raycluster-auth-token-head-gtx4z/kube-rbac-proxy logs test.go:114: [2026-07-22T14:31:49Z] Retrieving Pod Container test-ns-9rn69/raycluster-auth-token-small-group-worker-6q79j/ray-worker logs --- PASS: TestRayClusterAuthOptions (0.10s) PASS ok github.com/ray-project/kuberay/ray-operator/test/e2e 121.884s DONE 35 tests in 2764.909s