From de3424d4104ca7a6885571170fc45702fa2f2185 Mon Sep 17 00:00:00 2001 From: Pulumi Bot Date: Mon, 16 Mar 2026 13:04:49 +0000 Subject: [PATCH] [internal] Update GitHub Actions workflow files --- .config/mise.test.toml | 3 ++- .config/mise.toml | 1 + .github/workflows/build_provider.yml | 2 +- .github/workflows/build_sdk.yml | 2 +- .github/workflows/claude.yml | 8 ++++---- .github/workflows/license.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/main-post-build.yml | 2 +- .github/workflows/prerequisites.yml | 2 +- .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 10 +++++----- .github/workflows/upgrade-bridge.yml | 2 +- .github/workflows/upgrade-provider.yml | 2 +- .github/workflows/verify-release.yml | 2 +- Makefile | 8 +++++--- 15 files changed, 28 insertions(+), 24 deletions(-) diff --git a/.config/mise.test.toml b/.config/mise.test.toml index 7176fabf..a97f5ffa 100644 --- a/.config/mise.test.toml +++ b/.config/mise.test.toml @@ -1,3 +1,4 @@ # WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt -# Overrides for test workflows -- currently empty. +[tools] +"aqua:gotestyourself/gotestsum" = "1.12.0" diff --git a/.config/mise.toml b/.config/mise.toml index 76a87a10..78e5b60a 100644 --- a/.config/mise.toml +++ b/.config/mise.toml @@ -19,6 +19,7 @@ java = 'corretto-11' "github:pulumi/pulumi" = "{{ env.PULUMI_VERSION_MISE }}" "github:pulumi/pulumictl" = '0.0.50' "github:pulumi/schema-tools" = "0.6.0" +"go:github.com/pulumi/upgrade-provider" = "main" "aqua:gradle/gradle-distributions" = '7.6.6' golangci-lint = "1.64.8" # See note about about overrides if you need to customize this. "npm:yarn" = "1.22.22" diff --git a/.github/workflows/build_provider.yml b/.github/workflows/build_provider.yml index f76b45c7..57da158f 100644 --- a/.github/workflows/build_provider.yml +++ b/.github/workflows/build_provider.yml @@ -67,7 +67,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} # only saving the cache in the prerequisites job cache_save: false diff --git a/.github/workflows/build_sdk.yml b/.github/workflows/build_sdk.yml index f67786be..49c4b91b 100644 --- a/.github/workflows/build_sdk.yml +++ b/.github/workflows/build_sdk.yml @@ -66,7 +66,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} # only saving the cache in the prerequisites job cache_save: false diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index e09fbdfe..6c109c1b 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -60,14 +60,14 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ secrets.GITHUB_TOKEN }} # only saving the cache in the prerequisites job cache_save: false - name: Set git identity run: |- - git config user.name "claude[bot]" - git config user.email "bot@pulumi.com" + git config --global user.name "claude[bot]" + git config --global user.email "bot@pulumi.com" shell: bash - name: Prepare local workspace # this runs install_plugins and upstream @@ -120,7 +120,7 @@ jobs: } claude_args: | --max-turns 50 - --allowedTools "Skill,Edit,MultiEdit,Write,Read,Glob,Grep,LS,Bash(upgrade-provider *),Bash(./scripts/upstream.sh *),Bash(git *),Bash(GIT_EDITOR=* git *),Bash(make *),Bash(gh *),Bash(mkdir *),Bash(go install *),Bash(go mod tidy *),Bash(ls *),Bash(test *),Bash(cat *),Bash(pwd),Bash(head *),Bash(tail *),Bash(tee *),Bash(rg *),Bash(grep *),Bash(sed *),Bash(awk *),Bash(find *)" + --allowedTools "Skill,Edit,MultiEdit,Write,Read,Glob,Grep,LS,Bash(upgrade-provider *),Bash(./scripts/upstream.sh *),Bash(git *),Bash(GIT_EDITOR=* git *),Bash(make *),Bash(gh *),Bash(mkdir *),Bash(go mod tidy *),Bash(ls *),Bash(test *),Bash(cat *),Bash(pwd),Bash(head *),Bash(tail *),Bash(tee *),Bash(rg *),Bash(grep *),Bash(sed *),Bash(awk *),Bash(find *)" # If the claude action fails you don't get any logs on what claude was doing # Uploading the artifact allows you to download the artifact from the UI - name: Upload Claude review output on failure diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 59fbb28a..c2555e71 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -46,7 +46,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} # only saving the cache in the prerequisites job cache_save: false diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 926a3ebc..322805c1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -46,7 +46,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} cache_save: false # A different job handles caching our tools. - name: prepare workspace diff --git a/.github/workflows/main-post-build.yml b/.github/workflows/main-post-build.yml index e9896d52..00a53ec7 100644 --- a/.github/workflows/main-post-build.yml +++ b/.github/workflows/main-post-build.yml @@ -60,7 +60,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} # only saving the cache in the prerequisites job cache_save: false diff --git a/.github/workflows/prerequisites.yml b/.github/workflows/prerequisites.yml index 8a3fc32e..04ff266d 100644 --- a/.github/workflows/prerequisites.yml +++ b/.github/workflows/prerequisites.yml @@ -72,7 +72,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} # only saving the cache in the prerequisites job cache_save: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4b3bcadd..ea06f610 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -64,7 +64,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} cache_save: false - name: Configure AWS Credentials @@ -160,7 +160,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} # only saving the cache in the prerequisites job cache_save: false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3df5fb41..3525ecd6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,7 @@ on: env: PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }} MISE_ENV: test + GO_TEST_EXEC: "gotestsum --format github-actions --" PULUMI_API: https://api.pulumi-staging.io PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. @@ -61,7 +62,7 @@ jobs: MISE_ENV: test MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} # also save this cache since we are using a different mise env. cache_save: true @@ -98,18 +99,17 @@ jobs: run: make install_${{ matrix.language}}_sdk - name: Run provider tests if: matrix.testTarget == 'local' - working-directory: provider - run: go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . + run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover" test_provider env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run tests if: matrix.testTarget == 'local' - run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 4 . + run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover -skip TestPulumiExamples" test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run pulumi/examples tests if: matrix.testTarget == 'pulumiExamples' - run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -run TestPulumiExamples -parallel 4 . + run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover -run TestPulumiExamples" test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} strategy: diff --git a/.github/workflows/upgrade-bridge.yml b/.github/workflows/upgrade-bridge.yml index a565be98..215b6695 100644 --- a/.github/workflows/upgrade-bridge.yml +++ b/.github/workflows/upgrade-bridge.yml @@ -97,7 +97,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} # only saving the cache in the prerequisites job cache_save: false diff --git a/.github/workflows/upgrade-provider.yml b/.github/workflows/upgrade-provider.yml index c124750c..2d88ad45 100644 --- a/.github/workflows/upgrade-provider.yml +++ b/.github/workflows/upgrade-provider.yml @@ -64,7 +64,7 @@ jobs: env: MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ steps.app-auth.outputs.token }} # only saving the cache in the prerequisites job cache_save: false diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 7424b615..99046a6d 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -71,7 +71,7 @@ jobs: - name: Setup mise uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 with: - version: 2026.2.15 + version: 2026.3.7 github_token: ${{ secrets.GITHUB_TOKEN }} cache_save: false - name: Setup Go Cache diff --git a/Makefile b/Makefile index 885d2b4c..6696eb21 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ CODEGEN := pulumi-tfgen-$(PACK) PROVIDER := pulumi-resource-$(PACK) TESTPARALLELISM := 10 GOTESTARGS := "" +TESTTAGS ?= all +GO_TEST_EXEC ?= go test WORKING_DIR := $(shell pwd) PULUMI_PROVIDER_BUILD_PARALLELISM ?= PULUMI_CONVERT := 1 @@ -252,13 +254,13 @@ bin/$(PROVIDER): .make/schema test: export PATH := $(WORKING_DIR)/bin:$(PATH) test: - cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS) + cd examples && $(GO_TEST_EXEC) -v -tags=$(TESTTAGS) -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS) .PHONY: test -test_provider_cmd = cd provider && go test -v -short \ +test_provider_cmd = cd provider && $(GO_TEST_EXEC) -v -short \ -coverprofile="coverage.txt" \ -coverpkg="./...,github.com/hashicorp/terraform-provider-..." \ -parallel $(TESTPARALLELISM) \ - ./... + . test_provider: $(call test_provider_cmd) .PHONY: test_provider