Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

ci: example 10's answers must match the pure-Python reference, not only exit cleanly - #13

Merged
tae898 merged 1 commit into
mainfrom
ci/12-example10-answer-check
Sep 29, 2026
Merged

tae898 merged 1 commit into
mainfrom
ci/12-example10-answer-check

Conversation

@tae898

@tae898 tae898 commented Sep 29, 2026

Copy link
Copy Markdown

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 the name: <t>s, rows=N, hash=H lines both runs print and prints one ok/DIFF line per query.
  • docs/development/ci-setup.md: one paragraph on the check.

How it was verified

  • The script on this morning's two local runs of example 10 (stackoverflow-tiny, CI's arguments, engine de966e79c5): 10 of 10 queries agree, exit 0. With one hash altered: DIFF asker_answerer_pairs, exit 1.
  • The step itself runs in this PR's own CI (the workflow file is in the path filter), on all four platforms.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QHcrtLcfHdr5UhbCdnpM77

…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
@tae898
tae898 merged commit 5c1c578 into main Sep 29, 2026
48 checks passed
@tae898
tae898 deleted the ci/12-example10-answer-check branch September 29, 2026 11:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example 10's CI run checks that its queries run, not what they return

1 participant