test(cloudformation): run the schema coverage ratchet in CI (#7282)

This commit is contained in:
Oleksandr Nikolaichuk authored and GitHub committed 2026-11-02 07:37:06 -04:00
1 parent 5d8546a1ff
commit 42bc856258
9 files changed
+643 -72

No files matched your search

+11 -2
View File
@@ -1,5 +1,6 @@
name: CloudFormation Schema Drift
# Checks the vendored CloudFormation property types against the resource schemas AWS publishes.
# Checks the vendored CloudFormation property types, and the schema surface CfnSchemaCoverageTest
# reads, against the resource schemas AWS publishes.
# They come from AWS's live schema archive rather than from a pinned dependency, so, as with the
# IAM data in iam-data-drift.yml, this check can fail without anything in the repository having
# changed, and it runs on its own, never as part of a job that ordinary changes trigger.
@@ -19,6 +20,9 @@ on:
- 'src/main/resources/aws/cfn-property-types.json'
- 'tools/aws/regen_cfn_property_types.py'
- 'tools/aws/test_regen_cfn_property_types.py'
- 'src/test/resources/cloudformation/schema-surface.tsv'
- 'tools/aws/regen_cfn_schema_surface.py'
- 'tools/aws/test_regen_cfn_schema_surface.py'
- '.github/workflows/cfn-schema-drift.yml'
schedule:
# Mondays at 06:10 UTC, beside the IAM data drift check.
@@ -34,7 +38,7 @@ concurrency:
jobs:
cfn-schema-drift:
name: Vendored CloudFormation property types still match AWS
name: Vendored CloudFormation property types and schema surface still match AWS
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
@@ -48,3 +52,8 @@ jobs:
# No dependency install: the generator is stdlib-only.
- name: Check the vendored property types still match AWS's schemas
run: make cfn-property-types-verify
# Runs even when the property types check failed, so one run reports both drifts.
- name: Check the committed schema surface still matches AWS's schemas
if: always()
run: make cfn-schema-surface-verify