Surface extension build-script output when azd x build fails#8526
Surface extension build-script output when azd x build fails#8526Copilot wants to merge 2 commits into
azd x build fails#8526Conversation
Co-authored-by: richardpark-msft <51494936+richardpark-msft@users.noreply.github.com>
azd x build fails
|
@copilot Are there are other stages in the extension workflow that have this same issue? |
Yes — I found at least one more in the extension workflow: Also worth noting: |
|
@copilot Elaborate on 'the tail' |
By “the tail” I mean the short suffix returned by It extracts one compact line from captured subprocess output:
So instead of dumping full multiline output, the task line becomes something like: The full raw output should be printed separately (e.g., under |
Extension creation/build failures were reporting a generic build error while dropping the actionable build-script output from the user-visible task summary. This made it unclear what failed and whether the extension state was recoverable.
Failure-path output visibility
Build failed...) usingsubprocessErrorTail(...)for a short inline hint.CombinedOutput()on build-script failure and print it after task-list rendering under a dedicatedBuild output:section.DetailedErrordescription (task list only renders the description field).Behavior alignment with existing subprocess patterns
subprocessErrorTailpattern already used by extension init subprocess handling, so users get a compact summary + full output details.Targeted test coverage
Original prompt
Created from VS Code.