Skip to content

Commit

Permalink
Update ray-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xsuler committed Feb 19, 2025
1 parent 8fa894e commit b72e513
Show file tree
Hide file tree
Showing 7 changed files with 515 additions and 109 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ray-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ jobs:
core-tests:
name: Core Tests
env:
RESULT_DIR: ${{ github.workspace }}/../tmp/${{ github.sha }}
BAZEL_DIR: ${{ github.workspace }}/../tmp/bazel/${{ github.sha }}
RAYCI_BUILD_ID: main
RAY_DIR: ${{ github.workspace }}
COMMIT_HASH: ${{ github.sha }}
needs: build-base-images
runs-on: self-hosted
strategy:
Expand Down Expand Up @@ -137,21 +137,27 @@ jobs:
echo "Running core: python tests..."
bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests:test_actor_cancel core \
--workers 1 --worker-id 0 --parallelism-per-worker 3 \
--except-tags debug_tests,asan_tests,post_wheel_build,ha_integration,mem_pressure,tmpfs,container,manual,use_all_core,multi_gpu
--except-tags debug_tests,asan_tests,post_wheel_build,ha_integration,mem_pressure,tmpfs,container,manual,use_all_core,multi_gpu --skip-ray-installation \
--test-env=BAZEL_DIR=$(realpath ${{ env.BAZEL_DIR }})
- name: Workaround
if: always()
run: |
echo "artifacts_path=$(realpath ${{ env.RESULT_DIR }})" >> $GITHUB_ENV
echo "artifacts_path=$(realpath ${{ env.BAZEL_DIR }})" >> $GITHUB_ENV
- name: Upload Test Results
- name: Generate Report
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: ${{ env.artifacts_path }}/*
run: |
python ci/ray_ci/report_gen.py
- name: Cleanup Containers
if: always()
run: |
docker ps -a --filter ancestor=localhost:5000/citemp:${{ env.RAYCI_BUILD_ID }}-corebuild -q | xargs -r docker rm --force
- name: HTML Preview
id: html_preview
uses: pavi2410/html-preview-action@v2
with:
html_file: ${{ env.BAZEL_DIR }}/reports/index.html

4 changes: 4 additions & 0 deletions ci/ray_ci/linux_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def get_run_command_extra_args(
extra_args += ["--cap-add", cap]
if gpu_ids:
extra_args += ["--gpus", f'"device={",".join(map(str, gpu_ids))}"']
extra_args += [
"--mount",
f"type=bind,source={os.environ.get('RAY_DIR')}/ci/run,destination=/rayci/ci/run",
]
extra_args += [
"--workdir",
"/rayci",
Expand Down
Loading

0 comments on commit b72e513

Please sign in to comment.