-
Notifications
You must be signed in to change notification settings - Fork 69
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
Always print warnings and errors; clean up format #2213
base: main
Are you sure you want to change the base?
Conversation
0f46e56
to
efc48f1
Compare
efc48f1
to
131b414
Compare
35ef576
to
ff95005
Compare
4406d92
to
7d12ede
Compare
7d12ede
to
b57aaf3
Compare
b57aaf3
to
cf5d64b
Compare
cf5d64b
to
6e50210
Compare
@@ -25,7 +25,7 @@ type LogLevelFlag struct { | |||
|
|||
func NewLogLevelFlag() LogLevelFlag { | |||
return LogLevelFlag{ | |||
l: log.LevelDisabled, | |||
l: log.LevelWarn, |
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.
Nice. Overall I like this PR a lot, @denik!
It's kind of hard to make sure that we don't show lots of undesired output suddenly, and the acceptance tests help a lot with that.
@@ -226,6 +226,7 @@ func TestDeployBasicBundleLogs(t *testing.T) { | |||
|
|||
stdout, stderr := blackBoxRun(t, ctx, root, "bundle", "deploy") | |||
assert.Equal(t, strings.Join([]string{ | |||
fmt.Sprintf("Error: failed to delete /Workspace/Users/%s/.bundle/%s/artifacts/.internal: unable to delete filer root", currentUser.UserName, uniqueId), |
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.
It sounds a bit dangerous to call Delete on root
It's not on root but on <root>/.internal
which is a special folder we create so we can safely remove it. As to keeping stuff around vs. cleaning up let's have a discussion as both have pros and cons
@@ -16,6 +17,7 @@ Found 1 error | |||
Exit code: 1 | |||
|
|||
>>> $CLI bundle validate -o json | |||
Warn: failed to read .git: unable to load repository specific gitconfig: open config: permission denied |
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.
Is the warning printed to stdout or stderr here? If stdout then it will be a breaking changing for people relying on JSON output here
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.
stderr
b8390b8
to
5fa68d7
Compare
5fa68d7
to
472a5c3
Compare
This seems redundant - nothing is lost.
- remove time - remove attrs unless level is debug - replace $DEV_VERSION - add acceptance test for --debug
Might be fixable with Locale setting (https://stackoverflow.com/a/39172728), but it's easier just not to depend on it.
5149c9a
to
f7e95e3
Compare
Changes
Tests
--debug
output.