Skip to content

Commit

Permalink
Config azure
Browse files Browse the repository at this point in the history
  • Loading branch information
parasj committed Sep 10, 2022
1 parent dee337f commit 3814c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/cp.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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}")
Expand All @@ -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}")

Expand Down

0 comments on commit 3814c03

Please sign in to comment.