Repository navigation
chore(baselines): add the four corpus files upstream added (#2473) - #2487
Conversation
A fresh fetch of the compatibility corpus adds four files with no parser-output baseline. Regenerated with the procedure the drift issue names (fetch-compat-test-files.sh, then regen-corpus-baselines.sh). The manifest diff is exactly four added lines and nothing else: no changed output hash on any existing entry, no removals. Each new file was checked against Python beancount 3: - double-entry-generator cib_debit and ibkr, vrischmann fortuneo-bourse: both engines accept the ledger with no errors, and every posting (date, flag, payee, narration, account, position, price, tags, links) agrees between rledger query and bean-query. - vrischmann ccm-courant is an importer output fixture using the root "Actifs" with no name_assets option and one-posting transactions. Both engines reject it; the postings still agree. beancount reports "Invalid account name" for each posting, rledger reports E1001 (never opened), E3001 and E3004 for the same lines. cst-corpus.manifest is left alone, as in #2339: the regen script does not write it. Closes #2473 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Review follow-up for #2473. tarioch/beancern, LaunchPlatform/beancount-extract and iocoop/beancount return 404 and contributed no corpus files (no manifest entry under their directories). Failing to clone on every run, they kept `.fetch-failures` at 3, and corpus-baseline-drift.py drops the whole "removed" group whenever any clone failed, so the weekly drift report could never say that upstream deleted a file. With them gone a fresh fetch records 0 failures, the corpus is the same 740 files, and `corpus-baseline-drift.py --dry-run` still reports no drift. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
Review (adversarial pass)Found and fixed in 15ceda5: three dead repositories hid every "file removed" report. After merge.
Second pass: the "removed" path now reports a deletionI deleted one manifested corpus file locally (
So before this change a real upstream deletion was invisible to the weekly job, and now it is reported. I restored the file and the marker afterwards. Cross-PR. This PR touches only Third pass
|
What
Adds the four compatibility-corpus files that upstream added to
tests/baselines/parser-corpus.manifest. They had no parser-output coverage since they appeared.double-entry-generator/example_cib_debit_example-cib_debit-output.beancountdouble-entry-generator/example_ibkr_example-ibkr-output.beancountvrischmann-importers/synthetic_ccm-courant_current_output.beancountvrischmann-importers/synthetic_fortuneo-bourse_expected.beancountHow
I followed the procedure in the issue:
fetch-compat-test-files.sh(740 files; 3 clone failures, all repos that no longer exist: tarioch/beancern, LaunchPlatform/beancount-extract, iocoop/beancount), thenregen-corpus-baselines.sh. The diff adds exactly four lines. No existing entry changed its output hash and none was removed.scripts/corpus-baseline-drift.py --dry-runnow reportsno drift.scripts/fetch-compat-test-files.shdrops the three dead repositories. While they were listed,.fetch-failureswas never 0, so the drift job suppressed every "file removed" entry (see the review comment).cst-corpus.manifestis not changed, as in #2339. The regen script does not write it, because that baseline belongs to the parallel CST parser (#1262).Review of each new entry against Python beancount 3
For the posting comparison, I ran
SELECT date, flag, payee, narration, account, position, price, tags, linkson both engines and normalized whitespace. One cib_debit difference is onlyORDER BY positiontie order between postings in different currencies on the same date. The rows match as a multiset.ccm-courantis an importer-output fixture. It uses the rootActifswithoutoption "name_assets", and its transactions have one posting each. Both engines reject it, but they classify the errors differently. beancount reportsInvalid account name: Actifs:CCM:Courant25 times, from its parser. rledger reports E1001 "never opened" 25 times plus E3001/E3004 for the unbalanced single-posting transactions. rledger does report E1005 "Invalid account name" when such an account isopened, but this file never opens it.Tested
STRICT_BASELINE=1 cargo test -p rustledger-parser --test corpus_baseline: 4 passed.parser_output_matches_baselinefail and name that file. So the new entries are enforced and not inert.Closes #2473
🤖 Generated with Claude Code
https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr