From dfebe9ba481b23c6fb33947d842fbdf49b097f28 Mon Sep 17 00:00:00 2001 From: Pulumi Bot Date: Mon, 16 Mar 2026 13:04:44 +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 | 4 ++-- .github/workflows/claude.yml | 8 ++++---- .github/workflows/license.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/prerequisites.yml | 6 +++--- .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 3 ++- .github/workflows/verify-release.yml | 4 ++-- Makefile | 8 +++++--- 12 files changed, 26 insertions(+), 21 deletions(-) diff --git a/.config/mise.test.toml b/.config/mise.test.toml index 7176fabfb..a97f5ffaf 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 76a87a108..78e5b60a1 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 ff88989c5..e66959353 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 c97b0f8e4..5bf75bcd4 100644 --- a/.github/workflows/build_sdk.yml +++ b/.github/workflows/build_sdk.yml @@ -75,13 +75,13 @@ 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 - name: Setup Go Cache if: matrix.language == 'go' || contains(matrix.language, 'go') - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6 + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 with: cache-dependency-path: | provider/*.sum diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index e09fbdfe0..6c109c1b4 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 17c3d9dc0..737a8d296 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -55,7 +55,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 180b68cca..865ba1d72 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -62,7 +62,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/prerequisites.yml b/.github/workflows/prerequisites.yml index dcc204d04..f27cfaaec 100644 --- a/.github/workflows/prerequisites.yml +++ b/.github/workflows/prerequisites.yml @@ -81,12 +81,12 @@ 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 - name: Setup Go Cache - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6 + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 with: cache-dependency-path: | provider/*.sum @@ -124,7 +124,7 @@ jobs: SIGNING_PASSWORD: ${{ steps.esc-secrets.outputs.JAVA_SIGNING_PASSWORD }} SLACK_WEBHOOK_URL: ${{ steps.esc-secrets.outputs.SLACK_WEBHOOK_URL }} - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 + uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 env: CODECOV_TOKEN: ${{ steps.esc-secrets.outputs.CODECOV_TOKEN }} - if: inputs.is_pr diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c4e89150..6fe710885 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -73,7 +73,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 @@ -169,7 +169,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 fd82120d7..007ba9680 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 --" AWS_REGION: us-west-2 DOTNET_VERSION: 6.x @@ -76,7 +77,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 diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 703664577..8980f2609 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -80,11 +80,11 @@ 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 - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6 + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6 with: cache-dependency-path: | provider/*.sum diff --git a/Makefile b/Makefile index b8db51da1..bfdcc8a70 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ CODEGEN := pulumi-gen-$(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 := 0 @@ -246,13 +248,13 @@ bin/$(PROVIDER): .make/schema test: export PATH := $(WORKING_DIR)/bin:$(PATH) test: - cd tests && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS) + cd tests && $(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