Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GCS FT] Add e2e tests for configuring GCS FT with annotations #2766

Merged
merged 4 commits into from
Jan 18, 2025

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented Jan 17, 2025

Why are these changes needed?

Old GCS FT API uses annotations to configure GCS FT behavior. This PR adds e2e tests for it.

Related issue number

Checks

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

Signed-off-by: kaihsun <[email protected]>
Signed-off-by: kaihsun <[email protected]>
@kevin85421
Copy link
Member Author

cc @rueian

Comment on lines 176 to 188
podTemplateAC := podTemplateSpecApplyConfiguration(headPodTemplateApplyConfiguration(),
injectRayContainerEnv(
func() []corev1ac.EnvVarApplyConfiguration {
envs := []corev1ac.EnvVarApplyConfiguration{
*corev1ac.EnvVar().WithName("RAY_REDIS_ADDRESS").WithValue("redis:6379"),
}
if tc.redisPasswordEnv != "" {
envs = append(envs, *corev1ac.EnvVar().WithName("REDIS_PASSWORD").WithValue(tc.redisPasswordEnv))
}
return envs
}(),
),
)
Copy link
Member

Choose a reason for hiding this comment

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

Why not simply headPodTemplateApplyConfiguration().Spec.Containers[0].WithEnv(...)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I at first think this may make code simpler, but it seems not. I removed the helper function to inject env and rayStartParams.

Signed-off-by: kaihsun <[email protected]>
Signed-off-by: kaihsun <[email protected]>
@kevin85421 kevin85421 marked this pull request as ready for review January 17, 2025 18:30
@kevin85421 kevin85421 merged commit 4bbaa06 into ray-project:master Jan 18, 2025
24 checks passed
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.

3 participants