#383

~bigbes/sr-ht-spec/commits/master/.build.yml

success

cb60d4fEugene Blikh

ci: run the suites against a real Postgres on the builder

Owner
~bigbes
Created
9 days ago
Updated
9 days ago
Build manifest
view manifest »

Tasks

view log »
cacher_install view log »
cacher_init view log »
scss view log »
keygen view log »
version view log »
cache_restore view log »
postgres view log »
test view log »
build view log »
publish view log »
cache_save 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
[#383] 2026/08/08 22:43:26 Running build on srht-build-1.lab.local
[#383] 2026/08/08 22:43:26 Booting image alpine/edge (default) on port 22482
Waiting for VM to come up...
ssh: connect to host localhost port 22482: Connection refused
Attempt 1...
kex_exchange_identification: read: Connection reset by peer
Connection reset by 127.0.0.1 port 22482
Attempt 2...
Warning: Permanently added '[localhost]:22482' (ED25519) to the list of known hosts.
Warning: Permanently added '[localhost]:22482' (ED25519) to the list of known hosts.
[#383] 2026/08/08 22:43:36 preconfigure: ok
[#383] 2026/08/08 22:43:36 Waiting for guest to settle
[#383] 2026/08/08 22:43:36 Sending tasks
[#383] 2026/08/08 22:43:39 Sending build environment
[#383] 2026/08/08 22:43:39 Sending secrets
[#383] 2026/08/08 22:43:39 Resolving secret apk-ci-s3
[#383] 2026/08/08 22:43:39 Resolving secret 7dde4219-0783-4581-a67d-c94749de3600
[#383] 2026/08/08 22:43:39 Resolving secret 0e5b3530-6f19-4f30-9b73-9339dd382e46
[#383] 2026/08/08 22:43:40 Installing packages
Warning: Permanently added '[localhost]:22482' (ED25519) to the list of known hosts.
( 1/15) Upgrading alpine-release (3.24.0-r0 -> 3.25.0_alpha20260805-r0)
( 2/15) Upgrading alpine-base (3.24.0-r0 -> 3.25.0_alpha20260805-r0)
( 3/15) Upgrading git (2.55.0-r0 -> 2.55.0-r1)
( 4/15) Upgrading git-init-template (2.55.0-r0 -> 2.55.0-r1)
( 5/15) Upgrading libldap (2.6.13-r0 -> 2.6.14-r0)
( 6/15) Upgrading haveged (1.9.21-r0 -> 1.9.26-r0)
( 7/15) Upgrading haveged-openrc (1.9.21-r0 -> 1.9.26-r0)
( 8/15) Upgrading openssh-keygen (10.4_p1-r1 -> 10.4_p1-r2)
( 9/15) Upgrading openssh-client-common (10.4_p1-r1 -> 10.4_p1-r2)
(10/15) Upgrading openssh-client-default (10.4_p1-r1 -> 10.4_p1-r2)
(11/15) Upgrading openssh-sftp-server (10.4_p1-r1 -> 10.4_p1-r2)
(12/15) Upgrading openssh-server-common (10.4_p1-r1 -> 10.4_p1-r2)
  Installing file to etc/ssh/sshd_config.apk-new
(13/15) Upgrading openssh-server-common-openrc (10.4_p1-r1 -> 10.4_p1-r2)
(14/15) Upgrading openssh-server (10.4_p1-r1 -> 10.4_p1-r2)
  Executing openssh-server-10.4_p1-r2.post-upgrade
(15/15) Upgrading openssh (10.4_p1-r1 -> 10.4_p1-r2)
Executing busybox-1.38.0-r4.trigger
OK: 526.9 MiB in 142 packages
Warning: Permanently added '[localhost]:22482' (ED25519) to the list of known hosts.
( 1/16) Installing go (1.26.5-r0)
( 2/16) Installing minify (2.24.13-r1)
( 3/16) Installing postgresql-common (1.3-r0)
  Executing postgresql-common-1.3-r0.pre-install
( 4/16) Installing lz4-libs (1.10.0-r1)
( 5/16) Installing libpq (18.4-r1)
( 6/16) Installing postgresql18-client (18.4-r1)
( 7/16) Installing icu-data-en (78.1-r0)
  Executing icu-data-en-78.1-r0.post-install
  * If you need ICU with non-English locales and legacy charset support, install
  * package icu-data-full.
( 8/16) Installing icu-libs (78.1-r0)
( 9/16) Installing liburing (2.15-r0)
(10/16) Installing libxml2 (2.13.9-r2)
(11/16) Installing postgresql18 (18.4-r1)
  Executing postgresql18-18.4-r1.post-install
  * 
  * If you want to use JIT in PostgreSQL, install postgresql18-jit or
  * postgresql-jit (if you didn't install specific major version of postgresql).
  * 
(12/16) Installing postgresql-common-openrc (1.3-r0)
(13/16) Installing postgresql18-openrc (18.4-r1)
(14/16) Installing rclone (1.74.4-r1)
(15/16) Installing libsass (3.6.6-r0)
(16/16) Installing sassc (3.6.2-r5)
Executing busybox-1.38.0-r4.trigger
Executing postgresql-common-1.3-r0.trigger
* find: /usr/share/man: No such file or directory
* Setting postgresql18 as the default version
* find: /usr/share/man: No such file or directory
OK: 846.4 MiB in 158 packages
[#383] 2026/08/08 22:43:57 Cloning repositories
Cloning into 'sr-ht-spec'...
+ git -C sr-ht-spec checkout -q cb60d4f754f4ea21121414f7e3fc8b10118c8ac4
+ git -C sr-ht-spec submodule update --init --recursive
[#383] 2026/08/08 22:43:57 Running task cacher_install
[#383] 2026/08/08 22:43:58 Running task cacher_init
[#383] 2026/08/08 22:43:58 Running task scss
[#383] 2026/08/08 22:43:59 Running task keygen
[#383] 2026/08/08 22:44:00 Running task version
[#383] 2026/08/08 22:44:00 Running task cache_restore
[#383] 2026/08/08 22:44:36 Running task postgres
[#383] 2026/08/08 22:44:41 Running task test
[#383] 2026/08/08 22:47:53 Running task build
[#383] 2026/08/08 22:49:02 Running task publish
[#383] 2026/08/08 22:49:03 Running task cache_save
qemu-system-x86_64: terminating on signal 15 from pid 2725638 (/bin/sh)
cacher_install
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
+ + sh
curl -fsSL https://bigbes.pages.srht.bigb.es/ci-cacher/install.sh
install.sh: fetching https://bigbes.pages.srht.bigb.es/ci-cacher/cacher-linux-amd64
install.sh: checksum ok
install.sh: added /home/build/.local/bin to ~/.buildenv PATH
install.sh: installed → /home/build/.local/bin/cacher
                       _
   ___ __ _  ___ _ __ | |__   ___ _ __
  / __/ _` |/ __| '_ \| '_ \ / _ \ '__|
 | (_| (_| | (__| | | | | | |  __/ |
  \___\__,_|\___|_| |_|_| |_|\___|_|
cacher: S3-backed CI cache helper for builds.sr.ht — replaces .builds/lib/ci-lib.sh
go.bigb.es/cacher

GitVersion:    0.2.2
GitCommit:     333189a20b7bb2b7440b083e151afd24bb5a61d4
GitTreeState:  dirty
BuildDate:     2026-08-06T22:16:13Z
BuiltBy:       unknown
Clean:         false
GoVersion:     go1.26.3
Compiler:      gc
ModuleSum:     unknown
Platform:      linux/amd64
install.sh: note — /home/build/.local/bin is not on your PATH
cacher_init
1
2
3
4
5
6
7
8
9
+ cacher init --endpoint https://s3.bigb.es --region garage --bucket docker-cache --prefix sr-ht-spec/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=sr-ht-spec/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
scss
1
2
3
4
+ cacher dir download scss/0.84.5-779ad9f174ea5ab7e755f6df0ec9e5912d67dd16.tar.zst /home/build/scss --exec $'\n  git clone --depth 1 --branch "$CORE_VER" \\\n    https://git.sr.ht/~sircmpwn/core.sr.ht /tmp/core\n  mkdir -p ~/scss/bootstrap\n  cp /tmp/core/scss/*.scss /tmp/core/scss/*.css ~/scss/\n  git init -q /tmp/bootstrap\n  git -C /tmp/bootstrap remote add origin https://github.com/twbs/bootstrap\n  git -C /tmp/bootstrap fetch -q --depth 1 origin "$BOOTSTRAP_REV"\n  git -C /tmp/bootstrap checkout -q FETCH_HEAD\n  cp -r /tmp/bootstrap/scss ~/scss/bootstrap/scss\n'
Cache HIT  — scss/0.84.5-779ad9f174ea5ab7e755f6df0ec9e5912d67dd16.tar.zst → extract /home/build/scss
+ sudo mkdir -p /usr/share/sourcehut
+ sudo cp -r /home/build/scss /usr/share/sourcehut/scss
keygen
1
2
3
+ SUDO=sudo
+ abuild-keygen -a -n -i -q
writing RSA key
version
1
2
3
4
5
6
7
8
9
10
11
+ cd sr-ht-spec
++ git describe --tags --always --dirty
+ desc=cb60d4f
+ base=cb60d4f
+ case "$base" in
++ git rev-list --count HEAD
building 0.0.110 from cb60d4f
+ ver=0.0.110
+ echo 'export PKGVER=0.0.110'
+ echo 'building 0.0.110 from cb60d4f'
+ git status --porcelain
cache_restore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
++ cacher key 'gomod/{hash}.tar.zst' --hash-from sr-ht-spec/go.sum
+ KEY_MOD=gomod/ca73398d29b8819f.tar.zst
++ cacher key 'gocache/{hash}.tar.zst' --hash-from sr-ht-spec/go.sum
+ KEY_GOC=gocache/ca73398d29b8819f.tar.zst
+ echo 'export KEY_MOD=gomod/ca73398d29b8819f.tar.zst KEY_GOC=gocache/ca73398d29b8819f.tar.zst'
+ cacher dir download gomod/ca73398d29b8819f.tar.zst /home/build/go/pkg/mod --optional
Cache MISS — gomod/ca73398d29b8819f.tar.zst
+ cacher dir download gocache/ca73398d29b8819f.tar.zst /home/build/.cache/go-build --optional
Cache MISS — gocache/ca73398d29b8819f.tar.zst
+ cd sr-ht-spec
+ chmod -R u+w /home/build/go/pkg/mod
+ true
+ go mod verify
+ go mod download
+ go mod verify
all modules verified
+ git status --porcelain
postgres
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
+ sudo install -d -o postgres -g postgres /run/postgresql /var/lib/postgresql/data
+ sudo -u postgres initdb -D /var/lib/postgresql/data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with this locale configuration:
  locale provider:   libc
  LC_COLLATE:  C
  LC_CTYPE:    C.UTF-8
  LC_MESSAGES: C
  LC_MONETARY: C
  LC_NUMERIC:  C
  LC_TIME:     C
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are enabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default "max_connections" ... 100
selecting default "shared_buffers" ... 128MB
selecting default time zone ... UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok


Success.

initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
+ sudo -u postgres pg_ctl -D /var/lib/postgresql/data -l /tmp/pg.log -w start -o '-k /run/postgresql -h 127.0.0.1       -c fsync=off -c full_page_writes=off -c synchronous_commit=off'
waiting for server to start.... done
server started
++ id -un
+ sudo -u postgres createuser -s build
++ id -un
+ sudo -u postgres createdb -O build specsrht_test
++ id -un
+ echo 'export SPECSRHT_TEST_PG='\''postgresql://build@127.0.0.1/specsrht_test?sslmode=disable'\'''
test
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
+ cd sr-ht-spec
+ '[' -z 'postgresql://build@127.0.0.1/specsrht_test?sslmode=disable' ']'
++ gofmt -l .
+ test -z ''
+ go vet ./...
+ make test
go test -timeout 20m ./...
ok  	sourcecraft.dev/bigbes/sr-ht-spec/api	0.013s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/authn	0.015s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/cmd/specsrht	0.027s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/cmd/specsrht-migrate	0.326s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/core	0.019s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/coreauth	0.006s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/db	2.825s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/doc	0.064s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/gitx	0.232s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/graph	0.046s
?   	sourcecraft.dev/bigbes/sr-ht-spec/graph/api	[no test files]
?   	sourcecraft.dev/bigbes/sr-ht-spec/graph/model	[no test files]
ok  	sourcecraft.dev/bigbes/sr-ht-spec/hooks	0.479s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/mcpsrv	0.129s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/prosediff	0.018s
?   	sourcecraft.dev/bigbes/sr-ht-spec/prosediff/cmd/prosediff	[no test files]
ok  	sourcecraft.dev/bigbes/sr-ht-spec/search	1.585s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/service	4.563s
ok  	sourcecraft.dev/bigbes/sr-ht-spec/web	0.873s
build
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
+ cd sr-ht-spec
+ REPODEST=/home/build/packages
+ abuild -d
>>> spec.sr.ht: Building build/spec.sr.ht 0.0.110-r0 (using abuild 3.18.0_rc5-r0) started Sat, 08 Aug 2026 22:47:53 +0000
>>> spec.sr.ht: Validating /home/build/sr-ht-spec/APKBUILD...
>>> WARNING: spec.sr.ht: AGENTS.md is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: CLAUDE.md is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: Makefile is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: api is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: authn is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: cmd is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: core is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: coreauth is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: db is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: doc is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: docs is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: gitx is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: go.mod is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: go.sum is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: graph is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: hooks is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: mcpsrv is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: migrations is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: prosediff is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: schema.sql is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: scss is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: search is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: service is not in $source/$install/$triggers
>>> WARNING: spec.sr.ht: web is not in $source/$install/$triggers
>>> spec.sr.ht: Cleaning up srcdir
>>> spec.sr.ht: Cleaning up pkgdir
>>> spec.sr.ht: Cleaning up tmpdir
mkdir -p web/static
rm -f web/static/main.css web/static/main.min.*.css
sassc -I/usr/share/sourcehut/scss scss/main.scss web/static/main.css
/usr/share/sourcehut/scss/contrast.scss:72 DEBUG: #fff was adjusted to #fff but this is not enough contrast to #007bff (AERT).
/usr/share/sourcehut/scss/contrast.scss:72 DEBUG: #fff was adjusted to #fff but this is not enough contrast to #17a2b8 (AERT).
/usr/share/sourcehut/scss/contrast.scss:72 DEBUG: #fff was adjusted to #fff but this is not enough contrast to #dc3545 (AERT).
minify -o web/static/main.min.css web/static/main.css
(5.1 ms, 168 kB, 129 kB,  77.2%,  33 MB/s) - web/static/main.css to web/static/main.min.css
mv web/static/main.min.css \
	web/static/main.min.$(sha256sum web/static/main.min.css | cut -c1-8).css
rm -f web/static/main.css
go build -o specsrht ./cmd/specsrht
go build -o specsrht-migrate ./cmd/specsrht-migrate
>>> spec.sr.ht: Entering fakeroot...
install -Dm755 specsrht /home/build/sr-ht-spec/pkg/spec.sr.ht/usr/bin/specsrht
install -Dm755 specsrht-migrate /home/build/sr-ht-spec/pkg/spec.sr.ht/usr/bin/specsrht-migrate
mkdir -p /home/build/sr-ht-spec/pkg/spec.sr.ht/usr/share/sourcehut/migrations/spec.sr.ht
install -Dm644 -t /home/build/sr-ht-spec/pkg/spec.sr.ht/usr/share/sourcehut/migrations/spec.sr.ht migrations/*.sql
install -Dm644 schema.sql /home/build/sr-ht-spec/pkg/spec.sr.ht/usr/share/sourcehut/spec.sr.ht.sql
>>> spec.sr.ht*: Running postcheck for spec.sr.ht
>>> spec.sr.ht*: Preparing package spec.sr.ht...
>>> spec.sr.ht*: Stripping binaries
>>> spec.sr.ht*: Tracing dependencies...
>>> spec.sr.ht*: Package size: 39.7 MB
>>> spec.sr.ht*: Compressing data...
>>> spec.sr.ht*: Create checksum...
>>> spec.sr.ht*: Create spec.sr.ht-0.0.110-r0.apk
>>> spec.sr.ht: Build complete at Sat, 08 Aug 2026 22:49:02 +0000 elapsed time 0h 1m 9s
>>> spec.sr.ht: Cleaning up srcdir
>>> spec.sr.ht: Cleaning up pkgdir
>>> spec.sr.ht: Cleaning up tmpdir
>>> spec.sr.ht: Updating the build/x86_64 repository index...
>>> spec.sr.ht: Signing the index...
+ find /home/build/packages -name '*.apk'
/home/build/packages/build/x86_64/spec.sr.ht-0.0.110-r0.apk
publish
1
2
3
4
5
6
7
8
9
10
11
12
13
+ '[' '!' -r /home/build/.apk-ci.env ']'
+ set +x
+ find /home/build/packages -name '*.apk' -print
+ read -r f
++ basename /home/build/packages/build/x86_64/spec.sr.ht-0.0.110-r0.apk
+ rclone copyto /home/build/packages/build/x86_64/spec.sr.ht-0.0.110-r0.apk garage:repo/alpine/v3.22/bigbes/x86_64/spec.sr.ht-0.0.110-r0.apk
2026/08/08 22:49:02 NOTICE: Config file "/home/build/.config/rclone/rclone.conf" not found - using defaults
++ basename /home/build/packages/build/x86_64/spec.sr.ht-0.0.110-r0.apk
+ echo 'uploaded spec.sr.ht-0.0.110-r0.apk'
uploaded spec.sr.ht-0.0.110-r0.apk
+ read -r f
+ echo 'published; apk-mirror on phoebe re-indexes within 15 minutes'
published; apk-mirror on phoebe re-indexes within 15 minutes
cache_save
1
2
3
4
+ cacher dir upload gomod/ca73398d29b8819f.tar.zst /home/build/go/pkg/mod
Packing /home/build/go/pkg/mod → gomod/ca73398d29b8819f.tar.zst
+ cacher dir upload gocache/ca73398d29b8819f.tar.zst /home/build/.cache/go-build
Packing /home/build/.cache/go-build → gocache/ca73398d29b8819f.tar.zst
Build complete: success 9 days ago (took 5 minutes)