Skip to content

ci: use GHA log groups for long logs - #5614

Open
kolyshkin wants to merge 3 commits into
opencontainers:mainfrom
kolyshkin:rootless-gha-groups
Open

kolyshkin wants to merge 3 commits into
opencontainers:mainfrom
kolyshkin:rootless-gha-groups

Conversation

@kolyshkin

@kolyshkin kolyshkin commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

I'm looking into CI jobs every day, and some generate very long logs. Let's use GHA log groups so the parts can be folded:

  • tests/rootless.sh: group for each feature combo;
  • script/setup_host.sh (used to set up lima VMs): groups dnf packages, CRIU, bats, libpathrs, and rootless setup;
  • "Show host info" step: OS version, hardware, cgroup, and kernel config.

Outside of GHA the group markers are harmless.

The rootless integration tests are run several times (once per
combination of rootless features), all in a single CI step, resulting
in a very long log which is hard to navigate.

Wrap each run in a GitHub Actions log group, so it can be folded.
Outside of GHA, the group markers are harmless. While at it, show the
total number of runs (e.g. [2/4]).

Assisted-by: Claude Opus 5.5
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This script is used to set up lima VMs in CI, and its output (mostly
from dnf and libpathrs build) is very long. Split it into log groups,
so it is easier to navigate. Outside of GHA, the group markers are
harmless.

Add gha_group and gha_endgroup helpers to script/lib.sh, which do not
clutter the log with set -x output of their echo commands.

Also, redirect stderr to stdout, as otherwise set -x output (stderr) is
mixed up with group markers (stdout) when run via lima/ssh, and some
lines end up outside of their group.

Assisted-by: Claude Opus 5.5
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This step shows a few unrelated things (OS version, hardware, cgroups,
kernel config), with /proc/cpuinfo and check-config.sh output being
quite long. Put each part into its own log group.

Assisted-by: Claude Opus 5.5
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant