Skip to content

Conversation

@KunWuLuan
Copy link
Contributor

@KunWuLuan KunWuLuan commented Jan 6, 2026

… tests

This commit introduces a new environment variable KuberayTestArch that allows overriding the detected architecture in test environments. Previously, the system only relied on runtime.GOARCH to determine if ARM64 architecture was being used, but this change enables explicit architecture specification through the environment variable. This is particularly useful for testing scenarios where you want to force a specific architecture regardless of the actual runtime environment, improving test flexibility and consistency across different platforms.

Why are these changes needed?

Related issue number

to #4346

Checks

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

… tests

This commit introduces a new environment variable KuberayTestArch that allows
overriding the detected architecture in test environments. Previously, the
system only relied on runtime.GOARCH to determine if ARM64 architecture was
being used, but this change enables explicit architecture specification
through the environment variable. This is particularly useful for testing
scenarios where you want to force a specific architecture regardless of the
actual runtime environment, improving test flexibility and consistency
across different platforms.

Signed-off-by: KunWuLuan <[email protected]>
Copy link
Collaborator

@machichima machichima left a comment

Choose a reason for hiding this comment

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

LGTM!

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