Address retry response file review feedback - #10997
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Key diagnostic, warning, and per-attempt cleanup behavior remains insufficiently verified.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 4
New issues introduced by this change (4)
| Severity | Finding |
|---|---|
src/Platform/Microsoft.Testing.Extensions.Retry/RetryOrchestrator.cs — No test exercises this new warning branch. The builder test proves a quoted suffix stays inline,… |
|
src/Platform/Microsoft.Testing.Platform/CommandLine/ResponseFileHelper.cs — The added nested-file tests only exercise FileNotFoundException, so the changed nested… |
|
test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/RetryFailedTestsTests.cs — This assertion runs only after the entire retry session, so it proves eventual cleanup but not the… |
|
test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/ResponseFileHelperTests.cs — This test assumes a fixed relative path is absent. If sensitive-nested-path.rsp is left in the… |
What changed in this PR
Improves retry response-file diagnostics, regeneration, path management, and cleanup verification.
Changes:
- Reports nested response-file failures with redaction.
- Handles quoted prefixes and multiple response files during retries.
- Centralizes generated paths and cleans files after attempts.
| File | Description |
|---|---|
ResponseFileHelper.cs |
Tracks nested-file diagnostic paths. |
RetryArgumentsBuilder.cs |
Centralizes paths and refines quote handling. |
RetryOrchestrator.cs |
Warns on unsafe serialization and cleans files. |
InternalAPI.Unshipped.txt |
Tracks new internal helpers. |
ResponseFileHelperTests.cs |
Tests nested-path reporting and redaction. |
RetryArgumentsBuilderTests.cs |
Tests quoted prefixes and multiple files. |
RetryFailedTestsTests.cs |
Checks generated-file cleanup. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Nested redaction is lost below the first nested response-file level, potentially exposing a sensitive path.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
src/Platform/Microsoft.Testing.Platform/CommandLine/ResponseFileHelper.cs — Redaction is lost below the first nested level. For example, if an outer file contains… |
Issues resolved since last review (4)
| Severity | Finding |
|---|---|
test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/ResponseFileHelperTests.cs — This test assumes a fixed relative path is absent. If sensitive-nested-path.rsp is left in the… View resolved comment |
|
test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/RetryFailedTestsTests.cs — This assertion runs only after the entire retry session, so it proves eventual cleanup but not the… View resolved comment |
|
src/Platform/Microsoft.Testing.Platform/CommandLine/ResponseFileHelper.cs — The added nested-file tests only exercise FileNotFoundException, so the changed nested… View resolved comment |
|
src/Platform/Microsoft.Testing.Extensions.Retry/RetryOrchestrator.cs — No test exercises this new warning branch. The builder test proves a quoted suffix stays inline,… View resolved comment |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation addresses the stated feedback with focused regression coverage and no unresolved issues.
Review tier: Balanced
Findings: None
Issues resolved since last review (1)
| Severity | Finding |
|---|---|
src/Platform/Microsoft.Testing.Platform/CommandLine/ResponseFileHelper.cs — Redaction is lost below the first nested level. For example, if an outer file contains… View resolved comment |

Follow-up to #10963.
Addresses the remaining response-file review feedback: