Repository navigation
fix(relinker): reject output files needed as directories - #21078
oneandonlydean merged 1 commit into
Conversation
Reject conflicts between a planned output file and a directory needed by another output during preflight. Writing the executable to a new app0 path previously left converted modules behind before failing. Cover Linux and Windows output in write and dry-run modes with synthetic guest modules.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing in the inspected changes blocks merging; the new preflight rejects file-versus-directory output collisions before writing, and the regression covers dry-run and conversion cases on both output platforms.
What I ran
Reviewed head af1e7a2a6423d243c332d1b433709c2abe082083. I did not run commands or tests; repo_read.py was unavailable as a command in this review interface. I read the prepared description, commits, manifest, diff, and README, plus the changed lines and relevant surrounding code at the pinned head.
Results
| Check | Result | Note |
|---|---|---|
| Code review | passed | Changed logic and regression inspected |
| Build and tests | not run | No local command execution available |
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, test, or runtime checks were performed. The author reports 933 CTests passed on a rebased commit and describes synthetic Linux and Windows cases; these reports were not independently verified. I read all changed lines in core/relinker/main.cpp and core/relinker/relinker/tests/test_output_collisions.py. No changed files were excluded by the manifest; files.json was not available in the prepared bundle.
To get this to a good state
Nothing is required.
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Windows check of head Setup: Windows 11 Pro 23H2 (22631), WinLibs GCC 15.2.0 UCRT r7, Python 3.12, Release relinker-only build. The hosted checks did not build this pull request.
|
What
Reject a conversion when a planned output file is also a directory needed by another output. With bundled modules and
app0as the output filename, the relinker previously wrote the modules underapp0and then failed to write the executable. Preflight now reports the collision before writing.--dry-runreports the same collision.The overlap tool flagged four branches that conflict with
main. I manually compared the shared files in #12678 and #15245 (conversion options) and #17557 and #17558 (hook-table output and test fixtures). The comparison confirmed that the collision check and regression are independent of those changes.Tested
8d2cc51, dry run succeeds and conversion leaves a partial output tree. With the fix, both commands exit with code 2, report the collision, and preserve the original tree.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)