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

Reduce noise in CI/test logs when DEBUG is set #12120

Merged
merged 2 commits into from
Aug 6, 2023

Conversation

simondeziel
Copy link
Member

Turns:

  • LXD_DIR=/home/runner/work/lxd/lxd/test/tmp.GTh/938 lxc ls
  • LXC_LOCAL=1 lxc_remote ls
  • set +x
  • eval timeout --foreground 120 /home/runner/go/bin/lxc "ls" --verbose
  • timeout --foreground 120 /home/runner/go/bin/lxc ls --verbose

Into (2 less lines):

  • LXD_DIR=/home/runner/work/lxd/lxd/test/tmp.GTh/938 lxc ls
  • set +x
  • timeout --foreground 120 /home/runner/go/bin/lxc ls --verbose

While trimming 2 lines for each lxc invocation, might not seem much, I find those 2 lines to be essentially noise.
Also, one of our test outputs ~79k lines which would be reduced by ~11k with that PR so down to ~68k lines. This would make navigating those logs a tad less annoying IMHO.

Turns:

> + LXD_DIR=/home/runner/work/lxd/lxd/test/tmp.GTh/938 lxc ls
> + LXC_LOCAL=1 lxc_remote ls
> + set +x
> + eval timeout --foreground 120 /home/runner/go/bin/lxc "ls" --verbose
> + timeout --foreground 120 /home/runner/go/bin/lxc ls --verbose

Into (one less line):

> + LXD_DIR=/home/runner/work/lxd/lxd/test/tmp.GTh/938 lxc ls
> + set +x
> + eval timeout --foreground 120 /home/runner/go/bin/lxc "ls" --verbose
> + timeout --foreground 120 /home/runner/go/bin/lxc ls --verbose

Signed-off-by: Simon Deziel <[email protected]>
Trurns:

> + LXD_DIR=/home/runner/work/lxd/lxd/test/tmp.GTh/938 lxc ls
> + set +x
> + eval timeout --foreground 120 /home/runner/go/bin/lxc "ls" --verbose
> + timeout --foreground 120 /home/runner/go/bin/lxc ls --verbose

Into (one less line):

> + LXD_DIR=/home/runner/work/lxd/lxd/test/tmp.GTh/938 lxc ls
> + set +x
> + timeout --foreground 120 /home/runner/go/bin/lxc ls --verbose

Signed-off-by: Simon Deziel <[email protected]>
@simondeziel simondeziel marked this pull request as ready for review August 4, 2023 18:50
@simondeziel
Copy link
Member Author

The CI run confirmed that "System tests (1.18.x, standalone, ceph)" logs are now 68k lines so it worked out as expected.

@tomponline tomponline merged commit 7f46f71 into canonical:main Aug 6, 2023
@simondeziel simondeziel deleted the ci-logs branch August 6, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants