Skip to content

Commit

Permalink
Replace schedule with release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sergcpp committed Oct 18, 2024
1 parent 9fa1997 commit cec039d
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/actions/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ runs:
cd Ray
git remote set-url origin $REPO_URL
git fetch --all
git checkout -f $GITHUB_REF_NAME
git reset --hard origin/$GITHUB_REF_NAME
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
GITHUB_SHA=${{ github.event.pull_request.head.sha }}
fi
git checkout -f $GITHUB_SHA
#git reset --hard origin/$GITHUB_REF_NAME
git clean -fdx
git fetch --tags
else
Expand Down
5 changes: 4 additions & 1 deletion .github/actions/test-sde/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: 'Test'
inputs:
bin-dir:
required: true
out-dir:
required: true
test-args:
required: true
sde-args:
Expand All @@ -15,6 +17,7 @@ runs:
path: ${{ inputs.bin-dir }}/
- run: |
WORK_DIR=`pwd`
mkdir $WORK_DIR/${{ inputs.out-dir }}
cd ../../builds/Ray/tests
sde ${{ inputs.sde-args }} -- $WORK_DIR/${{ inputs.bin-dir }}/test_Ray ${{ inputs.test-args }}
sde ${{ inputs.sde-args }} -- $WORK_DIR/${{ inputs.bin-dir }}/test_Ray ${{ inputs.test-args }} | tee $WORK_DIR/${{ inputs.out-dir }}/test_Ray_output.txt
shell: bash
135 changes: 132 additions & 3 deletions .github/workflows/schedule.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Schedule
name: Release

on:
schedule:
- cron: '0 2 * * *' # Run every day at 1 o'clock
pull_request:
branches:
- 'releases/**'

jobs:
build-windows-x86_64-rel:
Expand Down Expand Up @@ -294,6 +295,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-cpu-output"
test-args: "--nogpu -j4"
test-windows-x86_64-gpu-nv:
runs-on: [ windows, x86_64, nv ]
Expand All @@ -310,6 +312,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-gpu-nv-output"
test-args: "--device NV --nocpu"
test-windows-x86_64-gpu-amd:
runs-on: [ windows, x86_64, amd ]
Expand All @@ -326,6 +329,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-gpu-amd-output"
test-args: "--device AMD --nocpu"
test-windows-x86_64-gpu-arc:
runs-on: [ windows, x86_64, arc ]
Expand All @@ -342,6 +346,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-gpu-arc-output"
test-args: "--device Arc --nocpu"
test-windows-x86_64-gpu-xe:
runs-on: [ windows, x86_64, xe ]
Expand All @@ -358,6 +363,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-gpu-xe-output"
test-args: "--device Xe --nocpu"
test-windows-arm64-cpu:
runs-on: [ windows, arm64 ]
Expand All @@ -374,6 +380,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-arm64"
out-dir: "windows-arm64-cpu-output"
test-args: "--nogpu -j4"
test-windows-arm64-gpu-adreno:
runs-on: [ windows, arm64, adreno ]
Expand All @@ -390,6 +397,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-arm64"
out-dir: "windows-arm64-gpu-adreno-output"
test-args: "--device Adreno --nocpu"
test-linux-x86_64-cpu:
runs-on: [ linux, x86_64 ]
Expand All @@ -406,6 +414,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "linux-x86_64"
out-dir: "linux-x86_64-cpu-output"
test-args: "--nogpu -j4"
test-linux-x86_64-gpu-amd:
runs-on: [ linux, x86_64, amd ]
Expand All @@ -422,6 +431,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "linux-x86_64"
out-dir: "linux-x86_64-gpu-amd-output"
test-args: "--device AMD --nocpu --nohwrt"
test-linux-x86_64-gpu-nv:
runs-on: [ linux, x86_64, nv ]
Expand All @@ -438,6 +448,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "linux-x86_64"
out-dir: "linux-x86_64-gpu-nv-output"
test-args: "--device NV --nocpu"
test-macos-arm64-cpu:
runs-on: [ macos, arm64 ]
Expand All @@ -454,6 +465,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "macos-universal"
out-dir: "macos-arm64-cpu-output"
test-args: "--nogpu -j4"
test-macos-arm64-gpu-m1:
runs-on: [ macos, arm64, m1 ]
Expand All @@ -470,6 +482,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "macos-universal"
out-dir: "macos-arm64-gpu-m1-output"
test-args: "--device M1 --nocpu"
test-macos-x86_64-cpu:
runs-on: [ macos, x86_64 ]
Expand All @@ -486,6 +499,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "macos-universal"
out-dir: "macos-x86_64-cpu-output"
test-args: "--nogpu -j4"
test-windows-x86_64-cpu-sse2:
runs-on: [ windows, x86_64, win10 ]
Expand All @@ -502,6 +516,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-cpu-sse2-output"
test-args: "--arch SSE2 --nogpu -j4"
sde-args: "-p4p"
test-windows-x86_64-cpu-sse41:
Expand All @@ -519,6 +534,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-cpu-sse41-output"
test-args: "--arch SSE41 --nogpu -j4"
sde-args: "-pnr"
test-windows-x86_64-cpu-avx:
Expand All @@ -536,6 +552,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-cpu-avx-output"
test-args: "--arch AVX --nogpu -j4"
sde-args: "-snb"
test-windows-x86_64-cpu-avx2:
Expand All @@ -553,6 +570,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-cpu-avx2-output"
test-args: "--arch AVX2 --nogpu -j4"
sde-args: "-hsw"
test-windows-x86_64-cpu-avx512:
Expand All @@ -570,6 +588,7 @@ jobs:
uses: ./.github/actions/test-sde
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-cpu-avx512-output"
test-args: "--arch AVX512 --nogpu -j4"
sde-args: "-future"
test-linux-x86_64-cpu-tsan:
Expand All @@ -588,6 +607,7 @@ jobs:
with:
bin-name: "test_Ray-tsan"
bin-dir: "linux-x86_64-tsan"
out-dir: "linux-x86_64-cpu-tsan-output"
test-args: "--nogpu -j4"
test-windows-x86_64-cpu-asan:
runs-on: [ windows, x86_64 ]
Expand All @@ -605,6 +625,7 @@ jobs:
with:
bin-name: "test_Ray-asan"
bin-dir: "windows-x86_64-asan"
out-dir: "windows-x86_64-cpu-asan-output"
test-args: "--nogpu -j4"
test-windows-x86_64-gpu-nv-asan:
runs-on: [ windows, x86_64, nv ]
Expand All @@ -622,6 +643,7 @@ jobs:
with:
bin-name: "test_Ray-asan"
bin-dir: "windows-x86_64-asan"
out-dir: "windows-x86_64-gpu-nv-asan-output"
test-args: "--device NV --nocpu"
test-windows-arm64-cpu-perf:
runs-on: [ windows, arm64, perf ]
Expand All @@ -638,6 +660,7 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-arm64"
out-dir: "windows-arm64-cpu-perf-output"
test-args: "--nogpu -j4 --time_limit 2.95"
test-windows-arm64-gpu-perf:
runs-on: [ windows, arm64, perf, adreno ]
Expand All @@ -654,4 +677,110 @@ jobs:
uses: ./.github/actions/test
with:
bin-dir: "windows-arm64"
out-dir: "windows-arm64-gpu-perf-output"
test-args: "--nocpu -j4 --time_limit 5.4"
analyze-output:
runs-on: [ linux ]
needs: [ test-windows-x86_64-cpu, test-windows-x86_64-gpu-nv, test-windows-x86_64-gpu-amd, test-windows-x86_64-gpu-arc, test-windows-x86_64-gpu-xe, test-windows-arm64-cpu, test-windows-arm64-gpu-adreno, test-linux-x86_64-cpu, test-linux-x86_64-gpu-amd, test-linux-x86_64-gpu-nv, test-macos-arm64-cpu, test-macos-arm64-gpu-m1, test-macos-x86_64-cpu, test-windows-x86_64-cpu-sse2, test-windows-x86_64-cpu-sse41, test-windows-x86_64-cpu-avx, test-windows-x86_64-cpu-avx2, test-windows-x86_64-cpu-avx512, test-linux-x86_64-cpu-tsan, test-windows-x86_64-cpu-asan, test-windows-x86_64-gpu-nv-asan, test-windows-arm64-cpu-perf, test-windows-arm64-gpu-perf ]
if: always()
steps:
- name: Checkout Workflows
uses: actions/checkout@v4
with:
sparse-checkout: scripts/analyze_output.py
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-cpu-output
path: windows-x86_64-cpu-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-gpu-nv-output
path: windows-x86_64-gpu-nv-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-gpu-amd-output
path: windows-x86_64-gpu-amd-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-gpu-arc-output
path: windows-x86_64-gpu-arc-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-gpu-xe-output
path: windows-x86_64-gpu-xe-output/
- uses: actions/download-artifact@v3
with:
name: windows-arm64-cpu-output
path: windows-arm64-cpu-output/
- uses: actions/download-artifact@v3
with:
name: windows-arm64-gpu-adreno-output
path: windows-arm64-gpu-adreno-output/
- uses: actions/download-artifact@v3
with:
name: linux-x86_64-cpu-output
path: linux-x86_64-cpu-output/
- uses: actions/download-artifact@v3
with:
name: linux-x86_64-gpu-amd-output
path: linux-x86_64-gpu-amd-output/
- uses: actions/download-artifact@v3
with:
name: linux-x86_64-gpu-nv-output
path: linux-x86_64-gpu-nv-output/
- uses: actions/download-artifact@v3
with:
name: macos-arm64-cpu-output
path: macos-arm64-cpu-output/
- uses: actions/download-artifact@v3
with:
name: macos-arm64-gpu-m1-output
path: macos-arm64-gpu-m1-output/
- uses: actions/download-artifact@v3
with:
name: macos-x86_64-cpu-output
path: macos-x86_64-cpu-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-cpu-sse2-output
path: windows-x86_64-cpu-sse2-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-cpu-sse41-output
path: windows-x86_64-cpu-sse41-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-cpu-avx-output
path: windows-x86_64-cpu-avx-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-cpu-avx2-output
path: windows-x86_64-cpu-avx2-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-cpu-avx512-output
path: windows-x86_64-cpu-avx512-output/
- uses: actions/download-artifact@v3
with:
name: linux-x86_64-cpu-tsan-output
path: linux-x86_64-cpu-tsan-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-cpu-asan-output
path: windows-x86_64-cpu-asan-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-gpu-nv-asan-output
path: windows-x86_64-gpu-nv-asan-output/
- uses: actions/download-artifact@v3
with:
name: windows-arm64-cpu-perf-output
path: windows-arm64-cpu-perf-output/
- uses: actions/download-artifact@v3
with:
name: windows-arm64-gpu-perf-output
path: windows-arm64-gpu-perf-output/
- name: Analyze Output
run: |
python scripts/analyze_output.py windows-x86_64-cpu-output/test_Ray_output.txt windows-x86_64-gpu-nv-output/test_Ray_output.txt windows-x86_64-gpu-amd-output/test_Ray_output.txt windows-x86_64-gpu-arc-output/test_Ray_output.txt windows-x86_64-gpu-xe-output/test_Ray_output.txt windows-arm64-cpu-output/test_Ray_output.txt windows-arm64-gpu-adreno-output/test_Ray_output.txt linux-x86_64-cpu-output/test_Ray_output.txt linux-x86_64-gpu-amd-output/test_Ray_output.txt linux-x86_64-gpu-nv-output/test_Ray_output.txt macos-arm64-cpu-output/test_Ray_output.txt macos-arm64-gpu-m1-output/test_Ray_output.txt macos-x86_64-cpu-output/test_Ray_output.txt windows-x86_64-cpu-sse2-output/test_Ray_output.txt windows-x86_64-cpu-sse41-output/test_Ray_output.txt windows-x86_64-cpu-avx-output/test_Ray_output.txt windows-x86_64-cpu-avx2-output/test_Ray_output.txt windows-x86_64-cpu-avx512-output/test_Ray_output.txt linux-x86_64-cpu-tsan-output/test_Ray_output.txt windows-x86_64-cpu-asan-output/test_Ray_output.txt windows-x86_64-gpu-nv-asan-output/test_Ray_output.txt windows-arm64-cpu-perf-output/test_Ray_output.txt windows-arm64-gpu-perf-output/test_Ray_output.txt
shell: bash

0 comments on commit cec039d

Please sign in to comment.