From 35789379aba037a57a39795fed6c3c270de0797a Mon Sep 17 00:00:00 2001 From: Jayway Liu <14022498+bluejayway@user.noreply.gitee.com> Date: Sat, 26 Sep 2026 16:06:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20Gitea=20runner=20=E4=B8=8B=20Postgre?= =?UTF-8?q?SQL=20=E6=9C=8D=E5=8A=A1=E5=AE=B9=E5=99=A8=E4=B8=BB=E6=9C=BA?= =?UTF-8?q?=E5=90=8D=E7=94=A8=E6=9C=8D=E5=8A=A1=E5=90=8D=E8=80=8C=E9=9D=9E?= =?UTF-8?q?=20localhost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit act_runner 的 job 运行在容器内,与服务容器同处 gitea_gitea 网络, localhost:5432 在 job 容器里无监听导致此前 8 次 verify 全部失败; 改用服务名 postgres 解析,并注释说明防止改回 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14f3cb7..fe972d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,9 @@ jobs: --health-cmd pg_isready --health-interval 5s --health-timeout 5s --health-retries 10 env: - DATABASE_URL: postgresql://postgres:ci-only-password@localhost:5432/traceiq + # Gitea act_runner 的 job 跑在容器里,与服务容器同网络:主机名必须用服务名 + # postgres(GitHub 托管 runner 的 localhost 语义在这里连不通,勿改回)。 + DATABASE_URL: postgresql://postgres:ci-only-password@postgres:5432/traceiq E2E_PASSWORD: CI-Test-Only-SecurePassword882! PYTHONPATH: . steps: