Running phase: unpackPhase unpacking source archive /nix/store/klgk58k9jym002i20ng1l1php0wpnbh7-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase Running phase: buildPhase Building subPackage ./cmd/gitea-mq Building subPackage ./internal/batch Building subPackage ./internal/config Building subPackage ./internal/discovery Building subPackage ./internal/forge Building subPackage ./internal/gitea Building subPackage ./internal/github Building subPackage ./internal/github/ghfake Building subPackage ./internal/httpx Building subPackage ./internal/integration github.com/Mic92/gitea-mq/internal/integration: no non-test Go files in /build/source/internal/integration Building subPackage ./internal/logutil Building subPackage ./internal/merge Building subPackage ./internal/monitor Building subPackage ./internal/poller Building subPackage ./internal/queue Building subPackage ./internal/registry Building subPackage ./internal/store/pg Building subPackage ./internal/testutil Building subPackage ./internal/web Building subPackage ./internal/webhook Running phase: checkPhase ok github.com/Mic92/gitea-mq/internal/batch 19.348s ok github.com/Mic92/gitea-mq/internal/config 0.029s ok github.com/Mic92/gitea-mq/internal/discovery 10.566s ok github.com/Mic92/gitea-mq/internal/forge 0.006s ok github.com/Mic92/gitea-mq/internal/gitea 2.962s ok github.com/Mic92/gitea-mq/internal/github 0.300s ok github.com/Mic92/gitea-mq/internal/httpx 0.040s The files belonging to this database system will be owned by user "nixbld". This user must also own the server process. The database cluster will be initialized with locale "C". The default database encoding has accordingly been set to "SQL_ASCII". The default text search configuration will be set to "english". Data page checksums are enabled. creating directory /build/gitea-mq-test-postgres2308590007/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 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. Success. You can now start the database server using: pg_ctl -D /build/gitea-mq-test-postgres2308590007/data -l logfile start 2026-10-28 18:09:55.293 UTC [13025] LOG: starting PostgreSQL 18.6 on x86_64-pc-linux-gnu, compiled by clang version 21.1.8, 64-bit 2026-10-28 18:09:55.307 UTC [13025] LOG: listening on Unix socket "/build/gitea-mq-test-postgres2308590007/.s.PGSQL.5432" 2026-10-28 18:09:55.344 UTC [13034] FATAL: the database system is starting up 2026-10-28 18:09:55.345 UTC [13033] LOG: database system was shut down at 2026-10-28 18:09:53 UTC 2026-10-28 18:09:55.364 UTC [13025] LOG: database system is ready to accept connections 2026/10/28 18:09:55 cmd/web.go:273:runWeb() [I] Starting Gitea on PID: 13040 2026/10/28 18:09:57 cmd/web.go:117:showWebStartupMessage() [I] Gitea version: 28.2.0 built with go1.27.3 : sqlite, sqlite_unlock_notify 2026/10/28 18:09:57 cmd/web.go:118:showWebStartupMessage() [I] * RunMode: prod 2026/10/28 18:09:57 cmd/web.go:119:showWebStartupMessage() [I] * AppPath: /nix/store/6jlnlr2zx8kpwl280fhr681rmssgb2aa-gitea-28.2.0/bin/gitea 2026/10/28 18:09:57 cmd/web.go:120:showWebStartupMessage() [I] * WorkPath: /build/gitea-mq-test-gitea1448918034 2026/10/28 18:09:57 cmd/web.go:121:showWebStartupMessage() [I] * CustomPath: /build/gitea-mq-test-gitea1448918034/custom 2026/10/28 18:09:57 cmd/web.go:122:showWebStartupMessage() [I] * ConfigFile: /build/gitea-mq-test-gitea1448918034/custom/conf/app.ini 2026/10/28 18:09:57 cmd/web.go:123:showWebStartupMessage() [I] Prepare to run web server 2026/10/28 18:09:57 routers/init.go:117:InitWebInstalled() [I] Git version: 2.56.0 (home: /build/gitea-mq-test-gitea1448918034/data/home) 2026/10/28 18:09:58 modules/setting/webhook.go:38:loadWebhookFrom() [E] Deprecation: config option `[webhook].ALLOWED_HOST_LIST` present, please use `[security].ALLOWED_HOST_LIST` instead because this fallback will be/has been removed in v28.0.0 2026/10/28 18:10:25 modules/setting/webhook.go:38:loadWebhookFrom() [E] Deprecation: config option `[webhook].ALLOWED_HOST_LIST` present, please use `[security].ALLOWED_HOST_LIST` instead because this fallback will be/has been removed in v28.0.0 New user 'testuser' has been successfully created! 2026-10-28 18:10:30.253 UTC [13130] ERROR: relation "goose_db_version" does not exist at character 36 2026-10-28 18:10:30.253 UTC [13130] STATEMENT: SELECT version_id, is_applied from goose_db_version ORDER BY id DESC 2026/10/28 18:10:30 OK 001_initial.sql (25.65ms) 2026/10/28 18:10:30 OK 002_check_status_target_url.sql (7.25ms) 2026/10/28 18:10:30 OK 003_add_forge.sql (15.97ms) 2026/10/28 18:10:30 OK 004_batches.sql (18.63ms) 2026/10/28 18:10:30 OK 005_priority.sql (13.77ms) 2026/10/28 18:10:30 goose: successfully migrated database to version: 5 --- FAIL: TestFullMergeQueueFlow (0.38s) e2e_test.go:49: create token: Post "http://127.0.0.1:45727/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:45727: connect: connection refused 2026/10/28 18:10:30 .../ssh_key_authorized_keys.go:55:rewriteAllPublicKeys.1() [W] Unable to remove temporary authorized keys file: /build/gitea-mq-test-gitea1448918034/git-home/.ssh/authorized_keys.tmp: Error: remove /build/gitea-mq-test-gitea1448918034/git-home/.ssh/authorized_keys.tmp: no such file or directory 2026-10-28 18:10:30.715 UTC [13143] ERROR: relation "goose_db_version" does not exist at character 36 2026-10-28 18:10:30.715 UTC [13143] STATEMENT: SELECT version_id, is_applied from goose_db_version ORDER BY id DESC 2026/10/28 18:10:30 OK 001_initial.sql (43.91ms) 2026/10/28 18:10:30 OK 002_check_status_target_url.sql (6.38ms) 2026/10/28 18:10:30 OK 003_add_forge.sql (13.7ms) 2026/10/28 18:10:30 OK 004_batches.sql (21.92ms) 2026/10/28 18:10:30 OK 005_priority.sql (15.87ms) 2026/10/28 18:10:30 goose: successfully migrated database to version: 5 --- FAIL: TestGitea_BatchFlow_Green (0.48s) gitea_batch_test.go:39: create token: Post "http://127.0.0.1:45727/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:45727: connect: connection refused --- FAIL: TestMergeBranches_PrivateRepo_CachedClone (0.00s) gitea_cache_test.go:25: create token: Post "http://127.0.0.1:45727/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:45727: connect: connection refused --- FAIL: TestFastForwardRef_RealGitea (0.00s) gitea_ff_test.go:26: create token: Post "http://127.0.0.1:45727/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:45727: connect: connection refused --- FAIL: TestStackMerges_RealGitea (0.00s) gitea_ff_test.go:94: create token: Post "http://127.0.0.1:45727/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:45727: connect: connection refused --- FAIL: TestApplyLabels_RealGitea (0.00s) gitea_labels_test.go:19: create token: Post "http://127.0.0.1:45727/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:45727: connect: connection refused 2026-10-28 18:10:31.202 UTC [13146] ERROR: relation "goose_db_version" does not exist at character 36 2026-10-28 18:10:31.202 UTC [13146] STATEMENT: SELECT version_id, is_applied from goose_db_version ORDER BY id DESC 2026/10/28 18:10:31 OK 001_initial.sql (22.51ms) 2026/10/28 18:10:31 OK 002_check_status_target_url.sql (11.92ms) 2026/10/28 18:10:31 OK 003_add_forge.sql (12.33ms) 2026/10/28 18:10:31 OK 004_batches.sql (14.69ms) 2026/10/28 18:10:31 OK 005_priority.sql (9.87ms) 2026/10/28 18:10:31 goose: successfully migrated database to version: 5 2026/10/28 18:10:31 INFO enqueued PR pr=1 position=1 2026/10/28 18:10:31 INFO enqueued PR from automerge detection pr=1 position=1 2026/10/28 18:10:31 INFO enqueued PR pr=2 position=2 2026/10/28 18:10:31 INFO enqueued PR from automerge detection pr=2 position=2 2026/10/28 18:10:31 INFO enqueued PR pr=3 position=3 2026/10/28 18:10:31 INFO enqueued PR from automerge detection pr=3 position=3 2026/10/28 18:10:31 INFO batch formed batch=1 branch=main members=3 2026/10/28 18:10:31 INFO batch built batch=1 build=1 sha=merge(merge(merge(sha-main,sha1),sha2),sha3) current=3 pending=0 2026/10/28 18:10:31 INFO batch landed batch=1 sha=merge(merge(merge(sha-main,sha1),sha2),sha3) prs=3 2026/10/28 18:10:31 INFO batch done batch=1 landed=3 ejected=0 builds=1 flaky=false 2026-10-28 18:10:31.613 UTC [13149] ERROR: relation "goose_db_version" does not exist at character 36 2026-10-28 18:10:31.613 UTC [13149] STATEMENT: SELECT version_id, is_applied from goose_db_version ORDER BY id DESC 2026/10/28 18:10:31 OK 001_initial.sql (53.96ms) 2026/10/28 18:10:31 OK 002_check_status_target_url.sql (4.35ms) 2026/10/28 18:10:31 OK 003_add_forge.sql (8.94ms) 2026/10/28 18:10:31 OK 004_batches.sql (13.66ms) 2026/10/28 18:10:31 OK 005_priority.sql (7.88ms) 2026/10/28 18:10:31 goose: successfully migrated database to version: 5 2026/10/28 18:10:31 INFO enqueued PR pr=1 position=1 2026/10/28 18:10:31 INFO enqueued PR from automerge detection pr=1 position=1 2026/10/28 18:10:31 INFO started testing pr=1 branch=gitea-mq/1 sha=merge(sha-main,sha-head) 2026/10/28 18:10:31 INFO started testing for head-of-queue pr=1 branch=gitea-mq/1 2026/10/28 18:10:31 INFO all checks passed pr=1 2026/10/28 18:10:31 INFO dequeued PR pr=1 2026/10/28 18:10:31 INFO removed merged PR from queue pr=1 FAIL 2026/10/28 18:10:31 .../graceful/manager_unix.go:144:(*Manager).handleSignals() [W] PID 13040. Received SIGTERM. Shutting down... 2026/10/28 18:10:31 .../graceful/manager_unix.go:154:(*Manager).handleSignals() [W] PID: 13040. Background context for manager closed - context canceled - Shutting down... 2026/10/28 18:10:32 services/cron/tasks.go:140:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/28 18:10:32 models/repostats/repo.go:228:CheckRepoStats() [W] CheckRepoStats: Cancelled before repository count 'num_watches' 2026/10/28 18:10:32 services/cron/tasks.go:140:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/28 18:10:32 services/cron/tasks.go:140:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/28 18:10:32 models/git/branch.go:287:RemoveOldDeletedBranches() [E] DeletedBranchesCleanup: context canceled 2026/10/28 18:10:32 .../migrations/update.go:21:UpdateMigrationPosterID() [W] UpdateMigrationPosterID aborted before github 2026/10/28 18:10:32 services/cron/tasks.go:140:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/28 18:10:32 .../actions/clear_tasks.go:205:CancelAbandonedJobs() [W] find abandoned jobs: context canceled 2026/10/28 18:10:32 services/cron/tasks.go:140:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/28 18:10:32 services/cron/tasks.go:140:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/28 18:10:32 services/cron/tasks.go:140:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026-10-28 18:10:32.114 UTC [13025] LOG: received smart shutdown request 2026-10-28 18:10:32.146 UTC [13025] LOG: background worker "logical replication launcher" (PID 13037) exited with exit code 1 2026-10-28 18:10:32.146 UTC [13031] LOG: shutting down 2026-10-28 18:10:32.168 UTC [13031] LOG: checkpoint starting: shutdown immediate 2026-10-28 18:10:39.275 UTC [13031] LOG: checkpoint complete: wrote 3926 buffers (24.0%), wrote 3 SLRU buffers; 0 WAL file(s) added, 0 removed, 1 recycled; write=0.189 s, sync=6.800 s, total=7.130 s; sync files=1317, longest=0.089 s, average=0.006 s; distance=18240 kB, estimate=18240 kB; lsn=0/2936020, redo lsn=0/2936020 2026-10-28 18:10:39.350 UTC [13025] LOG: database system is shut down FAIL github.com/Mic92/gitea-mq/internal/integration 47.092s FAIL