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
{{ message }}
Repository navigation
Validate artifact contracts after an expected nonzero program exit #712
bugA problem that causes incorrect behavior or crashes.ciGitHub CI or CIgood first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
In classify_program in tools/run_tests.py, the expected-nonzero success branch returns before validate_compiled_artifact. A matching exit code can therefore pass a case whose assembly/object requirements fail.
Reproduction
Run this focused unit reproduction from the repository root:
Save as /tmp/repro.py; run PYTHONPATH=. python3 /tmp/repro.py. The mock represents a failing artifact requirement.
Tested at 01955d715dda275de993948037091140bb859174 on Fedora Linux 43, x86_64, with Python 3.14.
Actual: PASS (expected exit=42) followed by 3 0, indicating a pass and no validator call. Expected: failure classification 0 and one validator call. Setting both exit values to 0 already produces that expected result.
Completion criteria
Validate artifact requirements before accepting either expected-zero or expected-nonzero execution.
Retain the runner's distinct success classifications and actual/expected exit diagnostics.
Add a unit regression for the skipped branch and an integration case with a real missing assembly marker.
Keep matching-exit cases with valid artifacts passing.
Compile-only object-presence checking in #514 is separate.
changed the title [-][Bug]: Validate artifact contracts after an expected nonzero program exit[/-][+]Validate artifact contracts after an expected nonzero program exit[/+]on Sep 24, 2026
bugA problem that causes incorrect behavior or crashes.ciGitHub CI or CIgood first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity
[-][Bug]: Validate artifact contracts after an expected nonzero program exit[/-][+]Validate artifact contracts after an expected nonzero program exit[/+]