Skip to content

Bubble up child process errors in IndexCreationTool#6261

Draft
pl4nty wants to merge 1 commit into
microsoft:masterfrom
devicie:bubble-IndexCreationTool-errors
Draft

Bubble up child process errors in IndexCreationTool#6261
pl4nty wants to merge 1 commit into
microsoft:masterfrom
devicie:bubble-IndexCreationTool-errors

Conversation

@pl4nty
Copy link
Copy Markdown

@pl4nty pl4nty commented May 31, 2026

📖 Description

IndexCreationTool can run several child processes. If any of them fails, index creation has partially failed and I expect an exception, but IndexCreationTool exits 0. This PR throws an exception with the exit code and command/args to assist with debugging. I also updated makeappx unpack to use the shared RunCommand function.

I suspect IndexCreationTool isn't a stable/supported dependency, but thought this was worth submitting anyway.

🔗 References

Example SignTool error: https://github.com/pl4nty/winget-extras/actions/runs/26671649037/job/78615909376

🔍 Validation

I don't have a VS toolchain on hand, so I'd love if someone can run the ADO tests on this PR. Then I'll validate in my CI from the built IndexCreationTool.

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Signed-off-by: Tom Plant <tom.plant@devicie.com>
@pl4nty pl4nty requested a review from a team as a code owner May 31, 2026 00:57
@pl4nty pl4nty marked this pull request as draft May 31, 2026 00:58
@florelis
Copy link
Copy Markdown
Member

florelis commented Jun 1, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants