diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bfc45201..6a1eb24d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,6 +17,13 @@ jobs: - name: Run tests run: | + echo ========================================================= + uname -a + echo ========================================================= + lxc --version + lxc list + free + df spread google: - name: Discard spread workers diff --git a/spread.yaml b/spread.yaml index 30dfa3a7..5bb90347 100644 --- a/spread.yaml +++ b/spread.yaml @@ -5,6 +5,8 @@ # Keep in mind that the logic in task.yaml is supposed to test the *built* # spread, not the one running the task.yaml logic. +# Investigating CI errors + project: spread environment: diff --git a/spread/lxd.go b/spread/lxd.go index 9446f701..78990440 100644 --- a/spread/lxd.go +++ b/spread/lxd.go @@ -129,9 +129,10 @@ func (p *lxdProvider) Allocate(ctx context.Context, system *System) (Server, err } printf("Waiting for lxd container %s to have an address...", name) - timeout := time.After(30 * time.Second) + timeout := time.After(60 * time.Second) retry := time.NewTicker(1 * time.Second) defer retry.Stop() + before := time.Now() for { addr, err := p.address(name) if err == nil { @@ -150,6 +151,7 @@ func (p *lxdProvider) Allocate(ctx context.Context, system *System) (Server, err return nil, err } } + printf("=========== %s got address after %v", name, time.Since(before)) err = p.tuneSSH(name) if err != nil { diff --git a/tests/lxd/task.yaml b/tests/lxd/task.yaml index 9e550499..864e1503 100644 --- a/tests/lxd/task.yaml +++ b/tests/lxd/task.yaml @@ -9,10 +9,14 @@ prepare: | execute: | spread -vv -reuse -resend &> task.out - for system in ubuntu-16.04 ubuntu-18.04 ubuntu-20.04 ubuntu-22.04; do + cat task.out + + for system in ubuntu-16.04 ubuntu-18.04 ubuntu-20.04 ubuntu-22.04 ubuntu-24.04; do grep "lxd:${system}:checks/main" task.out grep "^WORKS ${system}\$" task.out done + false + debug: | cat task.out || true