Skip to content

Commit

Permalink
Disable tsan, gcc, debug, and byo_llvm jobs. (#17967)
Browse files Browse the repository at this point in the history
Progress on #17957

These auxiliary jobs use expensive CPU runners that are currently in
short supply.

We could add these back as on-demand or nightly jobs, but running them
on every commit is too expensive relative to the value they provide.

skip-ci: just disabling jobs
  • Loading branch information
ScottTodd authored Jul 19, 2024
1 parent 2380a08 commit c058c84
Showing 1 changed file with 94 additions and 90 deletions.
184 changes: 94 additions & 90 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,9 @@ jobs:
include:
- name: asan
script: ./build_tools/cmake/build_and_test_asan.sh
- name: tsan
script: ./build_tools/cmake/build_and_test_tsan.sh
# Disabled to reduce self-hosted runners needed. See #17957
# - name: tsan
# script: ./build_tools/cmake/build_and_test_tsan.sh
steps:
- name: "Checking out repository"
uses: actions/[email protected]
Expand Down Expand Up @@ -743,38 +744,39 @@ jobs:
./build_tools/cmake/ctest_all.sh \
"${BUILD_DIR}"
gcc:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'gcc')
runs-on:
- self-hosted # must come first
- runner-group=${{ needs.setup.outputs.runner-group }}
- environment=${{ needs.setup.outputs.runner-env }}
- cpu
- os-family=Linux
env:
BUILD_DIR: build-gcc
steps:
- name: "Checking out repository"
uses: actions/[email protected]
with:
submodules: true
- name: "Building IREE with gcc"
env:
IREE_WRITE_REMOTE_CCACHE: ${{ needs.setup.outputs.write-caches }}
run: |
./build_tools/github_actions/docker_run.sh \
--env CC=/usr/bin/gcc-9 \
--env CXX=/usr/bin/g++-9 \
--env CMAKE_BUILD_TYPE=Release \
--env "IREE_TARGET_BACKEND_WEBGPU_SPIRV=OFF" \
--env "IREE_CCACHE_GCP_TOKEN=$(gcloud auth application-default print-access-token)" \
--env "IREE_WRITE_REMOTE_CCACHE=${IREE_WRITE_REMOTE_CCACHE}" \
--env "CCACHE_NAMESPACE=gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446" \
--env "IREE_BUILD_SETUP_PYTHON_VENV=${BUILD_DIR}/.venv" \
gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446 \
./build_tools/cmake/build_all.sh \
"${BUILD_DIR}"
# Disabled to reduce self-hosted runners needed. See #17957
# gcc:
# needs: setup
# if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'gcc')
# runs-on:
# - self-hosted # must come first
# - runner-group=${{ needs.setup.outputs.runner-group }}
# - environment=${{ needs.setup.outputs.runner-env }}
# - cpu
# - os-family=Linux
# env:
# BUILD_DIR: build-gcc
# steps:
# - name: "Checking out repository"
# uses: actions/[email protected]
# with:
# submodules: true
# - name: "Building IREE with gcc"
# env:
# IREE_WRITE_REMOTE_CCACHE: ${{ needs.setup.outputs.write-caches }}
# run: |
# ./build_tools/github_actions/docker_run.sh \
# --env CC=/usr/bin/gcc-9 \
# --env CXX=/usr/bin/g++-9 \
# --env CMAKE_BUILD_TYPE=Release \
# --env "IREE_TARGET_BACKEND_WEBGPU_SPIRV=OFF" \
# --env "IREE_CCACHE_GCP_TOKEN=$(gcloud auth application-default print-access-token)" \
# --env "IREE_WRITE_REMOTE_CCACHE=${IREE_WRITE_REMOTE_CCACHE}" \
# --env "CCACHE_NAMESPACE=gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446" \
# --env "IREE_BUILD_SETUP_PYTHON_VENV=${BUILD_DIR}/.venv" \
# gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446 \
# ./build_tools/cmake/build_all.sh \
# "${BUILD_DIR}"

tracing:
needs: setup
Expand Down Expand Up @@ -802,60 +804,62 @@ jobs:
./build_tools/cmake/build_runtime_tracing.sh \
"${BUILD_DIR}"
debug:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'debug')
runs-on:
- self-hosted # must come first
- runner-group=${{ needs.setup.outputs.runner-group }}
- environment=${{ needs.setup.outputs.runner-env }}
- cpu
- os-family=Linux
env:
BUILD_DIR: build-debug
steps:
- name: "Checking out repository"
uses: actions/[email protected]
with:
submodules: true
- name: "Building IREE in Debug configuration"
env:
IREE_WRITE_REMOTE_CCACHE: ${{ needs.setup.outputs.write-caches }}
run: |
./build_tools/github_actions/docker_run.sh \
--env "IREE_CCACHE_GCP_TOKEN=$(gcloud auth application-default print-access-token)" \
--env "IREE_WRITE_REMOTE_CCACHE=${IREE_WRITE_REMOTE_CCACHE}" \
--env "CMAKE_BUILD_TYPE=Debug" \
--env "CCACHE_NAMESPACE=gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446" \
--env "IREE_BUILD_SETUP_PYTHON_VENV=${BUILD_DIR}/.venv" \
gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446 \
./build_tools/cmake/build_all.sh \
"${BUILD_DIR}"
# Disabled to reduce self-hosted runners needed. See #17957
# debug:
# needs: setup
# if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'debug')
# runs-on:
# - self-hosted # must come first
# - runner-group=${{ needs.setup.outputs.runner-group }}
# - environment=${{ needs.setup.outputs.runner-env }}
# - cpu
# - os-family=Linux
# env:
# BUILD_DIR: build-debug
# steps:
# - name: "Checking out repository"
# uses: actions/[email protected]
# with:
# submodules: true
# - name: "Building IREE in Debug configuration"
# env:
# IREE_WRITE_REMOTE_CCACHE: ${{ needs.setup.outputs.write-caches }}
# run: |
# ./build_tools/github_actions/docker_run.sh \
# --env "IREE_CCACHE_GCP_TOKEN=$(gcloud auth application-default print-access-token)" \
# --env "IREE_WRITE_REMOTE_CCACHE=${IREE_WRITE_REMOTE_CCACHE}" \
# --env "CMAKE_BUILD_TYPE=Debug" \
# --env "CCACHE_NAMESPACE=gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446" \
# --env "IREE_BUILD_SETUP_PYTHON_VENV=${BUILD_DIR}/.venv" \
# gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446 \
# ./build_tools/cmake/build_all.sh \
# "${BUILD_DIR}"

byo_llvm:
needs: setup
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'byo_llvm')
runs-on:
- self-hosted # must come first
- runner-group=${{ needs.setup.outputs.runner-group }}
- environment=${{ needs.setup.outputs.runner-env }}
- cpu
- os-family=Linux
steps:
- name: "Checking out repository"
uses: actions/[email protected]
with:
submodules: true
- name: "Building and testing with bring-your-own-LLVM"
env:
IREE_WRITE_REMOTE_CCACHE: ${{ needs.setup.outputs.write-caches }}
run: |
./build_tools/github_actions/docker_run.sh \
--env "IREE_CCACHE_GCP_TOKEN=$(gcloud auth application-default print-access-token)" \
--env "IREE_WRITE_REMOTE_CCACHE=${IREE_WRITE_REMOTE_CCACHE}" \
--env "CCACHE_NAMESPACE=gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446" \
gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446 \
./build_tools/cmake/build_and_test_byo_llvm.sh
# Disabled to reduce self-hosted runners needed. See #17957
# byo_llvm:
# needs: setup
# if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'byo_llvm')
# runs-on:
# - self-hosted # must come first
# - runner-group=${{ needs.setup.outputs.runner-group }}
# - environment=${{ needs.setup.outputs.runner-env }}
# - cpu
# - os-family=Linux
# steps:
# - name: "Checking out repository"
# uses: actions/[email protected]
# with:
# submodules: true
# - name: "Building and testing with bring-your-own-LLVM"
# env:
# IREE_WRITE_REMOTE_CCACHE: ${{ needs.setup.outputs.write-caches }}
# run: |
# ./build_tools/github_actions/docker_run.sh \
# --env "IREE_CCACHE_GCP_TOKEN=$(gcloud auth application-default print-access-token)" \
# --env "IREE_WRITE_REMOTE_CCACHE=${IREE_WRITE_REMOTE_CCACHE}" \
# --env "CCACHE_NAMESPACE=gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446" \
# gcr.io/iree-oss/base@sha256:dc314b4fe30fc1315742512891357bffed4d1b62ffcb46258b1e0761c737b446 \
# ./build_tools/cmake/build_and_test_byo_llvm.sh

############################## Crosscompilation ##############################
# Jobs that cross-compile IREE for other platforms
Expand Down Expand Up @@ -998,10 +1002,10 @@ jobs:
- python_release_packages
- sanitizers
- small_runtime
- gcc
# - gcc
- tracing
- debug
- byo_llvm
# - debug
# - byo_llvm

# Crosscompilation
# - cross_compile_and_test
Expand Down

0 comments on commit c058c84

Please sign in to comment.