@@ -61,7 +61,9 @@ mkdir -p "$today" || true
61
61
62
62
# List of people to email when things go wrong. This is passed directly to
63
63
# `mail -t`
64
- export NIGHTLIES_EMAIL_LIST=
' [email protected] '
64
+ if [[ -z " $NIGHTLIES_EMAIL_LIST " ]]; then
65
+ export NIGHTLIES_EMAIL_LIST=
' [email protected] '
66
+ fi
65
67
66
68
# PYTORCH_CREDENTIALS_FILE
67
69
# A bash file that exports credentials needed to upload to aws and anaconda.
79
81
# Location of the temporary miniconda that is downloaded to install conda-build
80
82
# and aws to upload finished packages TODO this is messy to install this in
81
83
# upload.sh and later use it in upload_logs.sh
82
- CONDA_UPLOADER_INSTALLATION=" ${today} /miniconda"
84
+ if [[ -z " $CONDA_UPLOADER_INSTALLATION " ]]; then
85
+ export CONDA_UPLOADER_INSTALLATION=" ${today} /miniconda"
86
+ fi
83
87
84
88
# N.B. BUILDER_REPO and BUILDER_BRANCH are both set in cron_start.sh, as that
85
89
# is the script that actually clones the builder repo that /this/ script is
86
90
# running from.
87
91
export NIGHTLIES_BUILDER_ROOT=" $( cd $( dirname $0 ) /.. && pwd) "
88
92
89
93
# The shared pytorch repo to be used by all builds
90
- export NIGHTLIES_PYTORCH_ROOT=" ${today} /pytorch"
94
+ if [[ -z " $NIGHTLIES_PYTORCH_ROOT " ]]; then
95
+ export NIGHTLIES_PYTORCH_ROOT=" ${today} /pytorch"
96
+ fi
91
97
92
98
# PYTORCH_REPO
93
99
# The Github org/user whose fork of Pytorch to check out (git clone
@@ -190,15 +196,23 @@ nightlies_package_folder () {
190
196
# should be empty. Logs are written out to RUNNING_LOG_DIR. When a build
191
197
# fails, it's log should be moved to FAILED_LOG_DIR, and similarily for
192
198
# succeeded builds.
193
- export RUNNING_LOG_DIR=" ${today} /logs"
194
- export FAILED_LOG_DIR=" ${today} /logs/failed"
195
- export SUCCEEDED_LOG_DIR=" ${today} /logs/succeeded"
199
+ if [[ -z " $RUNNING_LOG_DIR " ]]; then
200
+ export RUNNING_LOG_DIR=" ${today} /logs"
201
+ fi
202
+ if [[ -z " $FAILED_LOG_DIR " ]]; then
203
+ export FAILED_LOG_DIR=" ${today} /logs/failed"
204
+ fi
205
+ if [[ -z " $SUCCEEDED_LOG_DIR " ]]; then
206
+ export SUCCEEDED_LOG_DIR=" ${today} /logs/succeeded"
207
+ fi
196
208
197
209
# Log s3 directory, must not end in a /
198
- if [[ " $( uname) " == ' Darwin' ]]; then
199
- export LOGS_S3_DIR=" nightly_logs/macos/$NIGHTLIES_DATE "
200
- else
201
- export LOGS_S3_DIR=" nightly_logs/linux/$NIGHTLIES_DATE "
210
+ if [[ -z " $LOGS_S3_DIR " ]]; then
211
+ if [[ " $( uname) " == ' Darwin' ]]; then
212
+ export LOGS_S3_DIR=" nightly_logs/macos/$NIGHTLIES_DATE "
213
+ else
214
+ export LOGS_S3_DIR=" nightly_logs/linux/$NIGHTLIES_DATE "
215
+ fi
202
216
fi
203
217
# The location of the binary_sizes dir in s3 is hardcoded into
204
218
# upload_binary_sizes.sh
@@ -236,6 +250,11 @@ if [[ -z "$PYTORCH_NIGHTLIES_TIMEOUT" ]]; then
236
250
export PYTORCH_NIGHTLIES_TIMEOUT=4800
237
251
fi
238
252
fi
253
+ if [[ -z " $PYTORCH_NIGHTLIES_LIBTORCH_TIMEOUT " ]]; then
254
+ # The libtorch job actually runs for several cpu/cuda versions in sequence
255
+ # and so takes a long time
256
+ export PYTORCH_NIGHTLIES_LIBTORCH_TIMEOUT=10800
257
+ fi
239
258
240
259
# PORTABLE_TIMEOUT
241
260
# Command/executable of some timeout command. Defined here because the path
0 commit comments