mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 00:45:17 -05:00
ci(compat): fail the build when compat-opentofu drifts from compat-terraform (#2898)
Adds a CI job comparing the resource address lists in the two configs' main.tf files, failing on any unlisted one-sided resource. The 11 resources already only in compat-terraform (Application Auto Scaling, RDS, the CloudWatch alarm, the IAM managed-policy-attach path, IAM tag coverage, and the GuardDuty org feature) are recorded as pre-existing gaps in a new tf-only allowlist rather than ported, so the check also flags an allowlist entry once it stops being one-sided. Allowlists are directional (separate tf-only / otf-only files) so a resource that flips sides -- dropped from one config and re-added to the other under the same address -- is still reported as unreviewed drift instead of silently matching a stale entry from the old side. Closes #2263
This commit is contained in:
1 parent
39b19d1c92
commit
65e1d506cc
6 files changed
+149
-2
No files matched your search
@@ -11,6 +11,9 @@ on:
|
||||
- 'docker/localstack-parity.sh'
|
||||
- 'compatibility-tests/**'
|
||||
- '.github/ci/compat-timing-report.py'
|
||||
- '.github/ci/compat-opentofu-drift-check.py'
|
||||
- '.github/ci/compat-opentofu-allowlist-tf-only.txt'
|
||||
- '.github/ci/compat-opentofu-allowlist-otf-only.txt'
|
||||
- '.github/workflows/compatibility.yml'
|
||||
|
||||
permissions:
|
||||
@@ -85,6 +88,20 @@ jobs:
|
||||
echo "$out" | grep -q "other.example.com" \
|
||||
|| { echo "::error::post-subcommand --endpoint-url flag was not honored over AWS_ENDPOINT_URL"; exit 1; }
|
||||
|
||||
compat-opentofu-drift-check:
|
||||
name: compat / opentofu resource parity
|
||||
runs-on: ubuntu-24.04-arm
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
sparse-checkout: |
|
||||
compatibility-tests
|
||||
.github/ci
|
||||
|
||||
- name: Compare compat-terraform and compat-opentofu resource lists
|
||||
run: python3 .github/ci/compat-opentofu-drift-check.py
|
||||
|
||||
build-native:
|
||||
name: Build native floci image
|
||||
runs-on: ubuntu-24.04-arm
|
||||
|
||||
Reference in new issue
Block a user