KEMBAR78
Add more verbose output to bsdtar to help root cause 'ImportExportStdout' test failures by OneBlue · Pull Request #13555 · microsoft/WSL · GitHub
Skip to content

Conversation

@OneBlue
Copy link
Collaborator

@OneBlue OneBlue commented Oct 2, 2025

Summary of the Pull Request

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances debugging capabilities for the ImportExportStdout test by adding more verbose output to bsdtar operations. The changes aim to help root cause test failures by providing more detailed logging when debug mode is enabled.

Key Changes

  • Added debug logging to identify when the ImportExportStdout test case starts
  • Increased bsdtar verbosity from -v to -vv and added --totals flag for more detailed output
  • Updated argument handling to properly support the additional bsdtar flags

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/windows/UnitTests.cpp Added debug logging to mark the start of ImportExportStdout test case
src/windows/service/exe/LxssUserSession.cpp Enhanced bsdtar verbosity with -vv --totals flags for debug mode
src/linux/init/main.cpp Updated bsdtar argument construction to support enhanced verbosity and totals output
Comments suppressed due to low confidence (1)

src/linux/init/main.cpp:1

  • The --totals flag is being inserted at a fixed position (begin() + 3) which assumes the vector structure won't change. This is fragile and could break if the argument order changes. Consider using a more robust approach like inserting before the nullptr terminator or building the arguments conditionally.
/*++

@OneBlue OneBlue enabled auto-merge (squash) October 4, 2025 00:12
@OneBlue OneBlue merged commit d4e64b6 into master Oct 4, 2025
6 checks passed
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