mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Test example applications and rllib in jenkins tests. (#707)
* Test example applications in Jenkins. * Fix default upload_dir argument for Algorithm class. * Fix evolution strategies. * Comment out policy gradient example which doesn't seem to work. * Set --env-name for evolution strategies.
This commit is contained in:
committed by
Philipp Moritz
parent
4349f1f966
commit
80e8426b5e
@@ -8,7 +8,7 @@ set -x
|
||||
|
||||
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
||||
|
||||
DOCKER_SHA=$($ROOT_DIR/../../build-docker.sh --output-sha --no-cache --skip-examples)
|
||||
DOCKER_SHA=$($ROOT_DIR/../../build-docker.sh --output-sha --no-cache)
|
||||
echo "Using Docker image" $DOCKER_SHA
|
||||
|
||||
python $ROOT_DIR/multi_node_docker_test.py \
|
||||
@@ -40,3 +40,32 @@ python $ROOT_DIR/multi_node_docker_test.py \
|
||||
--mem-size=60G \
|
||||
--shm-size=60G \
|
||||
--test-script=/ray/test/jenkins_tests/multi_node_tests/large_memory_test.py
|
||||
|
||||
# Test that the example applications run.
|
||||
|
||||
# docker run --shm-size=10G --memory=10G $DOCKER_SHA \
|
||||
# python /ray/examples/lbfgs/driver.py
|
||||
|
||||
# docker run --shm-size=10G --memory=10G $DOCKER_SHA \
|
||||
# python /ray/examples/rl_pong/driver.py \
|
||||
# --iterations=3
|
||||
|
||||
# docker run --shm-size=10G --memory=10G $DOCKER_SHA \
|
||||
# python /ray/examples/hyperopt/hyperopt_simple.py
|
||||
|
||||
# docker run --shm-size=10G --memory=10G $DOCKER_SHA \
|
||||
# python /ray/examples/hyperopt/hyperopt_adaptive.py
|
||||
|
||||
docker run --shm-size=10G --memory=10G $DOCKER_SHA \
|
||||
python /ray/python/ray/rllib/a3c/example.py \
|
||||
--environment=PongDeterministic-v0 \
|
||||
--iterations=2
|
||||
|
||||
# docker run --shm-size=10G --memory=10G $DOCKER_SHA \
|
||||
# python /ray/python/ray/rllib/policy_gradient/example.py \
|
||||
# --iterations=2
|
||||
|
||||
docker run --shm-size=10G --memory=10G $DOCKER_SHA \
|
||||
python /ray/python/ray/rllib/evolution_strategies/example.py \
|
||||
--env-name=Pendulum-v0 \
|
||||
--iterations=2
|
||||
|
||||
Reference in New Issue
Block a user