ci: add consumer contract test against grydlock-oracle-adapter's StubOracle - #61
Merged
knytcomics-ui merged 1 commit intoJul 22, 2026
Conversation
…Oracle Adds .github/workflows/consumer-contract-test.yml: on manual dispatch or a weekly schedule (not every push, to avoid a hard cross-repo CI coupling), checks out grydlock-oracle-adapter at a pinned commit, copies this repo's current scores.json/destinations.json over its vendored src/fixtures/testkit/ copies, and runs a vitest check that StubOracle.getScore() resolves to a finite 0-100 score for every destination with no throw. Documents the pattern, its purpose, and its limitations (only as good as the pinned ref; doesn't track main; only checks shape, not scoring correctness) in README.md, along with how to bump the pin. Closes Gryd-lock#46 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
.github/workflows/consumer-contract-test.yml, triggered by manual dispatch or a weekly schedule (not on every push, to avoid a hard cross-repo CI coupling).grydlock-oracle-adapterat a pinned commit (currently7e5b1b0, the currentmaintip at the time of writing), copies this repo's currentscores.json/destinations.jsonover the adapter's vendoredsrc/fixtures/testkit/copies, and runs avitestcheck assertingStubOracle.getScore()resolves to a finite 0-100 score for every destination with no throw.main; checks shape not scoring correctness), and how to bumpORACLE_ADAPTER_REF.Closes #46