-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Merge job-spec env variables of Pytorch/Caffe2 CI jobs #16649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "${JOB_BASE_NAME}" ] || [[ "${JOB_BASE_NAME}" == *-build* ]]; then | ||
if [ -z "${BUILD_ENVIRONMENT}" ] || [[ "${BUILD_ENVIRONMENT}" == *-build* ]]; then | ||
source "$(dirname "${BASH_SOURCE[0]}")/macos-build.sh" | ||
fi | ||
|
||
if [ -z "${JOB_BASE_NAME}" ] || [[ "${JOB_BASE_NAME}" == *-test* ]]; then | ||
if [ -z "${BUILD_ENVIRONMENT}" ] || [[ "${BUILD_ENVIRONMENT}" == *-test* ]]; then | ||
source "$(dirname "${BASH_SOURCE[0]}")/macos-test.sh" | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# (This is set by default in the Docker images we build, so you don't | ||
# need to set it yourself. | ||
|
||
COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}-test" | ||
COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}" | ||
source "$(dirname "${BASH_SOURCE[0]}")/common.sh" | ||
|
||
echo "Testing pytorch" | ||
|
@@ -85,9 +85,9 @@ if [[ "$BUILD_ENVIRONMENT" == *rocm* ]]; then | |
pip install -q psutil "librosa>=0.6.2" --user | ||
fi | ||
|
||
if [[ "${JOB_BASE_NAME}" == *-NO_AVX-* ]]; then | ||
if [[ "${BUILD_ENVIRONMENT}" == *-NO_AVX-* ]]; then | ||
export ATEN_CPU_CAPABILITY=default | ||
elif [[ "${JOB_BASE_NAME}" == *-NO_AVX2-* ]]; then | ||
elif [[ "${BUILD_ENVIRONMENT}" == *-NO_AVX2-* ]]; then | ||
export ATEN_CPU_CAPABILITY=avx | ||
fi | ||
|
||
|
@@ -186,8 +186,8 @@ test_xla() { | |
assert_git_not_dirty | ||
} | ||
|
||
if [ -z "${JOB_BASE_NAME}" ] || [[ "${JOB_BASE_NAME}" == *-test ]]; then | ||
if [[ "${JOB_BASE_NAME}" == *xla* ]]; then | ||
if [ -z "${BUILD_ENVIRONMENT}" ] || [[ "${BUILD_ENVIRONMENT}" == *-test ]]; then | ||
if [[ "${BUILD_ENVIRONMENT}" == *xla* ]]; then | ||
test_torchvision | ||
test_xla | ||
else | ||
|
@@ -199,10 +199,10 @@ if [ -z "${JOB_BASE_NAME}" ] || [[ "${JOB_BASE_NAME}" == *-test ]]; then | |
test_custom_script_ops | ||
fi | ||
else | ||
if [[ "${JOB_BASE_NAME}" == *-test1 ]]; then | ||
if [[ "${BUILD_ENVIRONMENT}" == *-test1 ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks dead as well |
||
test_torchvision | ||
test_python_nn | ||
elif [[ "${JOB_BASE_NAME}" == *-test2 ]]; then | ||
elif [[ "${BUILD_ENVIRONMENT}" == *-test2 ]]; then | ||
test_torchvision | ||
test_python_all_except_nn | ||
test_aten | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,15 +148,15 @@ test_api.exe --gtest_filter="-IntegrationTest.MNIST*" | |
EOL | ||
|
||
run_tests() { | ||
if [ -z "${JOB_BASE_NAME}" ] || [[ "${JOB_BASE_NAME}" == *-test ]]; then | ||
if [ -z "${BUILD_ENVIRONMENT}" ] || [[ "${BUILD_ENVIRONMENT}" == *-test ]]; then | ||
$TMP_DIR/ci_scripts/test_python_nn.bat && \ | ||
$TMP_DIR/ci_scripts/test_python_all_except_nn.bat && \ | ||
$TMP_DIR/ci_scripts/test_custom_script_ops.bat && \ | ||
$TMP_DIR/ci_scripts/test_libtorch.bat | ||
else | ||
if [[ "${JOB_BASE_NAME}" == *-test1 ]]; then | ||
if [[ "${BUILD_ENVIRONMENT}" == *-test1 ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe the Windows tests are no longer running at all after this change.
Note that the value of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Filed Issue #17101 |
||
$TMP_DIR/ci_scripts/test_python_nn.bat | ||
elif [[ "${JOB_BASE_NAME}" == *-test2 ]]; then | ||
elif [[ "${BUILD_ENVIRONMENT}" == *-test2 ]]; then | ||
$TMP_DIR/ci_scripts/test_python_all_except_nn.bat && \ | ||
$TMP_DIR/ci_scripts/test_custom_script_ops.bat && \ | ||
$TMP_DIR/ci_scripts/test_libtorch.bat | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like dead code to me. @yf225 did there used to be more mac test jobs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We used to split the test job in half for parallel testing which is what this was for. We can probably keep them around in case we are doing it in the future (which would be a pretty nice CI speed improvement)