mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Workaround the OSError due to bad address failure on the CI runs (#370)
workaround the OSError due to bad address failure on the CI runs
This commit is contained in:
@@ -184,7 +184,7 @@ jobs:
|
|||||||
name: run functional tests
|
name: run functional tests
|
||||||
command: |
|
command: |
|
||||||
export FUNCTIONAL_PRESETS="'not Mujoco and not CARLA and not Doom and not Starcraft'"
|
export FUNCTIONAL_PRESETS="'not Mujoco and not CARLA and not Doom and not Starcraft'"
|
||||||
python3 rl_coach/tests/test_eks.py -c coach-test -bn ${CIRCLE_BUILD_NUM} -tn functional-test -tc "export FUNCTIONAL_PRESETS=${FUNCTIONAL_PRESETS} && make functional_tests_without_docker" -i 316971102342.dkr.ecr.us-west-2.amazonaws.com/coach:$(git describe --tags --always --dirty) -cpu 2048 -mem 4096
|
python3 rl_coach/tests/test_eks.py -c coach-test -bn ${CIRCLE_BUILD_NUM} -tn functional-test -tc "export FUNCTIONAL_PRESETS=${FUNCTIONAL_PRESETS} && make functional_tests_without_docker" -i 316971102342.dkr.ecr.us-west-2.amazonaws.com/coach:$(git describe --tags --always --dirty) -cpu 2048 -mem 8192
|
||||||
no_output_timeout: 45m
|
no_output_timeout: 45m
|
||||||
- run:
|
- run:
|
||||||
name: cleanup
|
name: cleanup
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ def test_preset_args(preset_args, flag, clres, start_time=time.time(),
|
|||||||
run_cmd.extend(test_flag)
|
run_cmd.extend(test_flag)
|
||||||
print(str(run_cmd))
|
print(str(run_cmd))
|
||||||
|
|
||||||
|
try:
|
||||||
proc = subprocess.Popen(run_cmd, stdout=clres.stdout, stderr=clres.stdout)
|
proc = subprocess.Popen(run_cmd, stdout=clres.stdout, stderr=clres.stdout)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -64,6 +65,10 @@ def test_preset_args(preset_args, flag, clres, start_time=time.time(),
|
|||||||
screen.error(open(clres.stdout.name).read(), crash=False)
|
screen.error(open(clres.stdout.name).read(), crash=False)
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
except OSError as e:
|
||||||
|
# if test launch failed due to OSError - skip test
|
||||||
|
pytest.skip(e)
|
||||||
|
|
||||||
proc.kill()
|
proc.kill()
|
||||||
|
|
||||||
|
|
||||||
@@ -102,10 +107,10 @@ def test_preset_seed(preset_args_for_seed, clres, start_time=time.time(),
|
|||||||
run_cmd.extend(test_flag)
|
run_cmd.extend(test_flag)
|
||||||
print(str(run_cmd))
|
print(str(run_cmd))
|
||||||
|
|
||||||
|
try:
|
||||||
for _ in range(seed_num):
|
for _ in range(seed_num):
|
||||||
proc.append(subprocess.Popen(run_cmd, stdout=clres.stdout,
|
proc.append(subprocess.Popen(run_cmd, stdout=clres.stdout,
|
||||||
stderr=clres.stdout))
|
stderr=clres.stdout))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
a_utils.validate_arg_result(flag=test_flag,
|
a_utils.validate_arg_result(flag=test_flag,
|
||||||
p_valid_params=p_valid_params, clres=clres,
|
p_valid_params=p_valid_params, clres=clres,
|
||||||
@@ -117,6 +122,10 @@ def test_preset_seed(preset_args_for_seed, clres, start_time=time.time(),
|
|||||||
screen.error(open(clres.stdout.name).read(), crash=False)
|
screen.error(open(clres.stdout.name).read(), crash=False)
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
except OSError as e:
|
||||||
|
# if test launch failed due to OSError - skip test
|
||||||
|
pytest.skip(e)
|
||||||
|
|
||||||
close_processes()
|
close_processes()
|
||||||
|
|
||||||
|
|
||||||
@@ -145,6 +154,7 @@ def test_preset_n_and_ew(preset_args, clres, start_time=time.time(),
|
|||||||
|
|
||||||
print(str(run_cmd))
|
print(str(run_cmd))
|
||||||
|
|
||||||
|
try:
|
||||||
proc = subprocess.Popen(run_cmd, stdout=clres.stdout, stderr=clres.stdout)
|
proc = subprocess.Popen(run_cmd, stdout=clres.stdout, stderr=clres.stdout)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -164,6 +174,10 @@ def test_preset_n_and_ew(preset_args, clres, start_time=time.time(),
|
|||||||
screen.error(open(clres.stdout.name).read(), crash=False)
|
screen.error(open(clres.stdout.name).read(), crash=False)
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
except OSError as e:
|
||||||
|
# if test launch failed due to OSError - skip test
|
||||||
|
pytest.skip(e)
|
||||||
|
|
||||||
proc.kill()
|
proc.kill()
|
||||||
|
|
||||||
|
|
||||||
@@ -201,6 +215,7 @@ def test_preset_n_and_ew_and_onnx(preset_args, clres, start_time=time.time(),
|
|||||||
|
|
||||||
print(str(run_cmd))
|
print(str(run_cmd))
|
||||||
|
|
||||||
|
try:
|
||||||
proc = subprocess.Popen(run_cmd, stdout=clres.stdout, stderr=clres.stdout)
|
proc = subprocess.Popen(run_cmd, stdout=clres.stdout, stderr=clres.stdout)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -231,4 +246,8 @@ def test_preset_n_and_ew_and_onnx(preset_args, clres, start_time=time.time(),
|
|||||||
screen.error(open(clres.stdout.name).read(), crash=False)
|
screen.error(open(clres.stdout.name).read(), crash=False)
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
except OSError as e:
|
||||||
|
# if test launch failed due to OSError - skip test
|
||||||
|
pytest.skip(e)
|
||||||
|
|
||||||
proc.kill()
|
proc.kill()
|
||||||
|
|||||||
Reference in New Issue
Block a user