-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 flare archive #1171
fix flare archive #1171
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have two questions but I think this looks good to me. Just add the reno release notes and it'll be good :)
return err | ||
} | ||
|
||
func zipLogFiles(zipFile *archivex.ZipFile, hostname, logFilePath string) error { | ||
func zipLogFiles(tempDir, hostname, logFilePath string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These functions aren't actually zipping anymore. They're adding it to a directory. Might be worthwhile to change the names, though not a blocker on merging.
|
||
f := filepath.Join(tempDir, hostname, "status.log") | ||
|
||
err = ensureParentDirsExist(f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How could this happen unless the temp directory failed to create
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No way, I think, but I always like to handle functions that return error
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What does this PR do?
Previously we were assigning archive file entries full path names, instead of giving the archive an actual structure.
Motivation
Support needs this
Note
github.com/ugorji/go
needs to be pinned like I have it now (8c0409fcbb70099c748d71f714529204975f6c3f
) until etcd-io/etcd#8715 is fully resolved