Skip to content

Commit

Permalink
[CI] Remove test_security.py and all python test dependencies in CI (#…
Browse files Browse the repository at this point in the history
…3123)

* [Chore] Remove test_security.py and all python test dependencies in CI

Closes: #3122
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>

* Move markdownlint config to top level folder

Closes: #3122
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>

---------

Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
  • Loading branch information
MortalHappiness authored Feb 27, 2025
1 parent b0acc85 commit 2e23506
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 1,275 deletions.
15 changes: 0 additions & 15 deletions .buildkite/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,5 @@ mv linux-amd64/helm /usr/local/bin/helm
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
helm repo update

# Install python 3.11 and pip
apt-get update
apt-get install -y python3.11 python3.11-venv
python3 -m venv .venv

# Activate the virtual environment and then execute the subsequent commands
# within the same sub-shell.
(
# shellcheck disable=SC1091 # Ignore: activate script is created by venv
source .venv/bin/activate

# Install requirements
pip install -r tests/framework/config/requirements.txt
)

# Bypass Git's ownership check due to unconventional user IDs in Docker containers
git config --global --add safe.directory /workdir
8 changes: 4 additions & 4 deletions .buildkite/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
image: golang:1.22
commands:
- source .buildkite/setup-env.sh
- kind create cluster --wait 900s --config ./tests/framework/config/kind-config-buildkite.yml
- kind create cluster --wait 900s --config ./ci/kind-config-buildkite.yml
- kubectl config set clusters.kind-kind.server https://docker:6443
# Build nightly KubeRay operator image
- pushd ray-operator
Expand All @@ -22,7 +22,7 @@
image: golang:1.22
commands:
- source .buildkite/setup-env.sh
- kind create cluster --wait 900s --config ./tests/framework/config/kind-config-buildkite.yml
- kind create cluster --wait 900s --config ./ci/kind-config-buildkite.yml
- kubectl config set clusters.kind-kind.server https://docker:6443
# Build nightly KubeRay operator image
- pushd ray-operator
Expand All @@ -41,7 +41,7 @@
image: golang:1.22
commands:
- source .buildkite/setup-env.sh
- kind create cluster --wait 900s --config ./tests/framework/config/kind-config-buildkite.yml
- kind create cluster --wait 900s --config ./ci/kind-config-buildkite.yml
- kubectl config set clusters.kind-kind.server https://docker:6443
# Build nightly KubeRay operator image
- pushd ray-operator
Expand All @@ -60,7 +60,7 @@
image: golang:1.22
commands:
- source .buildkite/setup-env.sh
- kind create cluster --wait 900s --config ./tests/framework/config/kind-config-buildkite.yml
- kind create cluster --wait 900s --config ./ci/kind-config-buildkite.yml
- kubectl config set clusters.kind-kind.server https://docker:6443
# Deploy previous KubeRay operator release (v1.2.2) using helm
- echo Deploying KubeRay operator
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/test-kubectl-plugin-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
image: golang:1.22
commands:
- source .buildkite/setup-env.sh
- kind create cluster --wait 900s --config ./tests/framework/config/kind-config-buildkite.yml
- kind create cluster --wait 900s --config ./ci/kind-config-buildkite.yml
- kubectl config set clusters.kind-kind.server https://docker:6443
# Deploy nightly KubeRay operator
- echo Deploying Kuberay operator
Expand Down
4 changes: 2 additions & 2 deletions .buildkite/test-sample-yamls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
image: golang:1.22
commands:
- source .buildkite/setup-env.sh
- kind create cluster --wait 900s --config ./tests/framework/config/kind-config-buildkite.yml
- kind create cluster --wait 900s --config ./ci/kind-config-buildkite.yml
- kubectl config set clusters.kind-kind.server https://docker:6443
# Build nightly KubeRay operator image
- pushd ray-operator
Expand All @@ -24,7 +24,7 @@
image: golang:1.22
commands:
- source .buildkite/setup-env.sh
- kind create cluster --wait 900s --config ./tests/framework/config/kind-config-buildkite.yml
- kind create cluster --wait 900s --config ./ci/kind-config-buildkite.yml
- kubectl config set clusters.kind-kind.server https://docker:6443
# Deploy KubeRay operator
- pushd ray-operator
Expand Down
2 changes: 0 additions & 2 deletions ci/markdownlint.yaml → .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
# Default state for all rules
default: true

MD013: false
Expand Down
6 changes: 1 addition & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,5 @@ repos:
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.44.0
hooks:
- id: markdownlint
- id: markdownlint-fix
name: Markdown linting
args:
- --config
- ci/markdownlint.yaml
- --fix
File renamed without changes.
4 changes: 0 additions & 4 deletions tests/framework/config/kind-config.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions tests/framework/config/requirements.txt

This file was deleted.

Loading

0 comments on commit 2e23506

Please sign in to comment.