Skip to content

Conversation

@ryankert01
Copy link

@ryankert01 ryankert01 commented Nov 23, 2025

Why are these changes needed?

  • Creates a RayService with AuthModeToken enabled
  • Waits for the RayService and its managed RayCluster to become ready
  • Verifies RAY_AUTH_MODE and RAY_AUTH_TOKEN environment variables are correctly set in head pod
  • Confirms the token is sourced from a Secret via SecretKeyRef with the correct key

Key implementation details:

  • Reuses RayServiceSampleYamlApplyConfiguration() and adds auth options and a worker group programmatically (no separate YAML file needed)
  • Uses the existing VerifyContainerAuthTokenEnvVars() helper from test/support/ray.go

Related issue number

Related to #4203

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@400Ping
Copy link
Contributor

400Ping commented Nov 23, 2025

e2e test ci failed, plz fix it.

@ryankert01
Copy link
Author

ryankert01 commented Nov 24, 2025

Please don't review for now. It's still wip. Will be investigate it further.

@ryankert01 ryankert01 marked this pull request as ready for review November 29, 2025 05:40
@ryankert01 ryankert01 marked this pull request as draft November 29, 2025 05:40
@ryankert01 ryankert01 closed this Nov 29, 2025
@ryankert01 ryankert01 force-pushed the e2e/ray-service-runtime-env-update branch from 5c05505 to b4cd1e2 Compare November 29, 2025 07:12
@ryankert01 ryankert01 reopened this Nov 29, 2025
@ryankert01 ryankert01 force-pushed the e2e/ray-service-runtime-env-update branch 2 times, most recently from 95d58a8 to 3145953 Compare November 29, 2025 09:50
Signed-off-by: Ryan <[email protected]>
@ryankert01 ryankert01 marked this pull request as ready for review November 29, 2025 09:53
@ryankert01 ryankert01 changed the title [WIP] [e2e] add ray service runtime env update e2e test [e2e] add ray service runtime env update e2e test Nov 29, 2025
Removed worker group spec and related verification for auth token propagation in RayService tests.

Signed-off-by: Ryan Huang <[email protected]>
@ryankert01
Copy link
Author

@400Ping PTAL

Copy link
Contributor

@400Ping 400Ping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Over LGTM

Comment on lines +62 to +65
// Clean up the RayService
err = test.Client().Ray().RayV1().RayServices(namespace.Name).Delete(test.Ctx(), rayService.Name, metav1.DeleteOptions{})
g.Expect(err).NotTo(HaveOccurred())
LogWithTimestamp(test.T(), "Deleted RayService %s/%s successfully", rayService.Namespace, rayService.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using defer for the RayService cleanup so we still delete it when an earlier expectation fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants