Skip to content

test(analytic-registry): scope the built-in declaration tests to pyegeria's own routines - #542

Merged
dwolfson merged 2 commits into
odpi:mainfrom
dwolfson:fix/rs-w2-1a-builtin-tests
Nov 7, 2026
Merged

dwolfson merged 2 commits into
odpi:mainfrom
dwolfson:fix/rs-w2-1a-builtin-tests

Conversation

@dwolfson

@dwolfson dwolfson commented Nov 7, 2026

Copy link
Copy Markdown
Member

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

Problem. The RS-W2-1a tests read get_analytic_registry(), which also holds entry points from installed packages. With egeria-trellis-analytics installed the micro-tests failed:

  • with 0.3.1, 5 failures: its three routines carry no declaration, and test_calls_cover_the_registry sees 31 names against 28 calls;
  • with 0.4.0, 4 failures: the library's Declaration.out can be a shape name (a str), so f.kind raised AttributeError, and the 31-vs-28 failure remains.

Fix. The checks that read pyegeria's own declaration model now iterate analytic_registry._BUILTINS. That covers test_rs_w2_1a_routine_declarations.py, test_issue_170's every-builtin test and the library cross-check test_declarations_match_library.py. One census over the whole registry stays, test_every_registry_entry_is_declared, and it asserts only that each entry has a declaration.

Tests (tests/micro-tests/, Python 3.13):

  • without the library: 1990 passed, 2 skipped;
  • with egeria-trellis-analytics 0.4.0: 2050 passed, 1 skipped. The library cross-check (60 tests) runs here.

With 0.3.1 installed, the registry-wide census still fails, by design: 0.3.1's three entry points are undeclared.

🤖 Generated with Claude Code

…eria's own routines

The RS-W2-1a tests read get_analytic_registry(), which also holds entry points
from installed packages. With egeria-trellis-analytics installed they failed:
0.3.1's three routines carry no declaration, 0.4.0's declarations are the
library's models (out may be a shape name, so f.kind raised AttributeError),
and test_calls_cover_the_registry saw 31 names against 28 calls.

The checks that read pyegeria's declaration model now iterate _BUILTINS
(test_rs_w2_1a_routine_declarations, test_issue_170's every-builtin test, and
the library cross-check). One registry-wide census stays,
test_every_registry_entry_is_declared, asserting only that each entry has a
declaration.

Architect read-back RS-W2-1a, finding F1.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 4ae1c03 into odpi:main Nov 7, 2026
6 checks passed
dwolfson added a commit that referenced this pull request Nov 7, 2026
Ships #537 (five link methods sent a properties class Egeria lacks),
#538 (population= is the count keyword; scope= deprecated), #539
(declarations for every registered routine), #540 and #541 (client
support and Dr.Egeria commands for Egeria 6.3 report specs,
measurements and dashboards), #542 (built-in declaration tests scoped to
pyegeria's own routines) and #543 (report_spec passed through the
MetadataExpert find methods).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson deleted the fix/rs-w2-1a-builtin-tests 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