This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
ci: example 10's answers must match the pure-Python reference, not only exit cleanly - #13
Merged
Merged
Conversation
…ly exit cleanly Example 10 once returned 0 rows for 5 of its 10 queries on every platform (one-way edges in two-way edge types, ArcadeData#8625) and the job stayed green. After a clean ArcadeDB run, the workflow now runs the same arguments on the example's pure-Python backend (--db python_memory) and compares every query's row count and result hash with examples/scripts/compare_query_hashes.py; any difference fails the job. Checked locally on stackoverflow-tiny: all 10 queries agree; with one hash altered the script exits 1 and names the query. Fixes #12 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QHcrtLcfHdr5UhbCdnpM77
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #12.
What changed
.github/workflows/test-python-examples.yml: after example 10 exits cleanly on ArcadeDB, the step runs the same arguments with--db python_memory(the example's pure-Python backend) and fails the job unless both runs report the same row count and result hash for every query. A failing reference run fails the job too.examples/scripts/compare_query_hashes.py: parses thename: <t>s, rows=N, hash=Hlines both runs print and prints oneok/DIFFline per query.docs/development/ci-setup.md: one paragraph on the check.How it was verified
de966e79c5): 10 of 10 queries agree, exit 0. With one hash altered:DIFF asker_answerer_pairs, exit 1.🤖 Generated with Claude Code
https://claude.ai/code/session_01QHcrtLcfHdr5UhbCdnpM77