Skip to content
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

no singleton test #942

Merged
merged 98 commits into from
Jul 29, 2022
Merged
Changes from 1 commit
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
f9fb609
no singleton test
Delaunay Jun 6, 2022
508a6a3
use config to create the storage
Delaunay Jun 6, 2022
6fd116d
Run test to check
Delaunay Jun 6, 2022
d548376
Remove reliance on singleton when possible
Delaunay Jun 7, 2022
fec2323
Forward storage to resolution
Delaunay Jun 7, 2022
be01c47
remove some get_storage imports
Delaunay Jun 8, 2022
5cf114b
-
Delaunay Jun 8, 2022
25f0021
-
Delaunay Jun 8, 2022
2a25e5f
-
Delaunay Jun 8, 2022
236ef3d
Hunt all setup_storage
Delaunay Jun 8, 2022
964d89b
Fix test setup
Delaunay Jun 9, 2022
180e3db
-
Delaunay Jun 9, 2022
0170030
Make sure state sets the config on init
Delaunay Jun 13, 2022
db9ad69
Patch pickleddb setup issue
Delaunay Jun 14, 2022
7968209
Add config reset option
Delaunay Jun 15, 2022
cb38531
-
Delaunay Jun 15, 2022
2aa4086
-
Delaunay Jun 16, 2022
3dd17e1
Make sure exception are printed in debug at the very least, pass stor…
Delaunay Jun 16, 2022
ca0a449
-
Delaunay Jun 16, 2022
2e3895b
Propagate more storage instance
Delaunay Jun 21, 2022
231d2ae
Fix some tests
Delaunay Jun 21, 2022
3151380
-
Delaunay Jun 21, 2022
b660aa2
Use orion state for storage setups
Delaunay Jun 21, 2022
06454c6
-
Delaunay Jun 21, 2022
9901b09
Make sure ExperimentBranchBuilder use a storage
Delaunay Jun 22, 2022
8288c08
-
Delaunay Jun 22, 2022
9c9b3af
-
Delaunay Jun 23, 2022
456e4b6
Merge branch 'develop' of github.com:Epistimio/orion into no_singleton
Delaunay Jun 23, 2022
cc6433e
Resolve some EVC failures
Delaunay Jun 23, 2022
9ee1cbf
-
Delaunay Jun 23, 2022
7bb08c2
Update config to use pickleddb
Delaunay Jul 4, 2022
9cd205b
Make sure storage is using tmp paths
Delaunay Jul 4, 2022
00023d5
Fix missing storage config inside global conf file
Delaunay Jul 5, 2022
6c82d24
-
Delaunay Jul 5, 2022
0431fee
-
Delaunay Jul 6, 2022
d5d785d
-
Delaunay Jul 6, 2022
559f5e6
Fix serving tests
Delaunay Jul 7, 2022
ea93839
Merge branch 'develop' of github.com:Epistimio/orion into no_singleton
Delaunay Jul 7, 2022
53fd6ca
-
Delaunay Jul 7, 2022
656ce7b
-
Delaunay Jul 7, 2022
bec3768
-
Delaunay Jul 7, 2022
c1eace5
-
Delaunay Jul 7, 2022
3a99332
Tweak Plot test setup
Delaunay Jul 11, 2022
10965e1
-
Delaunay Jul 11, 2022
231b564
-
Delaunay Jul 11, 2022
20cfe97
-
Delaunay Jul 11, 2022
b6f729d
Pylint
Delaunay Jul 11, 2022
b1e9f9e
Remove useless function
Delaunay Jul 11, 2022
f2503f3
Remove debug trace
Delaunay Jul 11, 2022
9f57d74
-
Delaunay Jul 11, 2022
f97b316
fix ci
Delaunay Jul 11, 2022
d6b1422
Update serve code
Delaunay Jul 11, 2022
2f5f0f9
Merge branch 'no_singleton' of github.com:Delaunay/orion into no_sing…
Delaunay Jul 11, 2022
5831a98
Update src/orion/core/io/database/pickleddb.py
Delaunay Jul 12, 2022
2b66e92
Update src/orion/core/io/database/pickleddb.py
Delaunay Jul 12, 2022
bad830a
-
Delaunay Jul 12, 2022
4c6c1b8
Improve ExperimentBuilder docstring
bouthilx Jul 12, 2022
a3ddb5a
Use branch_builder's storage
bouthilx Jul 12, 2022
27b9e30
Remove all SingletonAlreadyInstantiatedError exception
Delaunay Jul 12, 2022
da8363d
-
Delaunay Jul 12, 2022
735bb11
Merge branch 'no_singleton' of github.com:Delaunay/orion into no_sing…
Delaunay Jul 12, 2022
d06bbc4
-
Delaunay Jul 12, 2022
152f4f0
-
Delaunay Jul 12, 2022
b3cdd12
Merge branch 'develop' of github.com:Epistimio/orion into no_singleton
Delaunay Jul 13, 2022
ee32040
Add test
Delaunay Jul 13, 2022
c5b9f44
Remove dead code
Delaunay Jul 14, 2022
5425793
Factor out storage from get_or_create_benchmark
Delaunay Jul 15, 2022
ee35552
Merge branch 'develop' of github.com:Epistimio/orion into no_singleton
Delaunay Jul 15, 2022
9770f94
-
Delaunay Jul 15, 2022
d4505a9
-
Delaunay Jul 15, 2022
ed99c02
-
Delaunay Jul 15, 2022
965a895
-
Delaunay Jul 15, 2022
999d7e2
-
Delaunay Jul 15, 2022
8c6b775
-
Delaunay Jul 15, 2022
1fca8a6
-
Delaunay Jul 15, 2022
99db807
-
Delaunay Jul 15, 2022
2a76d1e
-
Delaunay Jul 15, 2022
ec16fd9
-
Delaunay Jul 15, 2022
1129838
-
Delaunay Jul 15, 2022
560f81a
-
Delaunay Jul 18, 2022
677a7b1
-
Delaunay Jul 18, 2022
4dd8e67
-
Delaunay Jul 18, 2022
f9082ad
=
Delaunay Jul 18, 2022
833db87
-
Delaunay Jul 18, 2022
45b2c56
-
Delaunay Jul 28, 2022
f5e1f56
Update src/orion/core/worker/experiment.py
Delaunay Jul 28, 2022
9b85923
Update tests/functional/configuration/test_all_options.py
Delaunay Jul 28, 2022
f5b43d2
Add tests for Configuration.from_dict
Delaunay Jul 28, 2022
1194a43
Merge branch 'no_singleton' of github.com:Delaunay/orion into no_sing…
Delaunay Jul 28, 2022
04efcb2
Update tests/unittests/storage/test_legacy.py
Delaunay Jul 28, 2022
c85d3b7
Update tests/unittests/storage/test_legacy.py
Delaunay Jul 28, 2022
4958421
-
Delaunay Jul 28, 2022
ebdeea7
Merge branch 'no_singleton' of github.com:Delaunay/orion into no_sing…
Delaunay Jul 28, 2022
a36817f
-
Delaunay Jul 28, 2022
9520c85
-
Delaunay Jul 28, 2022
7ce98f8
Add comment for why we need to override setup_storage for certain tests
Delaunay Jul 28, 2022
b2be35c
-
Delaunay Jul 28, 2022
2b9d745
-
Delaunay Jul 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions src/orion/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,31 +233,12 @@ def create_experiment(exp_config=None, trial_config=None, statuses=None):
@contextmanager
def falcon_client(exp_config=None, trial_config=None, statuses=None):
bouthilx marked this conversation as resolved.
Show resolved Hide resolved
"""Context manager for the creation of an ExperimentClient and storage init"""
if exp_config is None:
raise ValueError("Parameter 'exp_config' is missing")
if trial_config is None:
raise ValueError("Parameter 'trial_config' is missing")
if statuses is None:
statuses = ["new", "interrupted", "suspended", "reserved", "completed"]

from orion.client.experiment import ExperimentClient

with OrionState(
experiments=[exp_config],
trials=generate_trials(trial_config, statuses, exp_config),
) as cfg:

experiment = experiment_builder.build(
name=exp_config["name"], storage=cfg.storage_config
)

if cfg.trials:
experiment._id = cfg.trials[0]["experiment"]
cfg, experiment, exp_client = create_experiment(exp_config, trial_config, statuses)
bouthilx marked this conversation as resolved.
Show resolved Hide resolved

exp_client = ExperimentClient(experiment)
falcon_client = testing.TestClient(WebApi(cfg.storage, {}))
falcon_client = testing.TestClient(WebApi(cfg.storage, {}))

yield cfg, experiment, exp_client, falcon_client
yield cfg, experiment, exp_client, falcon_client

exp_client.close()

Expand Down