Skip to content

test(analytic-registry): skip the registry-wide census under trellis-analytics < 0.4.0 - #544

Merged
dwolfson merged 1 commit into
odpi:mainfrom
dwolfson:fix/rs-w2-1a-census-skip
Nov 7, 2026
Merged

dwolfson merged 1 commit into
odpi:mainfrom
dwolfson:fix/rs-w2-1a-census-skip

Conversation

@dwolfson

@dwolfson dwolfson commented Nov 7, 2026

Copy link
Copy Markdown
Member

Completes the Architect's read-back finding F1 on #539 (RS-W2-1a). Test-only; no code or version change.

#542 scoped the built-in declaration tests to _BUILTINS. It left one census over the whole registry, test_every_registry_entry_is_declared. That census still failed whenever egeria-trellis-analytics 0.3.1 was installed, because 0.3.1's three entry points (context_pack, curation_coverage, curation_coverage_tile) predate declarations.

Change. The registry-wide census now skips when the installed egeria-trellis-analytics is older than 0.4.0, and the skip reason names that version. Otherwise it still fails:

  • for any undeclared entry under 0.4.0 or later, or with no library installed;
  • test_every_builtin_is_declared still fails for any undeclared pyegeria built-in, whatever is installed.

Tests (tests/micro-tests/, Python 3.13, on upstream main eb8ce019):

Environment Passed Skipped
No library 2118 2
egeria-trellis-analytics 0.3.1 2177 2
egeria-trellis-analytics 0.4.0 2178 1
  • No library: the two skips are the library cross-check module and a live-server-only test.
  • 0.3.1: the two skips are the registry census, skipped for 0.3.1, and the live-server-only test.
  • 0.4.0: the only skip is the live-server-only test; the census and the cross-check both run.

Known gap, carried from #539 (commit 20faf78). governed_coverage and ownership_coverage count elements of any type carrying the classification, not only Assets. Their declarations say so ("elements of any type carrying …"). Restricting them to Assets, for example by passing metadataElementTypeName, is a code change and is left for a follow-up.

🤖 Generated with Claude Code

…analytics < 0.4.0

egeria-trellis-analytics 0.3.1 registers entry points that predate
declarations, so the registry-wide census failed whenever it was installed.
test_every_registry_entry_is_declared now skips, naming the installed version,
when egeria-trellis-analytics is older than 0.4.0. It still fails for any
undeclared entry under 0.4.0 or later, or with no library installed, and
test_every_builtin_is_declared still fails for any undeclared pyegeria
built-in in every case.

Micro-tests, Python 3.13: no library 1990 passed / 2 skipped; 0.3.1 2049 / 2;
0.4.0 2050 / 1.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 6bc8553 into odpi:main Nov 7, 2026
6 checks passed
@dwolfson
dwolfson deleted the fix/rs-w2-1a-census-skip branch November 20, 2026 19:14
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