This repository was archived by the owner on Dec 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,13 @@ def _setup(self):
53
53
self .config .gce_nvme_raid_str )
54
54
self .benchmark_execution_time ['create_drive' ] = time .time () - start_time
55
55
56
+ # Acticate gcloud service
57
+ start_time = time .time ()
58
+ utils .setup_python_path (self .site_packages_dir , self .config .python_path_str )
59
+ utils .active_gcloud_service (self .auth_token_path )
60
+ utils .make_dir_if_not_exist (self .output_root_dir )
61
+ self .benchmark_execution_time ['activate_gcloud_service' ] = time .time () - start_time
62
+
56
63
# Download gcloud auth token and data
57
64
start_time = time .time ()
58
65
utils .download_from_gcs (self .config .get_gcs_downloads ('/data' ))
@@ -65,12 +72,6 @@ def _setup(self):
65
72
self .config .force_update )
66
73
self .benchmark_execution_time ['checkout_repository' ] = time .time () - start_time
67
74
68
- start_time = time .time ()
69
- utils .setup_python_path (self .site_packages_dir , self .config .python_path_str )
70
- utils .active_gcloud_service (self .auth_token_path )
71
- utils .make_dir_if_not_exist (self .output_root_dir )
72
- self .benchmark_execution_time ['activate_gcloud_service' ] = time .time () - start_time
73
-
74
75
self .stream_handler = logging .StreamHandler (sys .stdout )
75
76
self .stream_handler .setFormatter (
76
77
logging .Formatter ('%(asctime)s %(levelname)s: %(message)s' ))
You can’t perform that action at this time.
0 commit comments