You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Done when: Per capability, a golden dataset from the worked examples and decision tables (ID, capability, legacy source, input, expected output, edge case, rule covered, endpoint, comparison method, tolerance) goes into the package as test fixtures; money, dates, status codes, IDs and counts compare exactly, and formatting drift is reported apart from business drift; expected outputs say whether they come from the rules or from real legacy runs
While reviewing the forward-engineering pipeline on develop, there are two issues in P4-11 that directly affect teams validating parity of their modernized build:
Line 81 hardcodes: "expected": {"outcome": outcome, "literals": literals(outcome), "values": []}.
Although NAME_KINDS and kind_of() classify money, date, count, status, and id, they are only applied to input (_fields(given)), never to expected outputs.
As a result, any rule or decision-table row whose outcome checks a calculated amount, balance, count, date, or record state without a quoted string literal produces "literals": [] and "values": [].
When both expected.literals and expected.values are empty, compare_case() returns "unchecked".
compare() computes "equivalent": counts[BUSINESS] == 0 and counts[MISSING] == 0 and exits 0 even if most or all cases in a capability's dataset were "unchecked".
Suggested changes
Extract/retain structured expected field-value pairs for worked examples and decision-table outcomes (e.g. in src/reframe/reconcile/decide.py / src/reframe/design/golden.py) and populate expected["values"] with typed {field, value, kind} entries.
Update golden_compare.py so "unchecked" cases do not silently yield equivalent: True / exit 0 (e.g., fail or require an explicit flag when unchecked cases remain, and distinguish verified equivalence from unchecked coverage).
Add unit tests covering non-empty expected["values"] and non-zero exit / non-equivalent status when cases are "unchecked".
Every point in the review is fixed in #499, which is waiting for your review: see its table for each point and the fix. CardDemo's example output will show the changes after its next design round. Prepared with AI assistance.
Activity
sknampally commentedon Nov 27, 2026
Done: delivered in #456, and part of release 1.0.0 (https://github.com/CodeStrata/reframe/releases/tag/v1.0.0).
sknampally commentedon Nov 28, 2026
Forward-Engineering Review Feedback (on
develop)While reviewing the forward-engineering pipeline on
develop, there are two issues inP4-11that directly affect teams validating parity of their modernized build:expected["values"]is always empty insrc/reframe/design/golden.py"expected": {"outcome": outcome, "literals": literals(outcome), "values": []}.NAME_KINDSandkind_of()classifymoney,date,count,status, andid, they are only applied toinput(_fields(given)), never to expected outputs."literals": []and"values": [].golden/compare.pypasses (exit 0) when cases are"unchecked"insrc/reframe/design/golden_compare.pyexpected.literalsandexpected.valuesare empty,compare_case()returns"unchecked".compare()computes"equivalent": counts[BUSINESS] == 0 and counts[MISSING] == 0and exits0even if most or all cases in a capability's dataset were"unchecked".Suggested changes
src/reframe/reconcile/decide.py/src/reframe/design/golden.py) and populateexpected["values"]with typed{field, value, kind}entries.golden_compare.pyso"unchecked"cases do not silently yieldequivalent: True/ exit0(e.g., fail or require an explicit flag when unchecked cases remain, and distinguish verified equivalence from unchecked coverage).expected["values"]and non-zero exit / non-equivalent status when cases are"unchecked".sknampally commentedon Nov 29, 2026
Every point in the review is fixed in #499, which is waiting for your review: see its table for each point and the fix. CardDemo's example output will show the changes after its next design round. Prepared with AI assistance.
sknampally commentedon Nov 29, 2026
Done: the review's fixes merged in #499.