#161

~bigbes/ci-cacher/commits/master/test.yml

success

bca3f57Eugene Blikh

README: refresh for v0.1.1+v0.1.2

Owner
~bigbes
Created
2 months ago
Updated
2 months ago
Build manifest
view manifest »

Tasks

view log »
install_cacher view log »
cacher_init view log »
install_go view log »
cache_gomod view log »
test view log »
docker_start view log »
cache_garage_image view log »
test_e2e view log »
go to bottom »
go to top »
setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
[#161] 2026/05/26 05:53:10 Running build on srht-build-1.lab.local
[#161] 2026/05/26 05:53:10 Booting image ubuntu/noble (default) on port 22260
[#161] 2026/05/26 05:53:10 Waiting for guest to settle
[#161] 2026/05/26 05:53:17 Sending tasks
[#161] 2026/05/26 05:53:19 Sending build environment
[#161] 2026/05/26 05:53:19 Sending secrets
[#161] 2026/05/26 05:53:19 Resolving secret 7dde4219-0783-4581-a67d-c94749de3600
[#161] 2026/05/26 05:53:20 Resolving secret 0e5b3530-6f19-4f30-9b73-9339dd382e46
[#161] 2026/05/26 05:53:20 Installing packages
Warning: Permanently added '[localhost]:22260' (ED25519) to the list of known hosts.
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Get:2 http://archive.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble-security/main amd64 Packages [1698 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble-security/main Translation-en [267 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [2997 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble-security/restricted Translation-en [697 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1191 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble-security/universe Translation-en [230 kB]
Get:11 http://archive.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [39.3 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble-security/multiverse Translation-en [8784 B]
Get:13 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [2007 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble-updates/main Translation-en [355 kB]
Get:15 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [3202 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [740 kB]
Get:17 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1692 kB]
Get:18 http://archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [329 kB]
Get:19 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [44.7 kB]
Get:20 http://archive.ubuntu.com/ubuntu noble-updates/multiverse Translation-en [10.9 kB]
Fetched 15.9 MB in 2s (8003 kB/s)
Reading package lists...
Warning: Permanently added '[localhost]:22260' (ED25519) to the list of known hosts.
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (8.5.0-2ubuntu10.9).
ca-certificates is already the newest version (20240203).
The following additional packages will be installed:
  apparmor bridge-utils containerd dns-root-data dnsmasq-base iptables
  libip4tc2 libip6tc2 libnetfilter-conntrack3 libnfnetlink0 libnftables1
  libnftnl11 nftables pigz runc ubuntu-fan
Suggested packages:
  apparmor-profiles-extra apparmor-utils ifupdown aufs-tools btrfs-progs
  cgroupfs-mount | cgroup-lite debootstrap docker-buildx docker-compose-v2
  docker-doc rinse zfs-fuse | zfsutils firewalld
The following NEW packages will be installed:
  apparmor bridge-utils containerd dns-root-data dnsmasq-base docker.io
  iptables libip4tc2 libip6tc2 libnetfilter-conntrack3 libnfnetlink0
  libnftables1 libnftnl11 nftables pigz runc ubuntu-fan
0 upgraded, 17 newly installed, 0 to remove and 8 not upgraded.
Need to get 75.4 MB of archives.
After this operation, 286 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 pigz amd64 2.8-1 [65.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 apparmor amd64 4.0.1really4.0.1-0ubuntu0.24.04.6 [639 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble/main amd64 libip4tc2 amd64 1.8.10-3ubuntu2 [23.3 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble/main amd64 libip6tc2 amd64 1.8.10-3ubuntu2 [23.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble/main amd64 libnfnetlink0 amd64 1.0.2-2build1 [14.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble/main amd64 libnetfilter-conntrack3 amd64 1.0.9-6build1 [45.2 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble/main amd64 libnftnl11 amd64 1.2.6-2build1 [66.0 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble/main amd64 iptables amd64 1.8.10-3ubuntu2 [381 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libnftables1 amd64 1.0.9-1ubuntu0.1 [359 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 nftables amd64 1.0.9-1ubuntu0.1 [69.8 kB]
Get:11 http://archive.ubuntu.com/ubuntu noble/main amd64 bridge-utils amd64 1.7.1-1ubuntu2 [33.9 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 runc amd64 1.3.4-0ubuntu1~24.04.1 [9574 kB]
Get:13 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 containerd amd64 2.2.1-0ubuntu1~24.04.2 [28.1 MB]
Get:14 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 dns-root-data all 2024071801~ubuntu0.24.04.1 [5918 B]
Get:15 http://archive.ubuntu.com/ubuntu noble-security/main amd64 dnsmasq-base amd64 2.90-2ubuntu0.3 [376 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-security/universe amd64 docker.io amd64 29.1.3-0ubuntu3~24.04.2 [35.6 MB]
Get:17 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 ubuntu-fan all 0.12.16+24.04.1 [34.2 kB]
Preconfiguring packages ...
Fetched 75.4 MB in 3s (26.0 MB/s)
Selecting previously unselected package pigz.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 43879 files and directories currently installed.)
Preparing to unpack .../00-pigz_2.8-1_amd64.deb ...
Unpacking pigz (2.8-1) ...
Selecting previously unselected package apparmor.
Preparing to unpack .../01-apparmor_4.0.1really4.0.1-0ubuntu0.24.04.6_amd64.deb ...
Unpacking apparmor (4.0.1really4.0.1-0ubuntu0.24.04.6) ...
Selecting previously unselected package libip4tc2:amd64.
Preparing to unpack .../02-libip4tc2_1.8.10-3ubuntu2_amd64.deb ...
Unpacking libip4tc2:amd64 (1.8.10-3ubuntu2) ...
Selecting previously unselected package libip6tc2:amd64.
Preparing to unpack .../03-libip6tc2_1.8.10-3ubuntu2_amd64.deb ...
Unpacking libip6tc2:amd64 (1.8.10-3ubuntu2) ...
Selecting previously unselected package libnfnetlink0:amd64.
Preparing to unpack .../04-libnfnetlink0_1.0.2-2build1_amd64.deb ...
Unpacking libnfnetlink0:amd64 (1.0.2-2build1) ...
Selecting previously unselected package libnetfilter-conntrack3:amd64.
Preparing to unpack .../05-libnetfilter-conntrack3_1.0.9-6build1_amd64.deb ...
Unpacking libnetfilter-conntrack3:amd64 (1.0.9-6build1) ...
Selecting previously unselected package libnftnl11:amd64.
Preparing to unpack .../06-libnftnl11_1.2.6-2build1_amd64.deb ...
Unpacking libnftnl11:amd64 (1.2.6-2build1) ...
Selecting previously unselected package iptables.
Preparing to unpack .../07-iptables_1.8.10-3ubuntu2_amd64.deb ...
Unpacking iptables (1.8.10-3ubuntu2) ...
Selecting previously unselected package libnftables1:amd64.
Preparing to unpack .../08-libnftables1_1.0.9-1ubuntu0.1_amd64.deb ...
Unpacking libnftables1:amd64 (1.0.9-1ubuntu0.1) ...
Selecting previously unselected package nftables.
Preparing to unpack .../09-nftables_1.0.9-1ubuntu0.1_amd64.deb ...
Unpacking nftables (1.0.9-1ubuntu0.1) ...
Selecting previously unselected package bridge-utils.
Preparing to unpack .../10-bridge-utils_1.7.1-1ubuntu2_amd64.deb ...
Unpacking bridge-utils (1.7.1-1ubuntu2) ...
Selecting previously unselected package runc.
Preparing to unpack .../11-runc_1.3.4-0ubuntu1~24.04.1_amd64.deb ...
Unpacking runc (1.3.4-0ubuntu1~24.04.1) ...
Selecting previously unselected package containerd.
Preparing to unpack .../12-containerd_2.2.1-0ubuntu1~24.04.2_amd64.deb ...
Unpacking containerd (2.2.1-0ubuntu1~24.04.2) ...
Selecting previously unselected package dns-root-data.
Preparing to unpack .../13-dns-root-data_2024071801~ubuntu0.24.04.1_all.deb ...
Unpacking dns-root-data (2024071801~ubuntu0.24.04.1) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../14-dnsmasq-base_2.90-2ubuntu0.3_amd64.deb ...
Unpacking dnsmasq-base (2.90-2ubuntu0.3) ...
Selecting previously unselected package docker.io.
Preparing to unpack .../15-docker.io_29.1.3-0ubuntu3~24.04.2_amd64.deb ...
Unpacking docker.io (29.1.3-0ubuntu3~24.04.2) ...
Selecting previously unselected package ubuntu-fan.
Preparing to unpack .../16-ubuntu-fan_0.12.16+24.04.1_all.deb ...
Unpacking ubuntu-fan (0.12.16+24.04.1) ...
Setting up libip4tc2:amd64 (1.8.10-3ubuntu2) ...
Setting up libip6tc2:amd64 (1.8.10-3ubuntu2) ...
Setting up libnftnl11:amd64 (1.2.6-2build1) ...
Setting up runc (1.3.4-0ubuntu1~24.04.1) ...
Setting up dns-root-data (2024071801~ubuntu0.24.04.1) ...
Setting up apparmor (4.0.1really4.0.1-0ubuntu0.24.04.6) ...
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service → /usr/lib/systemd/system/apparmor.service.

Reloading AppArmor profiles 
Setting up bridge-utils (1.7.1-1ubuntu2) ...
Setting up pigz (2.8-1) ...
Setting up libnfnetlink0:amd64 (1.0.2-2build1) ...
Setting up containerd (2.2.1-0ubuntu1~24.04.2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /usr/lib/systemd/system/containerd.service.

Setting up libnftables1:amd64 (1.0.9-1ubuntu0.1) ...
Setting up nftables (1.0.9-1ubuntu0.1) ...
Setting up libnetfilter-conntrack3:amd64 (1.0.9-6build1) ...
Setting up iptables (1.8.10-3ubuntu2) ...
update-alternatives: using /usr/sbin/iptables-legacy to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-legacy to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/iptables-nft to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-nft to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/arptables-nft to provide /usr/sbin/arptables (arptables) in auto mode
update-alternatives: using /usr/sbin/ebtables-nft to provide /usr/sbin/ebtables (ebtables) in auto mode
Setting up docker.io (29.1.3-0ubuntu3~24.04.2) ...
info: Selecting GID from range 100 to 999 ...
info: Adding group `docker' (GID 104) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.

Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /usr/lib/systemd/system/docker.socket.

Setting up dnsmasq-base (2.90-2ubuntu0.3) ...
Setting up ubuntu-fan (0.12.16+24.04.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service → /usr/lib/systemd/system/ubuntu-fan.service.

Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.7) ...
[#161] 2026/05/26 05:53:31 Cloning repositories
Cloning into 'ci-cacher'...
+ git -C ci-cacher checkout -q bca3f572b28a6f4a945d92c2020b981af4cf58b4
+ git -C ci-cacher submodule update --init --recursive
[#161] 2026/05/26 05:53:32 Running task install_cacher
[#161] 2026/05/26 05:53:33 Running task cacher_init
[#161] 2026/05/26 05:53:33 Running task install_go
[#161] 2026/05/26 05:53:35 Running task cache_gomod
[#161] 2026/05/26 05:53:36 Running task test
[#161] 2026/05/26 05:54:14 Running task docker_start
[#161] 2026/05/26 05:54:14 Running task cache_garage_image
[#161] 2026/05/26 05:54:15 Running task test_e2e
install_cacher
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
+ mkdir -p /home/build/.local/bin
+ curl -sSL https://bigbes.pages.srht.bigb.es/ci-cacher/cacher-linux-amd64 -o /home/build/.local/bin/cacher
+ chmod +x /home/build/.local/bin/cacher
+ cacher version
                       _
   ___ __ _  ___ _ __ | |__   ___ _ __
  / __/ _` |/ __| '_ \| '_ \ / _ \ '__|
 | (_| (_| | (__| | | | | | |  __/ |
  \___\__,_|\___|_| |_|_| |_|\___|_|
cacher: S3-backed CI cache helper for builds.sr.ht — replaces .builds/lib/ci-lib.sh
go.bigb.es/cacher

GitVersion:    0.1.2
GitCommit:     9dc739e5919f38fa54b7cb62314caf1e6861844a
GitTreeState:  dirty
BuildDate:     2026-05-26T05:49:19Z
BuiltBy:       unknown
Clean:         false
GoVersion:     go1.26.3
Compiler:      gc
ModuleSum:     unknown
Platform:      linux/amd64
cacher_init
1
2
3
4
5
6
7
8
9
+ cacher init --endpoint https://s3.bigb.es --region garage --bucket docker-cache --prefix ci-cacher/deps --key-file /home/build/.s3-cache-key-id --secret-file /home/build/.s3-cache-key-secret
wrote /home/build/.config/cacher/config.toml
endpoint=https://s3.bigb.es region=garage bucket=docker-cache prefix=ci-cacher/deps
key_id_len=26 key_id_prefix=GK secret_len=64
ping bucket: OK
put canary: OK
get canary: OK
delete canary: OK
doctor: all checks passed
install_go
1
2
3
4
5
6
7
8
+ GO_TARBALL=go1.26.3.linux-amd64.tar.gz
+ mkdir -p /home/build/.local
+ cacher download golang/go1.26.3.linux-amd64.tar.gz /tmp/go1.26.3.linux-amd64.tar.gz --url https://go.dev/dl/go1.26.3.linux-amd64.tar.gz
Cache HIT  — golang/go1.26.3.linux-amd64.tar.gz
+ tar -xz -C /home/build/.local -f /tmp/go1.26.3.linux-amd64.tar.gz
+ rm /tmp/go1.26.3.linux-amd64.tar.gz
+ go version
go version go1.26.3 linux/amd64
cache_gomod
1
2
3
4
5
6
7
8
9
++ sha256sum ci-cacher/go.sum
++ cut -c1-16
+ GOSUM_HASH=ee53486d4fbebdb0
+ KEY=gomod/ee53486d4fbebdb0.tar.gz
+ cacher download gomod/ee53486d4fbebdb0.tar.gz /tmp/gomod.tar.gz
Cache HIT  — gomod/ee53486d4fbebdb0.tar.gz
+ mkdir -p /home/build/go
+ tar -xzf /tmp/gomod.tar.gz -C /home/build/go
+ rm -f /tmp/gomod.tar.gz
test
1
2
3
4
5
6
7
8
9
10
11
+ cd ci-cacher
+ go test ./...
?   	go.bigb.es/cacher	[no test files]
?   	go.bigb.es/cacher/cmd	[no test files]
ok  	go.bigb.es/cacher/internal/archive	0.004s
ok  	go.bigb.es/cacher/internal/config	0.002s
ok  	go.bigb.es/cacher/internal/hash	0.005s
?   	go.bigb.es/cacher/internal/logging	[no test files]
?   	go.bigb.es/cacher/internal/s3	[no test files]
?   	go.bigb.es/cacher/internal/testutil/garage	[no test files]
?   	go.bigb.es/cacher/internal/version	[no test files]
docker_start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
+ sudo systemctl start docker
+ sudo usermod -aG docker build
+ sudo chmod 666 /var/run/docker.sock
+ docker version
Client:
 Version:           29.1.3
 API version:       1.52
 Go version:        go1.24.4
 Git commit:        29.1.3-0ubuntu3~24.04.2
 Built:             Wed Apr 29 16:41:06 2026
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          29.1.3
  API version:      1.52 (minimum version 1.44)
  Go version:       go1.24.4
  Git commit:       29.1.3-0ubuntu3~24.04.2
  Built:            Wed Apr 29 16:41:06 2026
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          2.2.1
  GitCommit:        
 runc:
  Version:          1.3.4-0ubuntu1~24.04.1
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        
cache_garage_image
1
2
3
4
5
6
7
8
9
10
++ echo dxflrs/garage:v2.3.0
++ tr /: -
+ KEY=docker/dxflrs-garage-v2.3.0.tar.zst
+ cacher docker download docker/dxflrs-garage-v2.3.0.tar.zst dxflrs/garage:v2.3.0 --pull
Cache HIT  — docker/dxflrs-garage-v2.3.0.tar.zst → load dxflrs/garage:v2.3.0
[docker load] Loaded image: dxflrs/garage:v2.3.0
+ docker images dxflrs/garage:v2.3.0
IMAGE                  ID             DISK USAGE   CONTENT SIZE   EXTRA
dxflrs/garage:v2.3.0   866bd13ed203       99.8MB         28.5MB        
WARNING: This output is designed for human readability. For machine-readable output, please use --format.
test_e2e
1
2
3
4
5
6
7
8
9
10
11
+ cd ci-cacher
+ go test -tags=e2e -timeout=10m ./...
ok  	go.bigb.es/cacher	8.953s
?   	go.bigb.es/cacher/cmd	[no test files]
ok  	go.bigb.es/cacher/internal/archive	0.005s
ok  	go.bigb.es/cacher/internal/config	0.004s
ok  	go.bigb.es/cacher/internal/hash	0.007s
?   	go.bigb.es/cacher/internal/logging	[no test files]
?   	go.bigb.es/cacher/internal/s3	[no test files]
?   	go.bigb.es/cacher/internal/testutil/garage	[no test files]
?   	go.bigb.es/cacher/internal/version	[no test files]
Build complete: success 2 months ago (took a minute)