carlos / platform Public

ci-opentofu-tests

Runs the OpenTofu module tests in hosted CI, beside make test in .amadan/ci.d/10-gate, and locally with make tofu-test.

  • What runs. .amadan/opentofu.sh walks infra/ for every *.tftest.hcl (35 files today), initialises each module once and runs each file as its own tofu test -filter, eight at a time. A file passes only with its own "pass" line and "Success! N passed, 0 failed." for N > 0, so a filter that matches nothing or a skipped run fails.
  • No AWS. Mock providers only; AWS credential and profile variables unset, shared config files /dev/null, instance metadata off. The tests run in a scratch copy of infra/, so nothing is written there while the census reads it.
  • Pins. OpenTofu 1.13.9 (1.13 is the first to accept instance keys in override_data targets, which region-host's tests use), hashicorp/aws 6.73.0, hashicorp/archive 2.8.1, sha256-checked from our CI mirror; no public registry at run time.
  • Go tests that shell out to tofu (TestRegionGroupUserDataOpenTofu, media's TestModuleRenderIsCurrent) now fail in CI when tofu is missing instead of skipping; locally they still skip.
  • One test fix. mailer_group.tftest.hcl's AMI override drops most_recent, which OpenTofu 1.13 refuses to override. Census unit approved by Astra on #280; re-pinned on the merge of main.
  • AGENTS.md notes the suite and its pins.

🤖 Generated with Claude Code

Human

OpenTofu module tests in hosted CI: pinned tofu 1.13.9 and providers from our mirror, beside make test

Commits 6
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity