Repository navigation
test(baseline): record the parser output #2874 changed - #2884
Merged
Merged
Conversation
#2874 keeps one-letter transaction and posting flags out of `ParseResult::currency_occurrences`, which the parser corpus manifest hashes. On fava/tests_data_example.beancount two `P` flags leave the list: the header flag of `2012-12-17 P "Payee" "Narration"` (bytes 2263..2264) and the posting flag of `P Expenses:Food` (bytes 2444..2445). Every other field of the canonical payload is byte-identical, the source hash is unchanged, and the CST manifest does not move. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
✅ 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! |
This was referenced Nov 6, 2026
Merged
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.
What changed
One row of
tests/baselines/parser-corpus.manifest: the output hash oftests/compatibility/files/fava/tests_data_example.beancountmoves from173f2e55d47debd5...tof284725b7f6844b1.... Its source hash (8b6a98acc06e3c82...) is unchanged. No other row and no CST manifest row moves.Why
#2874 keeps one-letter transaction and posting flags out of
ParseResult::currency_occurrences, and the parser corpus manifest hashes that field. #2874 merged with "Corpus output baseline / Parser baseline (strict)" failing on this file ("Parser-output drift on 1 file(s) with unchanged source"). That job is not a required check, so main now carries the drift.I checked that the change is exactly the intended one:
tests/data/example.beancount(fava commit9ec4975a, blake38b6a98ac..., matching the manifest). The local corpus had an older version, so I used the CI copy.__baseline_canonical_payloadfor that file at refactor: route currency-name checks through the lexer's rule #2874's parent (fe781a93aa4) and at its merge (f4fcdc40f43). The two hash to CI's expected and current values (173f2e55d47debd5,f284725b7f6844b1).directives,options,includes,plugins,comments,errors,warnings,account_occurrencesandhas_leading_bomare byte-identical.currency_occurrencesgoes from 48 entries to 46. The two that leave are thePheader flag of2012-12-17 P "Payee" "Narration"(bytes 2263..2264) and thePposting flag ofP Expenses:Food(bytes 2444..2445). Nothing else in the list changes.BASELINE_UPDATE=1. Among files whose source matches the committed one, this fava row is the only one that drifts. The CST row for the file is unchanged. I kept only this row and discarded the rest; those other rows differ only because the local corpus copy differs from CI's.How to test
With the CI corpus in place:
This passes locally with the CI copy of the fava file.
🤖 Generated with Claude Code