Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .ci/scripts/unittest-macos-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,19 @@ set -eux
export TORCHINDUCTOR_CACHE_DIR="$(mktemp -d "${RUNNER_TEMP:-/tmp}/torchinductor_cache_XXXXXX")"
trap 'rm -rf "${TORCHINDUCTOR_CACHE_DIR}"' EXIT

# Run pytest with coverage
${CONDA_RUN} pytest -n auto --cov=./ --cov-report=xml
# TODO(SS-JIA): AOTI tests hang on macOS CI runners — the thread blocks in
# native C/C++ code (dlopen / inductor compilation) so faulthandler cannot
# even produce a traceback. Diagnosis ongoing in #19886.
AOTI_SKIPS=(
--ignore=examples/models/llama3_2_vision/preprocess/test_preprocess.py
--ignore=examples/models/llama3_2_vision/vision_encoder/test/test_vision_encoder.py
--ignore=examples/models/llama3_2_vision/text_decoder/test/test_text_decoder.py
--deselect=extension/llm/modules/test/test_position_embeddings.py::TilePositionalEmbeddingTest::test_tile_positional_embedding_aoti
--deselect=extension/llm/modules/test/test_position_embeddings.py::TiledTokenPositionalEmbeddingTest::test_tiled_token_positional_embedding_aoti
--deselect=extension/llm/modules/test/test_attention.py::AttentionTest::test_attention_aoti
)

${CONDA_RUN} pytest -n auto --cov=./ --cov-report=xml "${AOTI_SKIPS[@]}"
# Run gtest
LLVM_PROFDATA="xcrun llvm-profdata" LLVM_COV="xcrun llvm-cov" \
${CONDA_RUN} test/run_oss_cpp_tests.sh
1 change: 1 addition & 0 deletions .github/workflows/_unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
python-version: '3.11'
submodules: 'recursive'
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
timeout: 120
script: |
set -eux
# This is needed to get the prebuilt PyTorch wheel from S3
Expand Down
Loading