Skip to content

tests: evidence-report tests no longer depend on the committed reports' counts (Part of #4863) - #4869

Merged
squid-protocol merged 1 commit into
mainfrom
test/4863-report-tests-data-independent
Oct 11, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
test/4863-report-tests-data-independent

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4863. Unblocks the bot's evidence refresh PR #4867.

What broke. #4864 made the nightly refresh re-measure translation, so its PR #4867 carries the reports as they really are today. Three tests in test_evidence_report.py build their fixtures from the committed reports and asserted facts about the old data:

  • test_a_harness_only_change_keeps_the_last_level_marked_stale asserted exactly 1 CardDemo program at L3. Today COCRDLIC, COMEN01C and CORPT00C are L3 too.
  • test_a_db2_case_with_no_sweep_and_no_ledger_entry_is_not_run assumed LGACUS01 is reached only by its own case. Since 10/09 the front-end case genapp-lgtestc1 LINKs it and has a ledger entry, so it is honestly L2.
  • test_a_linked_program_never_inherits_… assumed genapp-lgacus01 is LGSTSQ's chosen LINKing case. It was only chosen because the other GenApp Db2 cases had no ledger entries yet.

Fix (tests only).

  • The stale test asserts only the case's own stale level (histogram_stale / levels_stale = 1 and the L3+: N (1 awaiting re-check) line).
  • db2_fixture(..., isolate=True) drops every other case's ledger entry, so DB2_CASE is the only Db2 case with a verdict, as those two tests intend.

Checked: the file passes on main's reports (58 passed, 1 skipped) and on #4867's reports (61 passed, 1 skipped; the skip is the advisory currentness check). pr_gates.py --fast 5/5.

After merge, #4867 needs its branch updated (the shepherd does it for a behind, green PR, or gh pr update-branch 4867).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MhEx8PwSow3Pyfg6J4KZ97

…s' counts (Part of #4863)

The stale-level and Db2-ledger tests build their fixtures from the committed
reports and asserted counts of those reports: exactly one CardDemo program at
L3, and lgacus01 / LGSTSQ reached only through the genapp-lgacus01 case. Once
the evidence refresh re-measures the translation (#4864), the reports move
(COCRDLIC / COMEN01C / CORPT00C at L3; genapp-lgtestc1 LINKs LGACUS01 with a
ledger entry), so the bot's refresh PR #4867 failed them. The stale test now
asserts only CASE's stale level; the two Db2 fixtures can isolate DB2_CASE
(every other ledger entry dropped). Passes on main's reports and on #4867's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MhEx8PwSow3Pyfg6J4KZ97
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine testing Unit, integration, and E2E pipeline verification priority: high Core feature broken, but workarounds exist shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 11, 2026 01:13
@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 01:13
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 1f01d61 into main Oct 11, 2026
27 checks passed
@squid-protocol
squid-protocol deleted the test/4863-report-tests-data-independent branch October 11, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine priority: high Core feature broken, but workarounds exist shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant