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

[CI] Refactor pipeline and test RayCluster sample yamls #1321

Merged

Conversation

architkulkarni
Copy link
Contributor

@architkulkarni architkulkarni commented Aug 11, 2023

Why are these changes needed?

Moves the sample YAML tests from github actions to Buildkite.

This PR now tests 10 sample YAML files, instead of only three as before. We omit the TPU sample YAML because we don't have TPUs on buildkite.

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: Archit Kulkarni <[email protected]>
Signed-off-by: Archit Kulkarni <[email protected]>
Signed-off-by: Archit Kulkarni <[email protected]>
Signed-off-by: Archit Kulkarni <[email protected]>
@architkulkarni architkulkarni marked this pull request as ready for review August 11, 2023 23:00
# Install requirements
pip install -r tests/framework/config/requirements.txt

# Bypass Git's ownership check due to unconventional user IDs in Docker containers
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the only new part of the env setup that was needed for the RayCluster test to work. It's required because the RayCluster test uses some git commands, but the owner of workdir was "2000" which git deems suspicious and throws an error:

stderr: 'fatal: detected dubious ownership in repository at '/workdir'

I assume this is somehow related to docker and that it's safe to ignore this.

install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

# Create the cluster
time kind create cluster --wait 120s --config tests/framework/config/kind-config-buildkite.yml
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to create a Kind cluster (L24 - L56) here without running any tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't need it anymore, this is just from the initial test. I have a followup PR which will remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just removed it in this PR.


# Install python 3.10 and pip
apt-get update
apt-get install -y python3.10 python3-pip
Copy link
Member

Choose a reason for hiding this comment

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

We may update this based on #1325.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good eye! If your PR gets merged first I'll fix the merge conflict in this PR

Copy link
Member

Choose a reason for hiding this comment

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

#1325 has already been merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

O you're right

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

.buildkite/test-sample-yamls.yml Outdated Show resolved Hide resolved
.buildkite/test-sample-yamls.yml Outdated Show resolved Hide resolved
.buildkite/test-sample-yamls.yml Outdated Show resolved Hide resolved
.buildkite/test-sample-yamls.yml Outdated Show resolved Hide resolved
Signed-off-by: Archit Kulkarni <[email protected]>
…move-raycluster-sample-yaml-test

Signed-off-by: Archit Kulkarni <[email protected]>
Signed-off-by: Archit Kulkarni <[email protected]>
@architkulkarni
Copy link
Contributor Author

@kevin85421 all comments are addressed and I expect tests to pass, can you take another look?

Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

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

Great! This is super helpful!

@kevin85421 kevin85421 merged commit 2c5a6d0 into ray-project:master Aug 16, 2023
17 checks passed
blublinsky pushed a commit to blublinsky/kuberay that referenced this pull request Aug 22, 2023
lowang-bh pushed a commit to lowang-bh/kuberay that referenced this pull request Sep 24, 2023
…1321)

Refactor pipeline and test RayCluster sample yamls
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