Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion spread/lxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
6 changes: 5 additions & 1 deletion tests/lxd/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading