Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug-report specifying temp directory not working #43848

Merged

Conversation

hanxiaop
Copy link
Member

@hanxiaop hanxiaop commented Mar 9, 2023

Please provide a description of this PR:
Fix #43835

The archiveDir directory is incorrect, with a value of ., if the --dir option is specified. Which means that all files in the current directory will be included in the report. If I'm running a bug report in the Istio project, it will have an other error like:

Creating an archive at /root/workspace/istio/bug-report.tar.gz.
Error: archive/tar: write too long

Since the entire Istio project will be included as well. This bug fix is to set the temp dir to the right one when specifying the --dir flag.

@hanxiaop hanxiaop requested a review from a team as a code owner March 9, 2023 03:10
@istio-policy-bot
Copy link

🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test?

Courtesy of your friendly test nag.

@istio-testing istio-testing added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 9, 2023
@hanxiaop hanxiaop requested a review from a team as a code owner March 9, 2023 03:14
@istio-testing istio-testing added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 9, 2023
Copy link
Member

@ymesika ymesika left a comment

Choose a reason for hiding this comment

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

LGTM

@ericvn
Copy link
Contributor

ericvn commented Mar 9, 2023

/retest

@istio-testing istio-testing merged commit 27e2a67 into istio:master Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test and release area/user experience size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug-report temp dir failed to cleanup when using --dir
6 participants