Skip to content

Commit

Permalink
Debuggin docker failures
Browse files Browse the repository at this point in the history
Signed-off-by: apostasie <[email protected]>
  • Loading branch information
apostasie committed Oct 19, 2024
1 parent 7e2b221 commit fd7528d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ jobs:
set -eux -o pipefail
docker info
docker version
- name: "TEMP DEBUG"
run: |
systemctl list-unit-files | grep docker
systemctl is-active docker
- name: "Register QEMU (tonistiigi/binfmt)"
run: |
# `--install all` will only install emulation for architectures that cannot be natively executed
Expand All @@ -285,7 +289,12 @@ jobs:
- name: "Ensure that the IPv6 integration test suite is compatible with Docker"
run: ./hack/test-integration.sh -test.target=docker -test.only-ipv6
- name: "Ensure that the integration test suite is compatible with Docker (flaky only)"
run: ./hack/test-integration.sh -test.target=docker -test.only-flaky
run: |
systemctl list-unit-files | grep docker
systemctl is-active docker
./hack/test-integration.sh -test.target=docker -test.only-flaky
systemctl list-unit-files | grep docker
systemctl is-active docker
test-integration-windows:
timeout-minutes: 30
Expand Down
1 change: 1 addition & 0 deletions cmd/nerdctl/container/container_run_restart_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func TestRunRestart(t *testing.T) {
}
assert.NilError(t, check(30))

base.EnsureDaemonActive()
base.KillDaemon()
base.EnsureDaemonActive()

Expand Down
3 changes: 3 additions & 0 deletions pkg/testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ func (b *Base) EnsureDaemonActive() {
)
for i := 0; i < maxRetry; i++ {
cmd := exec.Command("systemctl", append(systemctlArgs, "is-active", target)...)
b.T.Log(cmd.Env)
b.T.Log(cmd.Args)
b.T.Log(cmd.Dir)
out, err := cmd.CombinedOutput()
b.T.Logf("(retry=%d) %s", i, string(out))
if err == nil {
Expand Down

0 comments on commit fd7528d

Please sign in to comment.