Running phase: unpackPhase unpacking source archive /nix/store/zbsglm83x5a9dx835nzhyka8wc41130v-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/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 buildPhase completed in 46 seconds Running phase: checkPhase ok github.com/Mic92/gitea-mq/internal/batch 17.344s ok github.com/Mic92/gitea-mq/internal/config 0.027s ok github.com/Mic92/gitea-mq/internal/discovery 7.923s ok github.com/Mic92/gitea-mq/internal/forge 0.019s ok github.com/Mic92/gitea-mq/internal/gitea 1.756s ok github.com/Mic92/gitea-mq/internal/github 0.217s 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-postgres840753969/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-postgres840753969/data -l logfile start 2026-10-08 18:16:41.594 UTC [10635] LOG: starting PostgreSQL 18.6 on x86_64-pc-linux-gnu, compiled by clang version 21.1.8, 64-bit 2026-10-08 18:16:41.605 UTC [10635] LOG: listening on Unix socket "/build/gitea-mq-test-postgres840753969/.s.PGSQL.5432" 2026-10-08 18:16:41.648 UTC [10643] LOG: database system was shut down at 2026-10-08 18:16:39 UTC 2026-10-08 18:16:41.656 UTC [10645] FATAL: the database system is starting up 2026-10-08 18:16:41.664 UTC [10635] LOG: database system is ready to accept connections 2026/10/08 18:16:41 cmd/web.go:263:runWeb() [I] Starting Gitea on PID: 10651 2026/10/08 18:16:42 cmd/web.go:115:showWebStartupMessage() [I] Gitea version: 1.27.3 built with go1.26.8 : sqlite, sqlite_unlock_notify 2026/10/08 18:16:42 cmd/web.go:116:showWebStartupMessage() [I] * RunMode: prod 2026/10/08 18:16:42 cmd/web.go:117:showWebStartupMessage() [I] * AppPath: /nix/store/s8027r0z14bc2jr3kxnxxvf62sw8calf-gitea-1.27.3/bin/gitea 2026/10/08 18:16:42 cmd/web.go:118:showWebStartupMessage() [I] * WorkPath: /build/gitea-mq-test-gitea3033748288 2026/10/08 18:16:42 cmd/web.go:119:showWebStartupMessage() [I] * CustomPath: /build/gitea-mq-test-gitea3033748288/custom 2026/10/08 18:16:42 cmd/web.go:120:showWebStartupMessage() [I] * ConfigFile: /build/gitea-mq-test-gitea3033748288/custom/conf/app.ini 2026/10/08 18:16:42 cmd/web.go:121:showWebStartupMessage() [I] Prepare to run web server 2026/10/08 18:16:42 routers/init.go:117:InitWebInstalled() [I] Git version: 2.55.0 (home: /build/gitea-mq-test-gitea3033748288/data/home) 2026/10/08 18:16:42 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/08 18:17:11 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/08 18:17:25 .../v3@v3.10.0/command_run.go:382:(*Command).run() [W] [Slow SQL Query] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `email_notifications_preference`, `passwd`, `passwd_hash_algo`, `must_change_password`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `language`, `description`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `is_restricted`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `num_teams`, `num_members`, `visibility`, `repo_admin_change_team_access`, `diff_view_style`, `theme`, `keep_activity_private` FROM `user` LIMIT 1 [] - 13.224133236s New user 'testuser' has been successfully created! 2026-10-08 18:17:25.597 UTC [10725] ERROR: relation "goose_db_version" does not exist at character 36 2026-10-08 18:17:25.597 UTC [10725] STATEMENT: SELECT version_id, is_applied from goose_db_version ORDER BY id DESC 2026/10/08 18:17:25 OK 001_initial.sql (39.89ms) 2026/10/08 18:17:25 OK 002_check_status_target_url.sql (10.96ms) 2026/10/08 18:17:25 OK 003_add_forge.sql (12.14ms) 2026/10/08 18:17:25 OK 004_batches.sql (16.57ms) 2026/10/08 18:17:25 goose: successfully migrated database to version: 4 --- FAIL: TestFullMergeQueueFlow (0.42s) e2e_test.go:49: create token: Post "http://127.0.0.1:41141/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:41141: connect: connection refused 2026-10-08 18:17:26.058 UTC [10738] ERROR: relation "goose_db_version" does not exist at character 36 2026-10-08 18:17:26.058 UTC [10738] STATEMENT: SELECT version_id, is_applied from goose_db_version ORDER BY id DESC 2026/10/08 18:17:26 OK 001_initial.sql (65.96ms) 2026/10/08 18:17:26 OK 002_check_status_target_url.sql (17.02ms) 2026/10/08 18:17:26 OK 003_add_forge.sql (11ms) 2026/10/08 18:17:26 OK 004_batches.sql (11.89ms) 2026/10/08 18:17:26 goose: successfully migrated database to version: 4 --- FAIL: TestGitea_BatchFlow_Green (0.44s) gitea_batch_test.go:39: create token: Post "http://127.0.0.1:41141/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:41141: connect: connection refused --- FAIL: TestMergeBranches_PrivateRepo_CachedClone (0.00s) gitea_cache_test.go:25: create token: Post "http://127.0.0.1:41141/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:41141: connect: connection refused --- FAIL: TestFastForwardRef_RealGitea (0.00s) gitea_ff_test.go:26: create token: Post "http://127.0.0.1:41141/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:41141: connect: connection refused --- FAIL: TestStackMerges_RealGitea (0.00s) gitea_ff_test.go:94: create token: Post "http://127.0.0.1:41141/api/v1/users/testuser/tokens": dial tcp 127.0.0.1:41141: connect: connection refused 2026-10-08 18:17:26.652 UTC [10741] ERROR: relation "goose_db_version" does not exist at character 36 2026-10-08 18:17:26.652 UTC [10741] STATEMENT: SELECT version_id, is_applied from goose_db_version ORDER BY id DESC 2026/10/08 18:17:26 OK 001_initial.sql (73.2ms) 2026/10/08 18:17:26 OK 002_check_status_target_url.sql (26.42ms) 2026/10/08 18:17:26 OK 003_add_forge.sql (15.93ms) 2026/10/08 18:17:26 OK 004_batches.sql (35.03ms) 2026/10/08 18:17:26 goose: successfully migrated database to version: 4 2026/10/08 18:17:26 INFO enqueued PR pr=1 position=1 2026/10/08 18:17:26 INFO enqueued PR from automerge detection pr=1 position=1 2026/10/08 18:17:26 INFO enqueued PR pr=2 position=2 2026/10/08 18:17:26 INFO enqueued PR from automerge detection pr=2 position=2 2026/10/08 18:17:26 INFO enqueued PR pr=3 position=3 2026/10/08 18:17:26 INFO enqueued PR from automerge detection pr=3 position=3 2026/10/08 18:17:26 INFO batch formed batch=1 branch=main members=3 2026/10/08 18:17:26 INFO batch built batch=1 build=1 sha=merge(merge(merge(sha-main,sha1),sha2),sha3) current=3 pending=0 2026/10/08 18:17:26 INFO batch landed batch=1 sha=merge(merge(merge(sha-main,sha1),sha2),sha3) prs=3 2026/10/08 18:17:26 INFO batch done batch=1 landed=3 ejected=0 builds=1 flaky=false 2026-10-08 18:17:27.147 UTC [10745] ERROR: relation "goose_db_version" does not exist at character 36 2026-10-08 18:17:27.147 UTC [10745] STATEMENT: SELECT version_id, is_applied from goose_db_version ORDER BY id DESC 2026/10/08 18:17:27 OK 001_initial.sql (14.47ms) 2026/10/08 18:17:27 OK 002_check_status_target_url.sql (12.95ms) 2026/10/08 18:17:27 OK 003_add_forge.sql (15.26ms) 2026/10/08 18:17:27 OK 004_batches.sql (12.55ms) 2026/10/08 18:17:27 goose: successfully migrated database to version: 4 2026/10/08 18:17:27 INFO enqueued PR pr=1 position=1 2026/10/08 18:17:27 INFO enqueued PR from automerge detection pr=1 position=1 2026/10/08 18:17:27 INFO started testing pr=1 branch=gitea-mq/1 sha=merge(sha-main,sha-head) 2026/10/08 18:17:27 INFO started testing for head-of-queue pr=1 branch=gitea-mq/1 2026/10/08 18:17:27 INFO all checks passed pr=1 2026/10/08 18:17:27 INFO dequeued PR pr=1 was_head=true 2026/10/08 18:17:27 INFO removed merged PR from queue pr=1 FAIL 2026/10/08 18:17:27 .../graceful/manager_unix.go:144:(*Manager).handleSignals() [W] PID 10651. Received SIGTERM. Shutting down... 2026/10/08 18:17:27 .../graceful/manager_unix.go:154:(*Manager).handleSignals() [W] PID: 10651. Background context for manager closed - context canceled - Shutting down... 2026/10/08 18:17:27 services/cron/tasks.go:142:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/08 18:17:27 models/repo.go:234:CheckRepoStats() [W] CheckRepoStats: Cancelled before repository count 'num_watches' 2026/10/08 18:17:27 services/cron/tasks.go:142:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/08 18:17:27 services/cron/tasks.go:142:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/08 18:17:27 models/git/branch.go:310:RemoveOldDeletedBranches() [E] DeletedBranchesCleanup: context canceled 2026/10/08 18:17:27 .../migrations/update.go:21:UpdateMigrationPosterID() [W] UpdateMigrationPosterID aborted before github 2026/10/08 18:17:27 services/cron/tasks.go:142:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/08 18:17:27 .../actions/clear_tasks.go:181:CancelAbandonedJobs() [W] find abandoned jobs: context canceled 2026/10/08 18:17:27 services/cron/tasks.go:142:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/08 18:17:27 services/cron/tasks.go:142:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026/10/08 18:17:27 services/cron/tasks.go:142:(*Task).RunWithUser.1() [E] CreateNotice: context canceled 2026-10-08 18:17:27.823 UTC [10635] LOG: received smart shutdown request 2026-10-08 18:17:27.844 UTC [10635] LOG: background worker "logical replication launcher" (PID 10648) exited with exit code 1 2026-10-08 18:17:27.851 UTC [10641] LOG: shutting down 2026-10-08 18:17:27.874 UTC [10641] LOG: checkpoint starting: shutdown immediate 2026-10-08 18:17:34.204 UTC [10641] LOG: checkpoint complete: wrote 3926 buffers (24.0%), wrote 3 SLRU buffers; 0 WAL file(s) added, 0 removed, 1 recycled; write=0.394 s, sync=5.851 s, total=6.354 s; sync files=1317, longest=0.030 s, average=0.005 s; distance=18230 kB, estimate=18230 kB; lsn=0/29336D8, redo lsn=0/29336D8 2026-10-08 18:17:34.271 UTC [10635] LOG: database system is shut down FAIL github.com/Mic92/gitea-mq/internal/integration 55.886s FAIL