-
Couldn't load subscription status.
- Fork 709
[CI]: quality of life: minor debugging output fixes #4111
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
Conversation
apostasie
commented
Apr 16, 2025
- commit 1 has a few assorted minor fixes and changes (see commit message for details)
- commit 2 does make use of recently introduced env Whitelisting to tame Environ display
| timeout := gc.Timeout | ||
| if timeout == 0 { | ||
| timeout = defaultTimeout | ||
| if gc.Timeout == 0 { |
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.
Fix 0s being displayed (instead of displaying defaultTimeout) when no explicit timeout has been passed.
| Stderr string | ||
| ExitCode int | ||
| Signal os.Signal | ||
| Duration time.Duration |
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.
Store command execution time.
|
|
||
| if len(chunks) > maxLines { | ||
| chunks = append(chunks[0:maxLines], "...") | ||
| abbreviator := "..." |
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.
Instead of stripping anything after line maxLines, we now keep maxLines/2 from the start and from the end.
|
|
||
| duration := result.Duration.String() | ||
| if result.Duration < time.Second { | ||
| duration = "<1s" |
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.
Do not want to see 123.456789ms
| []any{"Environ", strings.Join(result.Environ, "\n")}, | ||
| []any{envDecorator, strings.Join(result.Environ, "\n")}, | ||
| []any{timeoutDecorator, duration + " (limit: " + gc.cmd.Timeout.String() + ")"}, | ||
| []any{cwdDecorator, gc.cmd.WorkingDir}, |
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.
Show cwd and better duration info.
| "NETCONFPATH", | ||
| "NERDCTL_EXPERIMENTAL", | ||
| "NERDCTL_HOST_GATEWAY_IP", | ||
| ret.WithWhitelist([]string{ |
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.
Use whitelist to tame os.Environ on the CI.
acaa710 to
ace5258
Compare
|
Failures are unrelated (#3556 and some old logs issue in legacy tests) |
- fix timeout showing 0s instead of default when no explicit timeout is provided - add actual execution time - fix long logs (stdout, stderr) that were showing only the beginning to also show the end - fix formatting issue for "..." - marginally better output for command contextual information Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
|
Rebased to get another CI run with #4104 fix. |
|
Latest failure is #3510, My hunch is that it is calling containerd Convert under the hood, which we know is buggy. |
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.
Thanks