Skip to content

fix: upgrade workflows, example modules, and test harnesses#2277

Open
matttrach wants to merge 1 commit into
rancher:mainfrom
matttrach:upgrade-testing
Open

fix: upgrade workflows, example modules, and test harnesses#2277
matttrach wants to merge 1 commit into
rancher:mainfrom
matttrach:upgrade-testing

Conversation

@matttrach
Copy link
Copy Markdown
Collaborator

Description

This change upgrades all workflow actions, the example modules, and the Go packages in the test harness.

Testing

actionlint, e2e test pass
This updates testing and workflows, no change to the product itself.

Not a breaking change.

Signed-off-by: matttrach <matt.trachier@suse.com>
@matttrach matttrach self-assigned this May 29, 2026
Copilot AI review requested due to automatic review settings May 29, 2026 22:40
@matttrach matttrach added the internal/ignore Tells release automation to ignore this PR, it isn't going through the normal release process. label May 29, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refreshes the CI/CD pipeline and test harness around the Terraform provider. It bumps Go (1.24.5 → 1.26.3), upgrades terratest to v1.0.0 (renaming Get*/*E calls to their Context variants and SshAgentSSHAgent), updates the AWS SDK and other transitive deps, refreshes the example modules to newer chart/cert-manager versions and the tar install method, and significantly hardens the workflows (least-privilege permissions, SHA-pinned actions, extracted github-script logic into reusable JS files, split release-please into release-only and PR-only jobs, added timeouts and concurrency).

Changes:

  • Bump test-harness Go module deps and adopt t.Context() + *Context*E terratest APIs.
  • Rework release.yml into release-please-release / release-please-pr / wait-for-e2e and extract several github-script blocks into .github/workflows/scripts/*.js.
  • Refresh example modules (cert-manager 1.20.2, helm provider ≥3.1.1, rancher/aws/rancher2 3.1.4, tar install method, generated admin password) and the cleanup.sh Route 53 sweep.

Reviewed changes

Copilot reviewed 39 out of 41 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/util.go, test/{one,three,production}/basic_test.go, test/config/config.go Switch to terratest *Context* APIs and renamed SSHAgent/UniqueID.
test/go.mod, test/go.sum Bump terratest, AWS SDK, and transitive deps; bump go directive to 1.26.3.
test/.golangci.yml New v2 golangci config for the test module.
run_tests.sh Drop -d/dirty mode, simplify TEST_DIR detection, always run cleanup.
GNUmakefile, README.md, flake.nix, flake.lock Add lint-tests/lint-workflows, update Go version docs, refresh nix shell packages.
release-please-config.json, .goreleaser.yml Bump to v15, switch to draft-based release flow.
examples/use-cases/{one,three,production}/{main,versions}.tf Newer chart/provider versions, lowercased domains, tar install method, generated admin password.
cleanup.sh Add Route 53 record sweep step.
.github/workflows/.yml, .github/workflows/scripts/.js Add explicit permissions/timeouts, SHA-pin actions, extract reusable github-script logic, split release-please jobs.
.github/pull_request_template.md, .github/instructions/workflows.instructions.md Doc/template tweaks.

export ACME_SERVER_URL="https://acme-v02.api.letsencrypt.org/directory"
export RANCHER_INSECURE="false"
./run_tests.sh -t ${{matrix.test_name}} -d
./run_tests.sh -t "$TEST_NAME" -d
Comment thread GNUmakefile
cd .github/workflows/scripts && \
while read -r file; do node --check "$$file"; done <<<"$$(find . -type f \( -name "*.js" \))"

.PHONY: fmt lint build install generate test testacc dt et clean lint-workflows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal/ignore Tells release automation to ignore this PR, it isn't going through the normal release process.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants