fix(ci): drop unusable services block — api-ci test host died at startup #43

Merged
amiryahaya merged 1 commit from fix/api-ci-services into main 2026-11-04 04:00:38 +01:00
Owner

Root cause (diagnosed via the ci-probe PR, runs 11–12): Forgejo's act_runner does not provision GitHub-style services: containers. api-ci.yml's postgres/redis services never started, so ConnectionStrings__* pointed the app at dead localhost endpoints — the Redis session store got selected and the test host died at startup: the Test step failed in 0s with Restore & Build green (run #10).

Probe evidence: dotnet run --no-build works on the runner (exec probe 17s), docker is reachable, runner is amd64 — only the service-container check failed.

Fix: remove the services: block and the ConnectionStrings__* env from Test and coverage-gate steps. The suite needs none of it — SQLite in-memory via EnsureCreated, in-process sessions, and RedisSessionStoreTests spins its own Testcontainers Redis. This mirrors the local pre-push hook, green without Postgres/Redis all along.

This PR's own api-ci run is the end-to-end validation — it exercises the fixed workflow (build → test → coverage gate) on the same runner. Follow-up (server-side, not repo-side): cd.yml registry push still failing — check the REGISTRY_TOKEN secret's existence/scope per the workflow comment; logs need a signed-in session to read.

Task 0.6-adjacent (security harness); relates to the Forgejo Actions failure thread on #27.

**Root cause (diagnosed via the ci-probe PR, runs 11–12):** Forgejo's act_runner does not provision GitHub-style `services:` containers. api-ci.yml's postgres/redis services never started, so `ConnectionStrings__*` pointed the app at dead localhost endpoints — the Redis session store got selected and the test host died at startup: **the Test step failed in 0s with Restore & Build green** (run #10). Probe evidence: `dotnet run --no-build` works on the runner (exec probe 17s), docker is reachable, runner is amd64 — only the service-container check failed. **Fix:** remove the `services:` block and the `ConnectionStrings__*` env from Test and coverage-gate steps. The suite needs none of it — SQLite in-memory via EnsureCreated, in-process sessions, and `RedisSessionStoreTests` spins its own Testcontainers Redis. This mirrors the local pre-push hook, green without Postgres/Redis all along. **This PR's own api-ci run is the end-to-end validation** — it exercises the fixed workflow (build → test → coverage gate) on the same runner. Follow-up (server-side, not repo-side): `cd.yml` registry push still failing — check the `REGISTRY_TOKEN` secret's existence/scope per the workflow comment; logs need a signed-in session to read. Task 0.6-adjacent (security harness); relates to the Forgejo Actions failure thread on #27.
fix(ci): drop services + ConnectionStrings env — runner can't provision service containers
Some checks failed
API CI / build-and-test (pull_request) Failing after 3m29s
6261f37ccb
Forgejo act_runner does not provision GitHub-style services: containers
(diagnosed via the ci-probe PR: service container unreachable, while
dotnet exec + docker both work on the amd64 runner). api-ci.yml's
postgres/redis services never started, and the ConnectionStrings env
then pointed the app at dead localhost endpoints — Redis session store
selected, test host died at startup: the Test step's 0s failure with
Restore & Build green.

The suite needs none of it: SQLite in-memory via EnsureCreated,
in-process session store, Testcontainers Redis spun up by
RedisSessionStoreTests itself. Mirrors the local pre-push hook, which
has been green without Postgres/Redis all along.

Closes the api-ci half of the Actions-failure investigation; cd.yml
registry push (REGISTRY_TOKEN secret) remains a server-side check.
Sign in to join this conversation.
No description provided.