Wave icon indicating copy to clipboard operation
Wave copied to clipboard

Attempt all independent MSVC output rollbacks after one restoration fails

Open LunaStev opened this issue 3 weeks ago • 0 comments

Problem

The MSVC output-set rollback returns at its first restore/remove failure. Other already-published files remain new even when their independent backups could be restored.

Reproduction and evidence

Audited canonical master 69a67c6e0fb700f37ee6114f5a66d37ee13771a5 (0.0.1-alpha-dev). Matching checkout-built compiler/std were used for compiler probes on Linux amd64 with Rust 1.89.0 and LLVM 21.1.8. Artifact inspection, mocked/projection checks and foreign-target object emission are identified below and are not native execution on those operating systems.

Executed the unchanged src/link_outputs.rs logic through an isolated fs adapter. Prepare old DLL/LIB/PDB bytes and new staged files. Inject failure both publishing the PDB and restoring its backup, while allowing DLL/LIB restoration. commit returns the expected recovery error but DLL and LIB remain new. Backups are retained. This is a host filesystem fault-injection test, not native Windows linking.

Scope

Continue every independent rollback action, preserve unrestored backups and report the collected recovery failures.

Starting points: src/link_outputs.rs:206.

Completion criteria

  • [ ] An injected PDB restore failure does not prevent DLL/LIB restoration.
  • [ ] Multiple failures retain their recoverable backups and useful paths.
  • [ ] Successful publication and ordinary single-failure restoration still pass.

This is a bounded newcomer task with the starting point and focused negative/positive checks above.

Related: #536. Related broad trackers or completed implementations are context, not claims that their entire scope is unfinished.

LunaStev avatar Nov 12 '26 12:11 LunaStev