Visitar URL original
fix(ci): probe bean-price with --help, not --version by robcohen · Pull Request #1748 · rustledger/rustledger · GitHub
Skip to content

fix(ci): probe bean-price with --help, not --version - #1748

Merged
robcohen merged 1 commit into
mainfrom
fix/bean-price-version-probe
Jul 10, 2026
Merged

robcohen merged 1 commit into
mainfrom
fix/bean-price-version-probe

Conversation

@robcohen

Copy link
Copy Markdown
Member

One-line fix for the python-gated compat job: bean-price has no --version flag (it prints usage and exits non-zero demanding sources), so the assert step introduced in #1746 fails on every run before any test executes. --help is the exact probe bean_price_compat.rs itself uses (line 31-36). Verified locally: bean-price --help exits 0, bean-price --version exits 2.

My miss — the deep-review agent even flagged that the test uses --help and I wrote --version anyway.

🤖 Generated with Claude Code

bean-price has no --version flag — it prints usage and exits non-zero
demanding sources, so the python-gated job's assert step failed on
every run since #1746 landed. --help is the exact probe
bean_price_compat.rs uses for its own availability gate.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 10, 2026 13:40
@robcohen
robcohen requested a review from a team as a code owner July 10, 2026 13:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the CI “python-gated” compatibility job by probing bean-price with --help (which exits successfully) instead of --version (which exits non-zero), aligning the workflow with the availability probe used by the Rust compat test harness.

Changes:

  • Update the compat workflow’s “assert runnable” step to run bean-price --help instead of bean-price --version.
  • Add inline comments explaining why --help is the correct probe and silence its output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 811
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

@robcohen
robcohen merged commit 14162b7 into main Jul 10, 2026
40 checks passed
@robcohen
robcohen deleted the fix/bean-price-version-probe branch July 10, 2026 14:07
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.

2 participants