File tree 4 files changed +10
-9
lines changed
4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 17
17
- name : Set up Python
18
18
uses : actions/setup-python@v4
19
19
with :
20
- python-version : ' 3.11 '
20
+ python-version : ' 3.12 '
21
21
- name : Install dependencies
22
22
# NOTE: grpcio-tools needs to be periodically updated to support later Python versions.
23
23
run : |
Original file line number Diff line number Diff line change 15
15
- name : Set up Python
16
16
uses : actions/setup-python@v4
17
17
with :
18
- python-version : ' 3.11 '
18
+ python-version : ' 3.12 '
19
19
- name : Install dependencies
20
20
# NOTE: grpcio-tools needs to be periodically updated to support later Python versions.
21
21
run : |
Original file line number Diff line number Diff line change 18
18
19
19
import multiprocessing .pool
20
20
import time
21
- from absl import logging
22
21
23
- from vizier ._src .service import constants
22
+ from absl import logging
23
+ # from vizier._src.service import constants
24
24
from vizier ._src .service import vizier_client
25
25
from vizier ._src .service import vizier_server
26
26
from vizier .benchmarks import experimenters
@@ -36,9 +36,7 @@ class PerformanceTest(parameterized.TestCase):
36
36
@classmethod
37
37
def setUpClass (cls ):
38
38
super ().setUpClass ()
39
- cls .server = vizier_server .DefaultVizierServer (
40
- database_url = constants .SQL_MEMORY_URL
41
- )
39
+ cls .server = vizier_server .DefaultVizierServer (database_url = None )
42
40
vizier_client .environment_variables .server_endpoint = cls .server .endpoint
43
41
44
42
@parameterized .parameters (
@@ -61,7 +59,7 @@ def fn(client_id: int):
61
59
62
60
client = vizier_client .create_or_load_study (
63
61
owner_id = 'my_username' ,
64
- study_id = self . id (), # Use the testcase name.
62
+ study_id = 'my_study' ,
65
63
study_config = study_config ,
66
64
client_id = str (client_id ),
67
65
)
Original file line number Diff line number Diff line change 22
22
from concurrent import futures
23
23
import datetime
24
24
import time
25
+ from typing import Optional
25
26
26
27
import attr
27
28
import grpc
@@ -48,7 +49,9 @@ class DefaultVizierServer:
48
49
"""
49
50
50
51
_host : str = attr .field (default = 'localhost' )
51
- _database_url : str = attr .field (default = constants .SQL_LOCAL_URL , kw_only = True )
52
+ _database_url : Optional [str ] = attr .field (
53
+ default = constants .SQL_LOCAL_URL , kw_only = True
54
+ )
52
55
_policy_factory : pythia .PolicyFactory = attr .field (
53
56
factory = service_policy_factory_lib .DefaultPolicyFactory , kw_only = True
54
57
)
You can’t perform that action at this time.
0 commit comments