-
Notifications
You must be signed in to change notification settings - Fork 163
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
buildkite: Add tool to download logs #2777
buildkite: Add tool to download logs #2777
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.
Reviewed 5 of 5 files at r1.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on @lukedirtwalker)
a discussion (no related file):
Downloaded archive names are difficult to read due to spaces in the name:
Unit tests :bazel:_etc.tar.gz
Replacing spaces with _
would improve readability.
go/tools/buildkite_log_downloader/main.go, line 33 at r1 (raw file):
var ( tokenFlag = flag.String("token", "", "The buildkite API token") destDir = flag.String("dst", "",
Feature request: I'd love it if the directory were created if it didn't exist already.
go/tools/buildkite_log_downloader/main.go, line 82 at r1 (raw file):
} if len(problems) > 0 { return buildDesc{}, common.NewBasicError("Not all required flags provided", nil,
This error needs a bit of formatting to be easier to read. Right now I'm getting:
Not all required flags provided problems="[API-Token not provided Build number not provided]"%
The last character is probably due to a missing ending newline that my zsh is being nitpicky about.
go/tools/buildkite_log_downloader/main.go, line 108 at r1 (raw file):
for _, artifact := range artifacts { if artifact.DownloadURL == nil { continue
Is it useful to inform the user of this event? E.g., "No URL found for artifact x".
It might point to some misconfiguration (I'm guessing, not that familiar with the buildkite api), and might be more useful than silently continuing.
go/tools/buildkite_log_downloader/main.go, line 111 at r1 (raw file):
} if artifact.Filename == nil || !strings.HasPrefix(*artifact.Filename, "buildkite") { continue
Same remark as above.
go/tools/buildkite_log_downloader/main.go, line 115 at r1 (raw file):
job := jobForArtifact(b, &artifact) if job == nil { continue
Same remark as above.
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.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on @scrye)
a discussion (no related file):
Previously, scrye (Sergiu Costea) wrote…
Downloaded archive names are difficult to read due to spaces in the name:
Unit tests :bazel:_etc.tar.gz
Replacing spaces with
_
would improve readability.
Done.
go/tools/buildkite_log_downloader/main.go, line 33 at r1 (raw file):
Previously, scrye (Sergiu Costea) wrote…
Feature request: I'd love it if the directory were created if it didn't exist already.
Done.
go/tools/buildkite_log_downloader/main.go, line 82 at r1 (raw file):
Previously, scrye (Sergiu Costea) wrote…
This error needs a bit of formatting to be easier to read. Right now I'm getting:
Not all required flags provided problems="[API-Token not provided Build number not provided]"%
The last character is probably due to a missing ending newline that my zsh is being nitpicky about.
Done.
go/tools/buildkite_log_downloader/main.go, line 108 at r1 (raw file):
Previously, scrye (Sergiu Costea) wrote…
Is it useful to inform the user of this event? E.g., "No URL found for artifact x".
It might point to some misconfiguration (I'm guessing, not that familiar with the buildkite api), and might be more useful than silently continuing.
Done.
go/tools/buildkite_log_downloader/main.go, line 111 at r1 (raw file):
Previously, scrye (Sergiu Costea) wrote…
Same remark as above.
Done.
go/tools/buildkite_log_downloader/main.go, line 115 at r1 (raw file):
Previously, scrye (Sergiu Costea) wrote…
Same remark as above.
Done.
631f409
to
98629a2
Compare
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.
Reviewed 1 of 1 files at r2.
Reviewable status:complete! all files reviewed, all discussions resolved
98629a2
to
21ddf25
Compare
21ddf25
to
a550967
Compare
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.
Reviewable status:
complete! all files reviewed, all discussions resolved
There were some issues building the base image, which were introduced by scionproto#2777 and now fixed in this PR.
There were some issues building the base image, which were introduced by scionproto#2777 and now fixed in this PR.
There were some issues building the base image, which were introduced by #2777 and now fixed in this PR.
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)