Keep same-named Cargo integration test results separate #3367
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
2 participants
Due date
No due date set.
Reference
leonida/mandy!3367
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3367"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in #3312 as
TEST-RED-GREEN-CARGO-TARGET-IDENTITY.What and why
Two Cargo integration targets named
smokecan both report a test namedshared. The current checker usessmoke::sharedfor both, so a later pass can overwrite an earlier failure and produce a falsered then green.Use Cargo’s compiler-artifact metadata to identify each integration target by its workspace-relative package and target name. Keep the existing unit-test and doctest labels. This touches the same parser as #3307, which handles interrupted targets.
Tested
717b90233, where the report loses the failing crate. It passes with this change.green fails.python3 -I tests/test_red_green.pyran 46 tests, with 45 passes and one Windows-only skip. The clean-room scan andgit diff --checkpassed.GPUs tested: n/a.
AI-assisted with OpenAI Codex (GPT-6 family).
Ran natively on Windows 11 (Python 3.11), head
bc00d02dcmerged into currentmain(fba6f09ce, clean merge).No findings. This covers the Windows-only part your run skipped.
python -I tests/test_red_green.py, mergescripts/red_green.pyfrommain, PR's teststest_same_named_cargo_integration_targets_keep_separate_resultsWindows paths (measured). The label comes from
Path(manifest_path).parent.relative_to(tree / "d3d12"). Withcargo metadataon this checkout, all 8 integration test targets resolve under the workspace. A drive letter or folder name in a different case still resolves (C:vsc:,D3D12vsd3d12). A\?\verbatim manifest path doesn't, and falls back to the oldname-hashlabel without an error. Cargo doesn't report paths that way here, so that's only a note.Read, not run: the artifact scan stops at the first
Running/Doc-testsline, and the switch to--message-format=json-render-diagnosticsstill leaves the rendered errors and theRunninglines as text, soCARGO_ERRORandUNITkeep matching.Not checked: a full
red_green.pyrun against a real PR with two same-named integration targets (there are none in the workspace today), Python 3.12+.GPUs tested: n/a (Python tests only).
AI-assisted: yes (Claude Code).
Merge check while Forgejo Actions is off: the PR's own tests pass locally on its merge with main
529ba2a219(head judged:06e1a175d5), the old code fails the new test (so the test covers the change),check_no_game_data.pyclean, and a separate read-only judge (Claude Opus 5.5) accepted it. Main moved only by #3369 (2 unrelated files) before this merge; the server's update merge was checked to give the same tree as the tested change merged on it.