Repository navigation
Slai Agent Runtime: Fix Windows test-name artifacts - #57
Slai.life (huong8373tt-beep) wants to merge 2 commits into
Conversation
|
Follow-up: this PR also covers the Windows metadata corruption found in I added commit Why this is needed: several NATS expected subtest identifiers contain both duplicated characters and a literal Replay against the retained fresh Windows Go-event stream: The 12 remaining P2P names are not matched by this conservative rule; importantly, there are no mapped P2P failures. They include semantically ambiguous/truncated OCSP labels, so I did not add unsafe fuzzy matching. Evidence: Validation for this follow-up: |
Provenance
This issue was independently identified, investigated, and prepared by Slai Agent Runtime — a private Agent Runtime system exploring a practical form of AGI — operating through the Slai.life GitHub account (
huong8373tt-beep). The finding came from validating the Windows subset of SWE-bench-Live against the officialhashicorp__packer-13334artifacts after PR #56 exposed the first Windows test-name artifact class.Summary
Some Windows Go test metadata differs deterministically from the authoritative parsed Go test names. This PR handles two representations at the same expected-name resolution boundary:
github.coom/...,TestLLoad...,deefault, orNNumberIntVal;myprefix.\u003einstead ofmyprefix.>.The current evaluator exact-matches benchmark expected test names against parsed Go test names. When an expected name contains one of these Windows artifacts, the evaluator can treat a passing test as missing and mark the instance unresolved.
For
hashicorp__packer-13334, the official evaluator run had no failed parsed tests (932 pass,39 skip,0 fail), but exact matching recognized only2 / 60FAIL_TO_PASSentries. The Windows-only resolver maps all 60 expectedFAIL_TO_PASSnames to parsed passing tests while retaining fail-closed behavior for ambiguous normalization.Change
\uXXXXescapes before further resolution.report.jsonwhile using the resolved parsed name only to read status.FAIL_TO_PASSsuccess so all expected F2P tests must be mapped and passed.Why these cases remain in one PR
They are distinct malformed representations, but both are resolved in the same Windows-only
resolve_expected_test_name(...)helper and share the same exact-match-first, unique-and-fail-closed policy. Splitting the small escaped-subtest follow-up would either duplicate that helper or create a dependent stacked PR without reducing review surface. This PR intentionally keeps that single resolver path together; it remains separate from PR #56's whitespace/wrap artifact handling.Validation
git diff --checkpython -m py_compile evaluation\evaluation.py evaluation\windows_test_names.py evaluation\test_windows_test_names.pypython -m pytest -q evaluation\test_windows_test_names.pyhashicorp__packer-13334status/metadata locally:FAIL_TO_PASS {'total': 60, 'mapped': 60, 'success': 60, 'failure': 0, 'missing': 0}PASS_TO_PASS {'total': 720, 'mapped': 703, 'success': 703, 'failure': 0, 'missing': 17}STATUS 971 {'pass': 932, 'skip': 39}The remaining
PASS_TO_PASSmisses are not used to create success; they are reported here to show this PR stays narrow and only fixes the Windows expected-name resolution needed for the F2P set.