veza/.github/workflows
senke 376d9adc44 ci: retire legacy backend-ci.yml, centralize Docker probe in SkipIfNoIntegration
Two changes in one commit because they address the same root cause: the
Forgejo self-hosted runner doesn't expose a Docker socket, and the legacy
backend-ci.yml workflow both required Docker for its integration tests
AND enforced a 75% coverage gate that the codebase has never met (actual
~33%). The consolidated Veza CI workflow (ci.yml) already covers the
same Go build / test / govulncheck surface and is now green — there's
no reason to keep the legacy duplicate red in parallel.

1. .github/workflows/backend-ci.yml → backend-ci.yml.disabled

   Renamed, not deleted. Reactivation path:
     - Raise real coverage closer to 75%, OR lower the threshold in the
       workflow file to a realistic value (30–40%)
     - Provide Docker socket access on the runner OR gate the
       integration job on a docker-in-docker service
     - `git mv` it back to .yml

   This finishes the CI consolidation that started in 2c6217554
   ("ci: consolidate rust-ci + stream-ci into ci.yml Rust job").
   backend-ci.yml was the last un-consolidated workflow and its two
   failure modes (coverage gate + missing Docker) made it permanently
   red without measuring anything the consolidated ci.yml doesn't
   already check.

2. testutils.SkipIfNoIntegration: add a runtime Docker probe

   Before: only honored `-short` and VEZA_SKIP_INTEGRATION=1. Tests
   calling GetTestRedisClient / GetTestContainerDB on a host without
   Docker would get past the skip check and then fail inside
   testcontainers.GenericContainer with "rootless Docker not found".
   This is exactly what happened to the J4 TestCleanRedisKeys_Integration
   on the Forgejo runner (run 105).

   After: added a memoized `dockerAvailable()` helper that probes
   testcontainers.NewDockerProvider() once per test process. If the
   probe fails, all tests calling SkipIfNoIntegration skip cleanly
   instead of panicking. Result: J4 worker test skips on Forgejo,
   still runs (and passes) on any host with Docker.

   The probe is centralized so any existing or future integration test
   that calls SkipIfNoIntegration gets this behavior for free — no need
   to sprinkle inline docker checks.

Verification (local, Docker available):
  go build ./...                                                     OK
  go test ./internal/workers/ -run TestCleanRedisKeys_Integration    PASS (3.26s)
  SkipIfNoIntegration logic audited — no_short / no_env_var path
  still runs the Docker probe, Docker-unavailable path calls t.Skip
  with a clear message.

Expected CI impact:
  - Veza CI / Backend (Go): already green, should stay green
  - Backend API CI: no longer runs (workflow disabled)
  - All other statuses unchanged
2026-04-15 16:12:45 +02:00
..
accessibility.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
backend-ci.yml.disabled ci: retire legacy backend-ci.yml, centralize Docker probe in SkipIfNoIntegration 2026-04-15 16:12:45 +02:00
cd.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
chromatic.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
ci.yml ci(cache): add save-always to persist cache on job failure 2026-04-14 18:01:40 +02:00
commitlint.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
container-scan.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
contract-testing.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
flaky-report.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
frontend-ci.yml ci: fix duplicate env block in staging-validation workflow 2026-04-09 14:51:10 +02:00
go-fuzz.yml ci: bump Go to 1.25 and fix goimports drift in 3 files 2026-04-14 17:02:09 +02:00
load-test-nightly.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
mutation-testing.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
openapi-lint.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
performance.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
rust-mutation.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
sast.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
security-scan.yml ci(security): allowlist test fixtures and historic backup dirs in gitleaks 2026-04-14 11:45:43 +02:00
semgrep.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
staging-validation.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
storybook-audit.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
trivy-fs.yml ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
visual-regression.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00
zap-dast.yml.disabled ci: simplify workflows for Forgejo self-hosted runner 2026-04-09 20:08:37 +02:00