Repository navigation
Test anchor hash and label changes and rows from another source - #1516
Conversation
A review of microcosm#1513 at 0997c50 found five changes to _follow_later_repin_report that leave every later-report case passing. An anchor check that reads only the group-by label field lets a hash or dimension label change in a B4923C record set through. The one passing case that adds rows declares ed_fsa with the namespace "ed_fsa.", and both passing cases end at the digest "new". So a helper that builds the namespace from the declared source, accepts only ed_fsa as the source or returns a fixed digest passes every case too. So does a label check that allows only the age/85_plus dimension label, since the relabel case changes no other dimension label. For each B4923C record set, one new case changes its record-set hash and one a dimension label, between two record sets outside the anchors, in the second of three changed fields. A new passing case declares bea with the namespace "bea_nipa.", adds a row whose record set shares the anchors' namespace, and ends at a new digest. The relabel case now also changes an AGI label, as #1343's re-pin did. The helper stays the same, and all 34 later-report cases pass with it. Of 73 changes to the helper, the 68 that #1513 counts and these five, 3 leave every case passing here, against 8 at 0997c50 and 41 at ad67d0b, in both pytest modes. #1513 explains the three that remain: <= in the source check, >= in the key-count check, and a label check that matches the two layout fields exactly. Each case that caught a change at an earlier commit still catches it. At 0997c50 the pin test caught the fixed digest and the age-only label check on the committed reports, and nothing caught the other three. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The relabel case changes an AGI label in record set y, but its group-by label and record-set hash changes listed only record set x. Its comment says the hash covers the label changes, and in #1343's report each relabeled record set changes its group-by label and record-set hash too. The case now lists y in both, and the comment names both changes. All 34 later-report cases still pass. Against the 73 changes to the helper, every case gives the result it gave before, in both pytest modes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged
|
Adds later-report cases for the five changes to
_follow_later_repin_reportthat every case let through at0997c50, the last commit of #1513, whose merge comment lists them. The helper stays the same.What changes
In
packages/microcosm-build/tests/engine_free/us/test_us_esi_premiums.py:beawith the namespacebea_nipa., adds a row inbea_nipa.cy2024.total_wages_salaries, which shares the anchors' namespace outside their record sets, and ends at a new feed digest. Before, the one passing case that adds rows declareded_fsawith the namespaceed_fsa., and both passing cases ended at the digestnew. So a helper that built the namespace from the source name, accepted onlyed_fsaor returned a fixed digest still passed both.age/85_pluslabel before, so a label check that allowed only that dimension label still passed it. As in that re-pin, the two label changes fall in different record sets, and each record set also changes its group-by label and record-set hash.Tests
Under real pytest, with assertion rewriting (as CI runs them) and with
--assert=plain, the later-report tests give these results against changes to the helper, the same in both modes:ad67d0b0997c50ed_fsaas the sourceage/85_plusdimension label#1513 explains the three that remain:
<=in the source check,>=in the key-count check, and a label check that matches the two layout fields exactly. Each case that caught a change at an earlier commit still catches it. The pin test, which follows the committed re-pin reports to the pinned feed, caught two of the five before, and nothing caught the other three. With a fixed digest, #1506's report starts from another feed, and the age-only label check refuses #1343's report, which changes two AGI labels.ruff checkandruff format --checkreport nothing new.🤖 Generated with Claude Code