Skip to content

Secondary TRAPI compliance#131

Merged
tokebe merged 2 commits intomainfrom
secondary-compliance
Feb 23, 2026
Merged

Secondary TRAPI compliance#131
tokebe merged 2 commits intomainfrom
secondary-compliance

Conversation

@tokebe
Copy link
Copy Markdown
Contributor

@tokebe tokebe commented Feb 23, 2026

This PR represents my combing through the descriptions within the TRAPI spec and outside it in the implementation guidance, and checking off the last few inconsistencies.

Primarily, this involves a refactor of the Operation system to be able to more thoroughly check and report MetaAttribute support of both QEdges and QNodes.

Additionally, unknown fields on QNodes/QEdges now produce warnings, and the validation methods have been refactored to handle the difference between warnings and errors.

The only thing left out is bypass_cache handling, as it's not particularly feasible as of yet. It's not in keeping nor useful to force a bypass of the Operation cache, and it's unworth dev time in the face of present priorities to implement transpiler/driver-level cache bypass for backend access. So, this will be left to the future.

@tokebe tokebe merged commit d0ac797 into main Feb 23, 2026
4 checks passed
@sentry
Copy link
Copy Markdown

sentry bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 1.11732% with 177 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/retriever/metadata/optable.py 0.00% 116 Missing ⚠️
src/retriever/lookup/lookup.py 0.00% 27 Missing ⚠️
src/retriever/lookup/validate.py 0.00% 24 Missing ⚠️
src/retriever/utils/trapi.py 14.28% 6 Missing ⚠️
src/retriever/lookup/qgx.py 0.00% 4 Missing ⚠️
Files with missing lines Coverage Δ
src/retriever/config/openapi.py 87.50% <ø> (ø)
src/retriever/types/metakg.py 100.00% <100.00%> (ø)
src/retriever/lookup/qgx.py 0.00% <0.00%> (ø)
src/retriever/utils/trapi.py 82.89% <14.28%> (-2.18%) ⬇️
src/retriever/lookup/validate.py 0.00% <0.00%> (ø)
src/retriever/lookup/lookup.py 0.00% <0.00%> (ø)
src/retriever/metadata/optable.py 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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