Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: common/py_utils/py_utils/cloud_storage.py

Issue 2331033004: Make cloud_storage_global_lock a python module & import it in py_utils.cloud_storage (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | common/py_utils/py_utils/cloud_storage_global_lock » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/py_utils/py_utils/cloud_storage.py
diff --git a/common/py_utils/py_utils/cloud_storage.py b/common/py_utils/py_utils/cloud_storage.py
index 081b49e035a98c614a1e3ba1146f279dcc0c574b..408fd4d274e38acc7139da8256bdea787c12ede8 100644
--- a/common/py_utils/py_utils/cloud_storage.py
+++ b/common/py_utils/py_utils/cloud_storage.py
@@ -19,6 +19,11 @@ import time
import py_utils
from py_utils import lock
+# Do a no-op import here so that cloud_storage_global_lock dep is picked up
+# by https://cs.chromium.org/chromium/src/build/android/test_runner.pydeps.
+# TODO(nedn, jbudorick): figure out a way to get rid of this ugly hack.
+from py_utils import cloud_storage_global_lock # pylint: disable=unused-import
+
PUBLIC_BUCKET = 'chromium-telemetry'
PARTNER_BUCKET = 'chrome-partner-telemetry'
@@ -221,7 +226,7 @@ def Get(bucket, remote_path, local_path):
_CLOUD_STORAGE_GLOBAL_LOCK = os.path.join(
- os.path.dirname(os.path.abspath(__file__)), 'cloud_storage_global_lock')
+ os.path.dirname(os.path.abspath(__file__)), 'cloud_storage_global_lock.py')
@contextlib.contextmanager
« no previous file with comments | « no previous file | common/py_utils/py_utils/cloud_storage_global_lock » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698