Skip to content

Commit

Permalink
Disabling Tune and large memory tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Edilmo committed Feb 19, 2020
1 parent 2e37be2 commit 5cd4651
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 63 deletions.
85 changes: 44 additions & 41 deletions ci/azure_pipelines/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,47 +96,50 @@ stages:
source $BUILD_SOURCESDIRECTORY/ci/jenkins_tests/run_rllib_tests.sh
######################## TUNE TESTS #################################
bash $BUILD_SOURCESDIRECTORY/ci/jenkins_tests/run_tune_tests.sh ${MEMORY_SIZE} ${SHM_SIZE} $DOCKER_SHA
######################## SGD TESTS #################################
# Originally with ./ci/suppress_output
docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
python /ray/python/ray/experimental/sgd/test_sgd.py --num-iters=2 \
--batch-size=1 --strategy=simple
# Originally with ./ci/suppress_output
docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
python /ray/python/ray/experimental/sgd/test_sgd.py --num-iters=2 \
--batch-size=1 --strategy=ps
# Originally with ./ci/suppress_output
docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
python /ray/python/ray/experimental/sgd/test_save_and_restore.py --num-iters=2 \
--batch-size=1 --strategy=simple
# Originally with ./ci/suppress_output
docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
python /ray/python/ray/experimental/sgd/test_save_and_restore.py --num-iters=2 \
--batch-size=1 --strategy=ps
# Originally with ./ci/suppress_output
docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
python /ray/python/ray/experimental/sgd/mnist_example.py --num-iters=1 \
--num-workers=1 --devices-per-worker=1 --strategy=ps
# Originally with ./ci/suppress_output
docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
python /ray/python/ray/experimental/sgd/mnist_example.py --num-iters=1 \
--num-workers=1 --devices-per-worker=1 --strategy=ps --tune
######################## RAY BACKEND TESTS #################################
# Originally with ./ci/suppress_output
docker run --rm --shm-size=60G --memory=60G $DOCKER_SHA \
python /ray/ci/jenkins_tests/miscellaneous/large_memory_test.py
# TODO: [CI] All the following tests are disabled because:
# - In Tune here is one tune test that requires API KEY of https://sigopt.com
# - The large memory test requires 60 GB of RAM
# ######################## TUNE TESTS #################################
# bash $BUILD_SOURCESDIRECTORY/ci/jenkins_tests/run_tune_tests.sh ${MEMORY_SIZE} ${SHM_SIZE} $DOCKER_SHA
# ######################## SGD TESTS #################################
# # Originally with ./ci/suppress_output
# docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
# python /ray/python/ray/experimental/sgd/test_sgd.py --num-iters=2 \
# --batch-size=1 --strategy=simple
# # Originally with ./ci/suppress_output
# docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
# python /ray/python/ray/experimental/sgd/test_sgd.py --num-iters=2 \
# --batch-size=1 --strategy=ps
# # Originally with ./ci/suppress_output
# docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
# python /ray/python/ray/experimental/sgd/test_save_and_restore.py --num-iters=2 \
# --batch-size=1 --strategy=simple
# # Originally with ./ci/suppress_output
# docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
# python /ray/python/ray/experimental/sgd/test_save_and_restore.py --num-iters=2 \
# --batch-size=1 --strategy=ps
# # Originally with ./ci/suppress_output
# docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
# python /ray/python/ray/experimental/sgd/mnist_example.py --num-iters=1 \
# --num-workers=1 --devices-per-worker=1 --strategy=ps
# # Originally with ./ci/suppress_output
# docker run --rm --shm-size=${SHM_SIZE} --memory=${MEMORY_SIZE} $DOCKER_SHA \
# python /ray/python/ray/experimental/sgd/mnist_example.py --num-iters=1 \
# --num-workers=1 --devices-per-worker=1 --strategy=ps --tune
# ######################## RAY BACKEND TESTS #################################
# # Originally with ./ci/suppress_output
# docker run --rm --shm-size=60G --memory=60G $DOCKER_SHA \
# python /ray/ci/jenkins_tests/miscellaneous/large_memory_test.py
# End Original script
Expand Down
44 changes: 22 additions & 22 deletions ci/azure_pipelines/templates/info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,28 @@
# and gather information about the system
steps:
- script: |
EXPECTED_HASH_CI_CODE='efb8f5c1d01e167923b7451749a65321d1eb6ec79f5c0961e14fb562a570a4e2'
CURRENT_HASH_CI_CODE=$(tar --exclude='ci/azure_pipelines' --exclude='**/.DS_Store' -cf - .travis.yml ci | shasum -a 256 | awk '{print $1}')
if [[ $EXPECTED_HASH_CI_CODE != $CURRENT_HASH_CI_CODE ]]; then
echo "The original CI of the project has changed"
echo "Please check the changes, change the azure pipelines acordingly and update the sha256"
exit 1
# the hash was computed in Mac
if [[ $AGENT_OS == "Darwin" ]]; then
pushd $BUILD_SOURCESDIRECTORY
EXPECTED_HASH_TRAVIS='a64ea966996734aeb37cfc049d882a42548afe6a49e38cd7999f43c1cdb8a1c8'
CURRENT_HASH_TRAVIS=$(shasum -a 256 ./.travis.yml | awk '{print $1}')
if [[ $EXPECTED_HASH_TRAVIS != $CURRENT_HASH_TRAVIS ]]; then
echo "The original Travis file of the project has changed"
echo "Expected Hash: $EXPECTED_HASH_TRAVIS"
echo "Current Hash: $CURRENT_HASH_TRAVIS"
echo "Please check the changes, change the azure pipelines acordingly and update the sha256"
exit 1
fi
EXPECTED_HASH_CI_FOLDER='b679d5dbddbbf2e541683972f6e4b04e405d6dc6883b4cbfe94b20ff75d6d6f5'
CURRENT_HASH_CI_FOLDER=$(find ./ci -path "./ci/azure_pipelines" -prune -o -path "./**/.DS_Store" -prune -o -type f -print0 | sort -z | xargs -0 shasum -a 256 | shasum -a 256 | awk '{print $1}')
if [[ $EXPECTED_HASH_CI_FOLDER != $CURRENT_HASH_CI_FOLDER ]]; then
echo "The original CI folder of the project has changed"
echo "Expected Hash: $EXPECTED_HASH_CI_FOLDER"
echo "Current Hash: $CURRENT_HASH_CI_FOLDER"
echo "Please check the changes, change the azure pipelines acordingly and update the sha256"
exit 1
fi
popd
fi
displayName: Check upstream CI
- script: |
Expand All @@ -25,19 +41,3 @@ steps:
fi
echo "PYTHON_CONFIGURE_OPTS: $PYTHON_CONFIGURE_OPTS"
displayName: 'General system info'
- task: PythonScript@0
inputs:
scriptSource: 'inline'
script: |
import platform
print(platform.platform())
import wheel.pep425tags
print(wheel.pep425tags.get_impl_ver())
print(wheel.pep425tags.get_abi_tag())
print(wheel.pep425tags.get_platform(None))
tags = wheel.pep425tags.get_supported(None)
print(tags)
print(('cp36', 'cp36m', 'macosx_10_14_x86_64') in tags)
print(platform.mac_ver())
failOnStderr: false
displayName: 'Print system info'
16 changes: 16 additions & 0 deletions ci/azure_pipelines/templates/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,19 @@ steps:
fi
cat $BUILD_SOURCESDIRECTORY/python/ray/__init__.py | grep "__version__ ="
displayName: 'Change version of Ray to use'
- task: PythonScript@0
inputs:
scriptSource: 'inline'
script: |
import platform
print(platform.platform())
import wheel.pep425tags
print(wheel.pep425tags.get_impl_ver())
print(wheel.pep425tags.get_abi_tag())
print(wheel.pep425tags.get_platform(None))
tags = wheel.pep425tags.get_supported(None)
print(tags)
print(('cp36', 'cp36m', 'macosx_10_14_x86_64') in tags)
print(platform.mac_ver())
failOnStderr: false
displayName: 'Print system info'

0 comments on commit 5cd4651

Please sign in to comment.