Fix OpenTofu acceptance jobs (expired hc-install signing key)#5
Fix OpenTofu acceptance jobs (expired hc-install signing key)#5msinhore wants to merge 1 commit into
Conversation
The OpenTofu matrix jobs install tofu but the test framework (terraform-plugin-testing / hc-install) doesn't know about it, so it tries to download Terraform CLI — which currently fails with "openpgp: key expired" (stale HashiCorp release-signing key bundled in hc-install v0.6.3), breaking every PR. Point TF_ACC_TERRAFORM_PATH at the installed tofu binary (with the OpenTofu registry host) so the jobs actually exercise OpenTofu and never hit the broken download path. Also disable the tofu wrapper, which would otherwise shadow the real binary path. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Marco Sinhoreli <msinhore@gmail.com>
|
Please review/merge this first. The OpenTofu acceptance matrix is currently red on every PR in this repo (including #1–#4) due to a pre-existing CI bug — the bundled |
|
TL;DR for reviewers — please merge #5 first. All open PRs in this repo (#1–#4) currently show a red OpenTofu acceptance matrix. This is not caused by those changes — it's a pre-existing CI bug: the bundled hc-install (v0.6.3) tries to download the Terraform CLI and fails with openpgp: key expired (HashiCorp's release-signing key bundled in that version has expired). It breaks the OpenTofu jobs on every PR before any test runs. #5 fixes this by pointing the OpenTofu jobs at the installed tofu binary (TF_ACC_TERRAFORM_PATH) instead of downloading Terraform. With the fix, #5's own matrix is fully green (29/29). Suggested order: Merge #5 (CI-only fix; green). |
What
The OpenTofu matrix jobs install
tofubut the acceptance-test framework (terraform-plugin-testing/hc-install) doesn't know about it, so it tries to download Terraform CLI — which currently fails withopenpgp: key expired(stale HashiCorp release-signing key bundled inhc-install v0.6.3). Every PR fails the whole OpenTofu matrix before any test runs (see PRs #1–#4).This points
TF_ACC_TERRAFORM_PATHat the installedtofubinary (plusTF_ACC_PROVIDER_HOST=registry.opentofu.org), so the jobs actually exercise OpenTofu and never hit the broken download path.tofu_wrapper: falseis set sowhich tofuresolves the real binary.Alternative considered
Bumping
terraform-plugin-testing/hc-install(new signing key) would also unbreak the download — but then the "OpenTofu" jobs would keep silently testing with Terraform latest, which is not what the matrix claims.🤖 Generated with Claude Code