Skip to content

test: exempt the unmigrated Teradata graph templates from binding checks - #81

Merged
earthshiner merged 1 commit into
mainfrom
fix/teradata-binding-validate
Oct 21, 2026
Merged

earthshiner merged 1 commit into
mainfrom
fix/teradata-binding-validate

Conversation

@earthshiner

Copy link
Copy Markdown
Collaborator

What

Adds a named UNMIGRATED list to tooling/validation/tests/test_binding_package.py. Two checks skip the templates on it:

  • test_every_template_is_declared_or_caller_rendered
  • test_templates_use_only_jinja_substitution_and_no_product_literals

The list covers modules/observability/05- to 10- and patterns/catalogue-interface/ for the Teradata binding.

Why

validate has failed on main since the #77 merge (run 38559143162) and so fails on every open PR, including #76. The cause is that the graph-lineage and catalogue-interface templates are deliberately unmigrated. modules/observability/README.md ("Graph-lineage facet: not migrated") and PLATFORM_PROFILE.md say no phase renders them and that they are kept unchanged until the port-or-retire decision. The tests that hold the binding to the Jinja rules do not know this, so they report:

  • 07-graph-acl-views.sql.j2 "is rendered by nothing".
  • A {name} format placeholder in 08-catalogue-seed.sql.j2, and colon-named parameters in catalogue-interface/02-lifecycle-dml.sql.j2.

The change makes the exemption explicit and in one place. It does not change any template and does not port anything. Delete the entries when the templates are ported or retired, and the checks cover them again.

How to Test

  1. Run python -m unittest discover -s tooling/validation/tests.
  2. Expect 255 tests and OK (verified locally).
  3. Check that validate is green on this PR.

Checklist

  • Commit messages follow discipline
  • No secrets committed
  • Tests pass (or tests added)
  • Documentation updated where needed (the comment on UNMIGRATED points at the README)
  • .gitignore updated if new file types introduced (none)

🤖 Generated with Claude Code

The graph-lineage and catalogue-interface templates were written for the
old flat context and are kept unchanged until the port-or-retire decision
(modules/observability/README.md). No phase renders them and they still use
the old placeholder styles, so the dead-template and Jinja-only checks failed
and turned validate red on main.

Exempt them through one named UNMIGRATED list. Remove the entries when the
templates are ported or retired.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@earthshiner
earthshiner merged commit fc73049 into main Oct 21, 2026
1 check failed
NathanG-TD added a commit that referenced this pull request Oct 22, 2026
Run locally against the Teradata test system: 60 passed, none failed or
skipped. It clears the two package failures #81 fixed and records, for
the first time on Teradata, the rendering and engine tests of the 2.0.0
metadata contract (#76) and the README-section package test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant