Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 1b21fa8

Browse files
author
Samantha Andow
authored
cleanup ci (#216)
1 parent e459ed9 commit 1b21fa8

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

.circleci/config.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@ commands:
55
description: "checkout merge branch"
66
steps:
77
- checkout
8-
# - run:
9-
# name: Checkout merge branch
10-
# command: |
11-
# set -ex
12-
# BRANCH=$(git rev-parse --abbrev-ref HEAD)
13-
# if [[ "$BRANCH" != "master" ]]; then
14-
# git fetch --force origin ${CIRCLE_BRANCH}/merge:merged/${CIRCLE_BRANCH}
15-
# git checkout "merged/$CIRCLE_BRANCH"
16-
# fi
178

189
binary_common: &binary_common
1910
parameters:
@@ -84,7 +75,7 @@ jobs:
8475
name: Post process
8576
command: .circleci/unittest/linux/scripts/post_process.sh
8677
- store_test_results:
87-
path: test-results
78+
path: test-reports
8879

8980
unittest_linux_gpu:
9081
<<: *binary_common
@@ -122,7 +113,7 @@ jobs:
122113
name: Post process
123114
command: .circleci/unittest/linux/scripts/post_process.sh
124115
- store_test_results:
125-
path: test-results
116+
path: test-reports
126117

127118
workflows:
128119
unittest:

.circleci/unittest/linux/scripts/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies:
88
- pip
99
- ca-certificates
1010
- pip:
11+
- xmlrunner
1112
- pillow>=4.1.1
1213
- scipy
1314
- av

.circleci/unittest/linux/scripts/run_test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
set -e
44

5+
export IN_CI=1
6+
mkdir test-reports
57
eval "$(./conda/bin/conda shell.bash hook)"
68
conda activate ./env
79

810
python -m torch.utils.collect_env
911

1012
# test_functorch_lagging_op_db.py: Only run this locally because it checks
1113
# the functorch lagging op db vs PyTorch's op db.
12-
find test \( -name test\*.py ! -name test_functorch_lagging_op_db.py \) | xargs -I {} -n 1 bash -c "python {} -v || exit 255"
14+
EXIT_STATUS=0
15+
find test \( -name test\*.py ! -name test_functorch_lagging_op_db.py \) | xargs -I {} -n 1 python {} -v || EXIT_STATUS=$?
16+
exit $EXIT_STATUS

.circleci/unittest/linux/scripts/setup_env.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ set -e
77
#
88
# Do not install PyTorch and functorch here, otherwise they also get cached.
99

10-
set -e
11-
1210
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1311
root_dir="$(git rev-parse --show-toplevel)"
1412
conda_dir="${root_dir}/conda"

0 commit comments

Comments
 (0)