-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
93 changed files
with
5,430 additions
and
1,147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: integration-test-local | ||
on: [push] | ||
concurrency: transfer-test | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
SKYPLANE_USAGE_STATS_ENABLED: 0 | ||
jobs: | ||
integration: | ||
if: ${{ always() }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 8 | ||
matrix: | ||
pairs: | ||
# AWS | ||
- aws:us-east-1 local | ||
- local aws:us-east-2 | ||
# GCP | ||
- gcp:us-central1-a local | ||
- local gcp:us-east1-a | ||
# Azure | ||
- azure:westus local | ||
- local azure:westus | ||
timeout-minutes: 40 | ||
env: | ||
STRATEGY_UUID: itest-${{ github.run_id }}-${{ github.run_attempt }}-${{ strategy.job-index }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "poetry" | ||
- name: Set Poetry config | ||
run: | | ||
poetry config virtualenvs.in-project false | ||
poetry config virtualenvs.path ~/.virtualenvs | ||
- name: Install Dependencies | ||
run: poetry install -E aws -E azure -E gcp | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
- id: 'auth' | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
credentials_json: '${{ secrets.GCP_CREDENTIALS_JSON }}' | ||
- name: Log into Azure | ||
uses: azure/login@v1 | ||
with: | ||
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}' | ||
- name: Skyplane init | ||
run: | | ||
poetry run skyplane config set gcp_service_account_name ${{ env.STRATEGY_UUID }} | ||
poetry run skyplane config set native_cmd_enabled false | ||
cat ~/.skyplane/config | ||
poetry run skyplane init -y --disable-config-cloudflare | ||
poetry run skyplane config set usage_stats false | ||
- name: Single small file test | ||
run: poetry run python tests/integration/cp_local.py ${{ matrix.pairs }} --n-files 1 --file-size-mb 32 | ||
- name: 128 small files test | ||
run: poetry run python tests/integration/cp_local.py ${{ matrix.pairs }} --n-files 128 --file-size-mb 1 | ||
- name: Single large file test | ||
run: poetry run python tests/integration/cp_local.py ${{ matrix.pairs }} --n-files 1 --file-size-mb 2000 | ||
- name: Cleanup GCP service account | ||
if: always() | ||
run: gcloud iam service-accounts delete ${{ env.STRATEGY_UUID }}@${{ secrets.GCP_PROJECT_ID }}.iam.gserviceaccount.com | ||
deprovision: | ||
runs-on: ubuntu-latest | ||
if: ${{ always() }} | ||
needs: [integration] | ||
env: | ||
STRATEGY_UUID: itest-d-${{ github.run_id }}-${{ github.run_attempt }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "poetry" | ||
- name: Set Poetry config | ||
run: | | ||
poetry config virtualenvs.in-project false | ||
poetry config virtualenvs.path ~/.virtualenvs | ||
- name: Install dependencies | ||
run: poetry install -E aws -E azure -E gcp | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
- id: 'auth' | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
credentials_json: '${{ secrets.GCP_CREDENTIALS_JSON }}' | ||
- name: Skyplane init | ||
run: | | ||
poetry run skyplane config set gcp_service_account_name ${{ env.STRATEGY_UUID }} | ||
poetry run skyplane init -y --disable-config-azure --disable-config-cloudflare | ||
poetry run skyplane config set usage_stats false | ||
- name: Deprovision | ||
run: poetry run skyplane deprovision --all | ||
- name: Delete matching S3 buckets | ||
run: | | ||
for pattern in "test-skyplane-" "skyplane-integration-" "integrationus-east-1-"; do | ||
aws s3api list-buckets --query "Buckets[?starts_with(Name, \`${pattern}\`) == \`true\`].Name" --output text | tr '\t' '\n' | while read bucket; do aws s3 rb "s3://$bucket" --force; done | ||
done | ||
- name: Cleanup GCP service account | ||
if: always() | ||
run: gcloud iam service-accounts delete --quiet ${{ env.STRATEGY_UUID }}@${{ secrets.GCP_PROJECT_ID }}.iam.gserviceaccount.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
name: integration-test-multiple-sizes | ||
on: [push] | ||
concurrency: transfer-test | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} | ||
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} | ||
SKYPLANE_USAGE_STATS_ENABLED: 0 | ||
jobs: | ||
integration: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
pairs: | ||
# AWS to AWS | ||
- aws:us-east-1 aws:us-east-1 --multipart | ||
- aws:us-east-2 aws:us-west-2 --multipart | ||
# GCP to GCP | ||
- gcp:us-central1-a gcp:us-central1-a --multipart | ||
- gcp:us-west1-a gcp:us-east1-a --multipart | ||
# Azure to Azure | ||
- azure:westus azure:westus --multipart | ||
- azure:eastus azure:westus --multipart | ||
# cross cloud tests | ||
- aws:us-west-1 gcp:us-west2-a --multipart | ||
- gcp:us-west2-a aws:us-west-1 --multipart | ||
- aws:us-west-1 azure:westus --multipart | ||
- azure:westus aws:us-west-1 --multipart | ||
- gcp:us-west2-a azure:westus --multipart | ||
- azure:westus gcp:us-west2-a --multipart | ||
timeout-minutes: 40 | ||
env: | ||
STRATEGY_UUID: itest-${{ github.run_id }}-${{ github.run_attempt }}-${{ strategy.job-index }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "poetry" | ||
- name: Set Poetry config | ||
run: | | ||
poetry config virtualenvs.in-project false | ||
poetry config virtualenvs.path ~/.virtualenvs | ||
- name: Install Dependencies | ||
run: poetry install -E aws -E azure -E gcp | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
- id: 'auth' | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
credentials_json: '${{ secrets.GCP_CREDENTIALS_JSON }}' | ||
- name: Log into Azure | ||
uses: azure/login@v1 | ||
with: | ||
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}' | ||
- name: Skyplane init | ||
run: | | ||
poetry run skyplane config set gcp_service_account_name ${{ env.STRATEGY_UUID }} | ||
poetry run skyplane config set native_cmd_enabled false | ||
cat ~/.skyplane/config | ||
poetry run skyplane init -y | ||
poetry run skyplane config set usage_stats false | ||
- name: Single small file test | ||
run: poetry run python tests/integration/cp.py ${{ matrix.pairs }} --n-files 1 --file-size-mb 32 | ||
- name: 128 small files test | ||
run: poetry run python tests/integration/cp.py ${{ matrix.pairs }} --n-files 128 --file-size-mb 1 | ||
- name: Single large file test | ||
run: poetry run python tests/integration/cp.py ${{ matrix.pairs }} --n-files 1 --file-size-mb 2000 | ||
- name: Cleanup GCP service account | ||
if: always() | ||
run: gcloud iam service-accounts delete ${{ env.STRATEGY_UUID }}@${{ secrets.GCP_PROJECT_ID }}.iam.gserviceaccount.com | ||
deprovision: | ||
runs-on: ubuntu-latest | ||
if: ${{ always() }} | ||
needs: [integration] | ||
env: | ||
STRATEGY_UUID: itest-d-${{ github.run_id }}-${{ github.run_attempt }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "poetry" | ||
- name: Install dependencies | ||
run: poetry install -E aws -E azure -E gcp | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
- id: 'auth' | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
credentials_json: '${{ secrets.GCP_CREDENTIALS_JSON }}' | ||
- name: Skyplane init | ||
run: | | ||
poetry run skyplane config set gcp_service_account_name ${{ env.STRATEGY_UUID }} | ||
poetry run skyplane init -y --disable-config-azure | ||
poetry run skyplane config set usage_stats false | ||
- name: Deprovision | ||
run: poetry run skyplane deprovision | ||
- name: Delete matching S3 buckets | ||
run: | | ||
for pattern in "test-skyplane-" "skyplane-integration-" "integrationus-east-1-"; do | ||
aws s3api list-buckets --query "Buckets[?starts_with(Name, \`${pattern}\`) == \`true\`].Name" --output text | tr '\t' '\n' | while read bucket; do aws s3 rb "s3://$bucket" --force; done | ||
done | ||
- name: Cleanup GCP service account | ||
if: always() | ||
run: gcloud iam service-accounts delete --quiet ${{ env.STRATEGY_UUID }}@${{ secrets.GCP_PROJECT_ID }}.iam.gserviceaccount.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.