@@ -41,29 +41,29 @@ jobs:
41
41
path : /tmp/test-image.tar.zst
42
42
lookup-only : true
43
43
44
- - name : setup lxd (v5.19)
44
+ - name : setup lxd
45
45
id : s1
46
46
if : steps.cache-restore.outputs.cache-hit != 'true'
47
- run : ./setup_lxd.sh
47
+ run : ./test/ setup_lxd.sh
48
48
49
49
- name : launch lxc container
50
- id : s6
50
+ id : s2
51
51
if : steps.s1.conclusion == 'success'
52
- run : ./launch_test_lxc.sh
52
+ run : ./test/ launch_test_lxc.sh
53
53
54
54
- name : install dependencies and build
55
- id : s7
56
- if : steps.s6 .conclusion == 'success'
55
+ id : s3
56
+ if : steps.s2 .conclusion == 'success'
57
57
run : sudo lxc exec test -- sudo --login --user ubuntu /host/test/init_test.sh
58
58
59
59
- name : export image
60
- id : s8
61
- if : steps.s7 .conclusion == 'success'
62
- run : ./export_lxc_image.sh test
60
+ id : s4
61
+ if : steps.s3 .conclusion == 'success'
62
+ run : ./test/ export_lxc_image.sh test
63
63
64
64
- uses : actions/cache/save@v3
65
- id : s11
66
- if : steps.s8 .conclusion == 'success'
65
+ id : s5
66
+ if : steps.s4 .conclusion == 'success'
67
67
with :
68
68
key : lxc-image-base-${{ hashFiles('go.sum', 'test/init_test.sh') }}
69
69
path : /tmp/test-image.tar.zst
74
74
timeout-minutes : 20
75
75
steps :
76
76
- uses : actions/checkout@v4.1.1
77
- - name : setup lxd (v5.19)
78
- run : ./setup_lxd.sh
77
+ - name : setup lxd
78
+ run : ./test/ setup_lxd.sh
79
79
- uses : actions/cache/restore@v3
80
80
id : cache-restore
81
81
with :
@@ -85,12 +85,12 @@ jobs:
85
85
- name : load lxc image
86
86
run : sudo lxc image import /tmp/test-image.tar.zst --alias test-export
87
87
- name : launch lxc container
88
- run : ./launch_test_lxc.sh test-export
88
+ run : ./test/ launch_test_lxc.sh test-export
89
89
- name : run test
90
90
run : sudo lxc exec test -- sudo --login --user ubuntu /bin/bash -c "sleep 3 && /home/ubuntu/bypass4netns/test/run_test.sh SYNC"
91
91
# some source codes may be updated. re-export new image.
92
92
- name : export image
93
- run : sudo lxc image alias delete test-export && rm -f /tmp/test-image.tar.zst && ./export_lxc_image.sh test
93
+ run : sudo lxc image alias delete test-export && rm -f /tmp/test-image.tar.zst && ./test/ export_lxc_image.sh test
94
94
- uses : actions/cache/save@v3
95
95
with :
96
96
key : lxc-image-${{ github.sha }}
@@ -107,8 +107,8 @@ jobs:
107
107
script : ["iperf3/iperf3_host", "iperf3/iperf3", "postgres/postgres", "redis/redis", "block/block", "memcached/memcached", "rabbitmq/rabbitmq", "etcd/etcd", "mysql/mysql"]
108
108
steps :
109
109
- uses : actions/checkout@v4.1.1
110
- - name : setup lxd (v5.19)
111
- run : ./setup_lxd.sh
110
+ - name : setup lxd
111
+ run : ./test/ setup_lxd.sh
112
112
- uses : actions/cache/restore@v3
113
113
id : cache-restore
114
114
with :
@@ -118,7 +118,7 @@ jobs:
118
118
- name : load lxc image
119
119
run : sudo lxc image import /tmp/test-image.tar.zst --alias test-export
120
120
- name : launch lxc container
121
- run : ./launch_test_lxc.sh test-export
121
+ run : ./test/ launch_test_lxc.sh test-export
122
122
- name : run benchmark (${{ matrix.script }})
123
123
run : sudo lxc exec test -- sudo --login --user ubuntu /bin/bash -c "sleep 3 && /home/ubuntu/bypass4netns/benchmark/${{ matrix.script }}.sh"
124
124
- name : upload plot
@@ -147,8 +147,8 @@ jobs:
147
147
script : ["iperf3/iperf3", "postgres/postgres", "redis/redis", "block/block", "memcached/memcached", "rabbitmq/rabbitmq", "etcd/etcd", "mysql/mysql"]
148
148
steps :
149
149
- uses : actions/checkout@v4.1.1
150
- - name : setup lxd (v5.19)
151
- run : ./setup_lxd.sh
150
+ - name : setup lxd
151
+ run : ./test/ setup_lxd.sh
152
152
- uses : actions/cache/restore@v3
153
153
id : cache-restore
154
154
with :
@@ -158,7 +158,7 @@ jobs:
158
158
- name : load lxc image
159
159
run : sudo lxc image import /tmp/test-image.tar.zst --alias test-export
160
160
- name : launch lxc container
161
- run : ./launch_test_lxc.sh test-export
161
+ run : ./test/ launch_test_lxc.sh test-export
162
162
- name : run benchmark (${{ matrix.script }})
163
163
run : ./benchmark/${{ matrix.script }}_multinode.sh
164
164
- name : upload plot
0 commit comments