forked from ray-project/kuberay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ray-project#49 from red-hat-data-services/Mohammad…
…iIram-patch-5 Update renovate.json to poin to main
- Loading branch information
Showing
428 changed files
with
34,768 additions
and
11,176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: e2e test reusable workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
plugin-test: | ||
required: true | ||
type: boolean | ||
dir-to-test: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: v1.22 | ||
|
||
- name: Set up gotestfmt | ||
uses: gotesttools/gotestfmt-action@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup and start KinD cluster | ||
uses: ./.github/workflows/actions/kind | ||
|
||
- name: Build CLI and Add to PATH | ||
if: inputs.plugin-test | ||
run: | | ||
cd ./kubectl-plugin | ||
go mod download | ||
go build -o kubectl-ray -a ./cmd/kubectl-ray.go | ||
cp ./kubectl-ray /usr/local/bin | ||
- name: Deploy Kuberay operator | ||
id: deploy | ||
run: | | ||
echo Deploying Kuberay operator | ||
cd ray-operator | ||
IMG="${REGISTRY_ADDRESS}"/kuberay | ||
make docker-build -e IMG="${IMG}" -e ENGINE=podman | ||
make docker-push -e IMG="${IMG}" -e ENGINE=podman | ||
make deploy -e IMG="${IMG}" | ||
kubectl wait --timeout=90s --for=condition=Available=true deployment -n ray-system kuberay-operator | ||
- name: Deploy Kuberay Cluster | ||
if: inputs.plugin-test | ||
run: | | ||
echo Deploying Kuberay cluster | ||
kubectl apply -f ./ray-operator/config/samples/ray-cluster.sample.yaml | ||
kubectl wait --timeout=300s --for=condition=ready pod -l ray.io/cluster=raycluster-sample | ||
- name: Run e2e tests | ||
run: | | ||
export KUBERAY_TEST_TIMEOUT_SHORT=1m | ||
export KUBERAY_TEST_TIMEOUT_MEDIUM=5m | ||
export KUBERAY_TEST_TIMEOUT_LONG=10m | ||
export KUBERAY_TEST_OUTPUT_DIR=${{ env.TEMP_DIR }} | ||
echo "KUBERAY_TEST_OUTPUT_DIR=${KUBERAY_TEST_OUTPUT_DIR}" >> $GITHUB_ENV | ||
set -euo pipefail | ||
cd ${{ inputs.dir-to-test }} | ||
go test -timeout 30m -v ./test/e2e -json 2>&1 | tee ${KUBERAY_TEST_OUTPUT_DIR}/gotest.log | gotestfmt | ||
- name: Print KubeRay operator logs | ||
if: (!inputs.plugin-test) && always() && steps.deploy.outcome == 'success' | ||
run: | | ||
echo "Printing KubeRay operator logs" | ||
kubectl logs -n ray-system --tail -1 -l app.kubernetes.io/name=kuberay | tee ${KUBERAY_TEST_OUTPUT_DIR}/kuberay-operator.log | ||
- name: Upload logs | ||
uses: actions/upload-artifact@v4 | ||
if: (!inputs.plugin-test) && always() && steps.deploy.outcome == 'success' | ||
with: | ||
name: logs | ||
retention-days: 10 | ||
path: | | ||
${{ env.KUBERAY_TEST_OUTPUT_DIR }}/**/*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.