Repository navigation
Report the reasoning operations this build implements and fail them NOT_IMPLEMENTED - #4
Merged
Merged
Conversation
The test checker followed only type-driven keywords, so the request schema's per-operation rules and the capabilities' per-operation limit rules were never applied to the documents the store writes. It now evaluates allOf, if/then, const, contains with minContains/maxContains, and properties, required and enum in untyped subschemas.
…NTED Refresh the OpenMetadata contract schemas and examples to the protocol that adds the capabilities' operations list, per-operation limit rules and the NOT_IMPLEMENTED problem code. Capabilities list REFRESH, CHECK, EXPLAIN, RESULTS and QUERY as NOT_IMPLEMENTED with the reason, and only the limits the store enforces (maxQueuedJobs, maxDiskBytes); readiness stays the memory-budget answer. Jobs fail at capture, and results and queries answer 501, with NOT_IMPLEMENTED instead of NOT_READY with a message prefix, so a client stops retrying work this build cannot do. A test checks that the store cannot claim any operation AVAILABLE without the limits it needs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uses the reasoning contract from open-metadata/OpenMetadata#35502, which must merge first; the copied schemas come from its commit
1728d000, andSOURCE.txtwill be updated to the merge commit before this merges.REFRESH,CHECK,EXPLAIN,RESULTSandQUERYasNOT_IMPLEMENTED, with reasons. Limits list only what the store enforces (maxQueuedJobs,maxDiskBytes); readiness stays the memory-budget answer. Per the protocol, an operation becomesAVAILABLEonly once it runs and every limit it needs is enforced.capture, and results/query answer501, with problem codeNOT_IMPLEMENTEDinstead ofNOT_READYwith a message prefix, so OpenMetadata stops retrying.NOT_READYstays for disabled, memory budget,BUSY, stopping and unmeasurable-disk cases.Contractchecker now appliesallOf,if/then,constandcontainswith min/maxContains, so the request schema's per-operation rules (OpenMetadata#35199, now in the copied schema) and the capabilities limit rules are checked against what the store writes. A new test flips each operation toAVAILABLEand requires a limits violation.smoke-test.shchecks the operations list,NOT_IMPLEMENTEDatcaptureand the 501 code; the README is updated.Tests
mvn -B -ntp verify: 241 unit + 11 integration tests pass.