Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
a3743d44
Commit
a3743d44
authored
Dec 03, 2018
by
Zejun Lin
Committed by
QuanluZhang
Dec 03, 2018
Browse files
fix ci (#433)
* fix ci * expand time range * expand time range
parent
c550bbce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
test/naive_test.py
test/naive_test.py
+2
-2
test/sdk_test.py
test/sdk_test.py
+2
-2
No files found.
test/naive_test.py
View file @
a3743d44
...
@@ -46,7 +46,7 @@ def run():
...
@@ -46,7 +46,7 @@ def run():
nnimanager_log_path
=
fetch_nni_log_path
(
EXPERIMENT_URL
)
nnimanager_log_path
=
fetch_nni_log_path
(
EXPERIMENT_URL
)
current_trial
=
0
current_trial
=
0
for
_
in
range
(
6
0
):
for
_
in
range
(
12
0
):
time
.
sleep
(
1
)
time
.
sleep
(
1
)
tuner_status
=
read_last_line
(
'naive_test/tuner_result.txt'
)
tuner_status
=
read_last_line
(
'naive_test/tuner_result.txt'
)
...
@@ -68,7 +68,7 @@ def run():
...
@@ -68,7 +68,7 @@ def run():
current_trial
=
trial
current_trial
=
trial
print
(
'Trial #%d done'
%
trial
)
print
(
'Trial #%d done'
%
trial
)
assert
experiment_status
,
'Failed to finish in
1
min'
assert
experiment_status
,
'Failed to finish in
2
min'
ss1
=
json
.
load
(
open
(
'naive_test/search_space.json'
))
ss1
=
json
.
load
(
open
(
'naive_test/search_space.json'
))
ss2
=
json
.
load
(
open
(
'naive_test/tuner_search_space.json'
))
ss2
=
json
.
load
(
open
(
'naive_test/tuner_search_space.json'
))
...
...
test/sdk_test.py
View file @
a3743d44
...
@@ -61,14 +61,14 @@ def test_builtin_dispatcher(dispatch_type, dispatch_name):
...
@@ -61,14 +61,14 @@ def test_builtin_dispatcher(dispatch_type, dispatch_name):
nnimanager_log_path
=
fetch_nni_log_path
(
EXPERIMENT_URL
)
nnimanager_log_path
=
fetch_nni_log_path
(
EXPERIMENT_URL
)
for
_
in
range
(
1
0
):
for
_
in
range
(
2
0
):
time
.
sleep
(
3
)
time
.
sleep
(
3
)
# check if experiment is done
# check if experiment is done
experiment_status
=
check_experiment_status
(
nnimanager_log_path
)
experiment_status
=
check_experiment_status
(
nnimanager_log_path
)
if
experiment_status
:
if
experiment_status
:
break
break
assert
experiment_status
,
'Failed to finish in
30 sec
'
assert
experiment_status
,
'Failed to finish in
1 min
'
def
run
(
dispatch_type
):
def
run
(
dispatch_type
):
'''test all dispatchers whose type is dispatch_type'''
'''test all dispatchers whose type is dispatch_type'''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment