Skip to content

fix(ci): repair type-check and backend/frontend test failures on main#519

Open
will-yuponce-db wants to merge 1 commit into
mainfrom
fix/ci-typecheck-tests-main
Open

fix(ci): repair type-check and backend/frontend test failures on main#519
will-yuponce-db wants to merge 1 commit into
mainfrom
fix/ci-typecheck-tests-main

Conversation

@will-yuponce-db

Copy link
Copy Markdown
Contributor

Summary

The Test Coverage workflow has been failing on main (and therefore on every PR branched from it). Three independent breakages, all introduced by recent merges, were the cause. This PR fixes all three.

1. TypeScript Type Check (TS6133 / TS6192)

  • maturity-panel.tsx: removed unused allPassed local.
  • maturity-levels-settings.tsx: removed the fully-unused Table* import declaration.
  • data-product-details.tsx: removed the unused ReadinessChecklist import.

2. Backend Tests

  • test_trigger_enum_pin.py: the new TriggerType.ON_MATURITY_CHANGE member (added with the maturity feature) was missing from the enum-pin table. Added ("ON_MATURITY_CHANGE", "on_maturity_change").

3. Frontend Tests

  • system-rdf-namespace-labels.test.ts: the "unknown namespace" case still asserted the raw key, but commit dfde85d2 (humanize RDF source labels across UI) intentionally changed the fallback to humanizeRdfFilename(graphKey). Updated the test to assert the humanized fallback (reusing the helper so it stays decoupled from the exact string).

Verification

Run locally against the same checks CI runs:

  • tsc --noEmit → clean (exit 0)
  • vitest run src/lib/system-rdf-namespace-labels.test.ts → 3 passed
  • pytest src/tests/unit/test_trigger_enum_pin.py → 34 passed

This pull request and its description were written by Isaac.

Three independent breakages were turning the Test Coverage workflow red on
main (and on every PR branched from it):

- TypeScript Type Check: drop unused `allPassed` local in maturity-panel,
  the unused Table* import in maturity-levels-settings, and the unused
  ReadinessChecklist import in data-product-details (TS6133/TS6192).
- Backend Tests: pin the new TriggerType.ON_MATURITY_CHANGE wire value in
  test_trigger_enum_pin's expected table.
- Frontend Tests: update system-rdf-namespace-labels test to expect the
  humanized fallback for unknown namespaces, matching the intentional
  change in dfde85d (humanize RDF source labels across UI).

Co-authored-by: Isaac
@will-yuponce-db will-yuponce-db requested a review from a team as a code owner June 11, 2026 17:22
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