From 3814c03681a6c2d420547944e28f317157a840af Mon Sep 17 00:00:00 2001 From: Paras Jain Date: Fri, 9 Sep 2022 00:04:01 -0700 Subject: [PATCH] Config azure --- .github/workflows/integration-test.yml | 2 +- tests/integration/cp.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index dc0191f5b..a1961c065 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -72,7 +72,7 @@ jobs: run: | poetry run skyplane config set gcp_service_account_name ${{ env.STRATEGY_UUID }} cat ~/.skyplane/config - poetry run skyplane init -y --disable-config-azure + poetry run skyplane init -y - name: Test run: poetry run python tests/integration/cp.py ${{ matrix.pairs }} - name: Cleanup GCP service account diff --git a/tests/integration/cp.py b/tests/integration/cp.py index 14d5f6afd..01e1c3b55 100644 --- a/tests/integration/cp.py +++ b/tests/integration/cp.py @@ -1,6 +1,7 @@ import argparse import os import tempfile +import time import uuid from skyplane import MB from skyplane.obj_store.object_store_interface import ObjectStoreInterface @@ -14,9 +15,9 @@ def setup_buckets(src_region, dest_region, n_files=1, file_size_mb=1): if src_provider == "azure": src_bucket_name = f"integration{src_zone}/{str(uuid.uuid4()).replace('-', '')}" else: - src_bucket_name = f"skyplaneintegration{src_zone}-{str(uuid.uuid4())[:8]}" + src_bucket_name = f"integration{src_zone}-{str(uuid.uuid4())[:8]}" if dest_provider == "azure": - dest_bucket_name = f"skyplaneintegration{dest_zone}/{str(uuid.uuid4()).replace('-', '')}" + dest_bucket_name = f"integration{dest_zone}/{str(uuid.uuid4()).replace('-', '')}" else: dest_bucket_name = f"skyplane-integration-{dest_zone}-{str(uuid.uuid4())[:8]}" logger.debug(f"creating buckets {src_bucket_name} and {dest_bucket_name}") @@ -31,7 +32,6 @@ def setup_buckets(src_region, dest_region, n_files=1, file_size_mb=1): fpath = tmp.name with open(fpath, "wb+") as f: f.write(os.urandom(int(file_size_mb * MB))) - for i in range(n_files): src_interface.upload_object(fpath, f"{src_prefix}/{i}")