Fixing up the test-infra-destroy commands
MODIFY
.github/workflows/cron.yml
.github/workflows/cron.yml
@@ -253,7 +253,6 @@ jobs:
python-version:
- "3.7"
test-infra-destroy:
- if: ${{ always() }} && github.event.pull_request.head.repo.full_name == github.repository
name: test-infra-destroy
needs: kubernetes
runs-on: ${{ matrix.platform }}

MODIFY
.github/workflows/run-tests-command.yml
.github/workflows/run-tests-command.yml
@@ -262,7 +262,8 @@ jobs:
python-version:
- "3.7"
test-infra-destroy:
- if: ${{ always() }} && github.event.pull_request.head.repo.full_name == github.repository
+ if: github.event_name == 'repository_dispatch' || github.event.pull_request.head.repo.full_name
+ == github.repository
name: test-infra-destroy
needs: kubernetes
runs-on: ${{ matrix.platform }}

MODIFY
.github/workflows/smoke-test-cli-command.yml
.github/workflows/smoke-test-cli-command.yml
@@ -211,7 +211,6 @@ jobs:
python-version:
- "3.7"
test-infra-destroy:
- if: ${{ always() }} && github.event.pull_request.head.repo.full_name == github.repository
name: test-infra-destroy
needs: kubernetes
runs-on: ${{ matrix.platform }}
@@ -376,7 +375,7 @@ jobs:
- ubuntu-latest
python-version:
- "3.7"
-name: Smoke Specific Version of CLI
+name: Smoke Test Specific Version of CLI
"on":
repository_dispatch:
types:

ADD
.github/workflows/smoke-test-provider-command.yml
+env:
+ ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
+ ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
+ ARM_ENVIRONMENT: public
+ ARM_LOCATION: westus
+ ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
+ ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
+ AWS_ACCESS_KEY_ID: ' ${{ secrets.AWS_ACCESS_KEY_ID }}'
+ AWS_REGION: us-west-2
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ CLOUDSDK_CORE_DISABLE_PROMPTS: 1
+ DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
+ GOOGLE_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
+ GOOGLE_PROJECT: ${{ secrets.GCP_PROJECT_ID }}
+ GOOGLE_REGION: us-central1
+ GOOGLE_ZONE: us-central1-a
+ PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }}
+ PROVIDER_TESTS_TAG: ${{ github.event.client_payload.ref }}
+ PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
+ PULUMI_API: https://api.pulumi-staging.io
+ PULUMI_TEST_OWNER: moolumi
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
+jobs:
+ kubernetes:
+ name: smoke-test-kubernetes-provider
+ needs: test-infra-setup
+ runs-on: ${{ matrix.platform }}
+ steps:
+ - name: Install DotNet ${{ matrix.dotnet-version }}
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{matrix.dotnet-version}}
+ - name: Install Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{matrix.node-version}}
+ - name: Install Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{matrix.python-version}}
+ - name: Install Go ${{ matrix.go-version }}
+ uses: actions/setup-go@v1
+ with:
+ go-version: ${{matrix.go-version}}
+ - name: Install Python Deps
+ run: |-
+ pip3 install virtualenv==20.0.23
+ pip3 install pipenv
+ - name: Install aws-iam-authenticator
+ run: |-
+ curl -o aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.13.7/2019-06-11/bin/linux/amd64/aws-iam-authenticator
+ chmod +x ./aws-iam-authenticator
+ sudo mv aws-iam-authenticator /usr/local/bin
+ - name: Install Kubectl
+ run: |-
+ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
+ chmod +x ./kubectl
+ sudo mv kubectl /usr/local/bin
+ - name: Install + Configure Helm
+ run: |-
+ curl -o- -L https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
+ helm init -c
+ helm repo add bitnami https://charts.bitnami.com/bitnami
+ - name: Configure GCP credentials
+ uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
+ with:
+ project_id: ${{ env.GOOGLE_PROJECT }}
+ service_account_email: ${{ secrets.GCP_SA_EMAIL }}
+ service_account_key: ${{ secrets.GCP_SA_KEY }}
+ version: 285.0.0
+ - name: Login to Google Cloud Registry
+ run: gcloud --quiet auth configure-docker
+ - name: Configure AWS Credentials
+ uses: aws-actions/configure-aws-credentials@v1
+ with:
+ aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ aws-region: ${{ env.AWS_REGION }}
+ aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ role-duration-seconds: 3600
+ role-session-name: examples@githubActions
+ role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
+ - uses: actions/checkout@v2
+ - name: Checkout Scripts Repo
+ uses: actions/checkout@v2
+ with:
+ path: ci-scripts
+ repository: pulumi/scripts
+ - name: Install Specific Pulumi CLI
+ uses: pulumi/action-install-pulumi-cli@v1.0.1
+ with:
+ pulumi-version: ${{ env.PULUMI_VERSION }}
+ - run: echo "Currently Pulumi $(pulumi version) is installed"
+ - name: Install Go Dependencies
+ run: make ensure
+ - name: Setup Config
+ run: |-
+ mkdir -p "$HOME/.kube/"
+ pulumi stack -s "${{ env.PULUMI_TEST_OWNER }}/${{ github.sha }}-${{ github.run_number }}" -C misc/scripts/testinfra/ output --show-secrets kubeconfig >~/.kube/config
+ - name: Run Kubernetes Smoke Tests
+ run: make specific_tag_set TagSet=Kubernetes
+ strategy:
+ fail-fast: false
+ matrix:
+ dotnet-version:
+ - 3.1.301
+ go-version:
+ - 1.15.x
+ node-version:
+ - 13.x
+ platform:
+ - ubuntu-latest
+ python-version:
+ - "3.7"
+ providers:
+ name: smoke-test-providers
+ runs-on: ${{ matrix.platform }}
+ steps:
+ - name: Install DotNet ${{ matrix.dotnet-version }}
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{matrix.dotnet-version}}
+ - name: Install Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{matrix.node-version}}
+ - name: Install Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{matrix.python-version}}
+ - name: Install Go ${{ matrix.go-version }}
+ uses: actions/setup-go@v1
+ with:
+ go-version: ${{matrix.go-version}}
+ - name: Install Python Deps
+ run: |-
+ pip3 install virtualenv==20.0.23
+ pip3 install pipenv
+ - name: Install aws-iam-authenticator
+ run: |-
+ curl -o aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.13.7/2019-06-11/bin/linux/amd64/aws-iam-authenticator
+ chmod +x ./aws-iam-authenticator
+ sudo mv aws-iam-authenticator /usr/local/bin
+ - name: Install Kubectl
+ run: |-
+ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
+ chmod +x ./kubectl
+ sudo mv kubectl /usr/local/bin
+ - name: Install + Configure Helm
+ run: |-
+ curl -o- -L https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
+ helm init -c
+ helm repo add bitnami https://charts.bitnami.com/bitnami
+ - name: Configure GCP credentials
+ uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
+ with:
+ project_id: ${{ env.GOOGLE_PROJECT }}
+ service_account_email: ${{ secrets.GCP_SA_EMAIL }}
+ service_account_key: ${{ secrets.GCP_SA_KEY }}
+ version: 285.0.0
+ - name: Login to Google Cloud Registry
+ run: gcloud --quiet auth configure-docker
+ - name: Configure AWS Credentials
+ uses: aws-actions/configure-aws-credentials@v1
+ with:
+ aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ aws-region: ${{ env.AWS_REGION }}
+ aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ role-duration-seconds: 3600
+ role-session-name: examples@githubActions
+ role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
+ - uses: actions/checkout@v2
+ - name: Checkout Scripts Repo
+ uses: actions/checkout@v2
+ with:
+ path: ci-scripts
+ repository: pulumi/scripts
+ - name: Install Specific Pulumi CLI
+ uses: pulumi/action-install-pulumi-cli@v1.0.1
+ with:
+ pulumi-version: ${{ env.PULUMI_VERSION }}
+ - run: echo "Currently Pulumi $(pulumi version) is installed"
+ - name: Install Testing Dependencies
+ run: make ensure
+ - name: Running ${{ env.PROVIDER_TESTS_TAG }}${{ matrix.languages }} Smoke Tests
+ run: make specific_tag_set TestSet=${{ matrix.languages }} TagSet=${{ env.PROVIDER_TESTS_TAG
+ }}
+ strategy:
+ fail-fast: false
+ matrix:
+ dotnet-version:
+ - 3.1.301
+ go-version:
+ - 1.15.x
+ languages:
+ - Cs
+ - Js
+ - Ts
+ - Py
+ - Fs
+ node-version:
+ - 13.x
+ platform:
+ - ubuntu-latest
+ python-version:
+ - "3.7"
+ test-infra-destroy:
+ name: test-infra-destroy
+ needs: kubernetes
+ runs-on: ${{ matrix.platform }}
+ steps:
+ - name: Install DotNet ${{ matrix.dotnet-version }}
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{matrix.dotnet-version}}
+ - name: Install Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{matrix.node-version}}
+ - name: Install Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{matrix.python-version}}
+ - name: Install Go ${{ matrix.go-version }}
+ uses: actions/setup-go@v1
+ with:
+ go-version: ${{matrix.go-version}}
+ - name: Install Python Deps
+ run: |-
+ pip3 install virtualenv==20.0.23
+ pip3 install pipenv
+ - name: Install aws-iam-authenticator
+ run: |-
+ curl -o aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.13.7/2019-06-11/bin/linux/amd64/aws-iam-authenticator
+ chmod +x ./aws-iam-authenticator
+ sudo mv aws-iam-authenticator /usr/local/bin
+ - name: Install Kubectl
+ run: |-
+ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
+ chmod +x ./kubectl
+ sudo mv kubectl /usr/local/bin
+ - name: Install + Configure Helm
+ run: |-
+ curl -o- -L https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
+ helm init -c
+ helm repo add bitnami https://charts.bitnami.com/bitnami
+ - name: Configure GCP credentials
+ uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
+ with:
+ project_id: ${{ env.GOOGLE_PROJECT }}
+ service_account_email: ${{ secrets.GCP_SA_EMAIL }}
+ service_account_key: ${{ secrets.GCP_SA_KEY }}
+ version: 285.0.0
+ - name: Login to Google Cloud Registry
+ run: gcloud --quiet auth configure-docker
+ - name: Configure AWS Credentials
+ uses: aws-actions/configure-aws-credentials@v1
+ with:
+ aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ aws-region: ${{ env.AWS_REGION }}
+ aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ role-duration-seconds: 3600
+ role-session-name: examples@githubActions
+ role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
+ - uses: actions/checkout@v2
+ - name: Checkout Scripts Repo
+ uses: actions/checkout@v2
+ with:
+ path: ci-scripts
+ repository: pulumi/scripts
+ - name: Install Latest Stable Pulumi CLI
+ uses: pulumi/action-install-pulumi-cli@v1.0.1
+ - run: echo "Currently Pulumi $(pulumi version) is installed"
+ - name: Destroy test infra
+ run: make destroy_test_infra StackName="${{ env.PULUMI_TEST_OWNER }}/${{ github.sha
+ }}-${{ github.run_number }}"
+ strategy:
+ fail-fast: false
+ matrix:
+ dotnet-version:
+ - 3.1.301
+ go-version:
+ - 1.15.x
+ node-version:
+ - 13.x
+ platform:
+ - ubuntu-latest
+ python-version:
+ - "3.7"
+ test-infra-setup:
+ name: test-infra-setup
+ runs-on: ${{ matrix.platform }}
+ steps:
+ - name: Install DotNet ${{ matrix.dotnet-version }}
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{matrix.dotnet-version}}
+ - name: Install Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{matrix.node-version}}
+ - name: Install Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{matrix.python-version}}
+ - name: Install Go ${{ matrix.go-version }}
+ uses: actions/setup-go@v1
+ with:
+ go-version: ${{matrix.go-version}}
+ - name: Install Python Deps
+ run: |-
+ pip3 install virtualenv==20.0.23
+ pip3 install pipenv
+ - name: Install aws-iam-authenticator
+ run: |-
+ curl -o aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.13.7/2019-06-11/bin/linux/amd64/aws-iam-authenticator
+ chmod +x ./aws-iam-authenticator
+ sudo mv aws-iam-authenticator /usr/local/bin
+ - name: Install Kubectl
+ run: |-
+ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
+ chmod +x ./kubectl
+ sudo mv kubectl /usr/local/bin
+ - name: Install + Configure Helm
+ run: |-
+ curl -o- -L https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
+ helm init -c
+ helm repo add bitnami https://charts.bitnami.com/bitnami
+ - name: Configure GCP credentials
+ uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
+ with:
+ project_id: ${{ env.GOOGLE_PROJECT }}
+ service_account_email: ${{ secrets.GCP_SA_EMAIL }}
+ service_account_key: ${{ secrets.GCP_SA_KEY }}
+ version: 285.0.0
+ - name: Login to Google Cloud Registry
+ run: gcloud --quiet auth configure-docker
+ - name: Configure AWS Credentials
+ uses: aws-actions/configure-aws-credentials@v1
+ with:
+ aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ aws-region: ${{ env.AWS_REGION }}
+ aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ role-duration-seconds: 3600
+ role-session-name: examples@githubActions
+ role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
+ - uses: actions/checkout@v2
+ - name: Checkout Scripts Repo
+ uses: actions/checkout@v2
+ with:
+ path: ci-scripts
+ repository: pulumi/scripts
+ - name: Install Latest Stable Pulumi CLI
+ uses: pulumi/action-install-pulumi-cli@v1.0.1
+ - run: echo "Currently Pulumi $(pulumi version) is installed"
+ - name: Create Test Infrastructure
+ run: make setup_test_infra StackName="${{ env.PULUMI_TEST_OWNER }}/${{ github.sha
+ }}-${{ github.run_number }}"
+ strategy:
+ fail-fast: false
+ matrix:
+ dotnet-version:
+ - 3.1.301
+ go-version:
+ - 1.15.x
+ node-version:
+ - 13.x
+ platform:
+ - ubuntu-latest
+ python-version:
+ - "3.7"
+name: Smoke Test Latest Provider Release
+"on":
+ repository_dispatch:
+ types:
+ - smoke-test-cli

Fixing up the test-infra-destroy commands