fix(ci): drop unusable services block — api-ci test host died at startup #43
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!43
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/api-ci-services"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, soConnectionStrings__*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-buildworks on the runner (exec probe 17s), docker is reachable, runner is amd64 — only the service-container check failed.Fix: remove the
services:block and theConnectionStrings__*env from Test and coverage-gate steps. The suite needs none of it — SQLite in-memory via EnsureCreated, in-process sessions, andRedisSessionStoreTestsspins 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.ymlregistry push still failing — check theREGISTRY_TOKENsecret'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.