main
2 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| eec8c28fb3 |
changed perms
Some checks failed
Go Benchmark / Performance Regression Check (push) Has been cancelled
Cerberus Integration / Cerberus Security Stack Integration (push) Has been cancelled
Upload Coverage to Codecov / Backend Codecov Upload (push) Has been cancelled
Upload Coverage to Codecov / Frontend Codecov Upload (push) Has been cancelled
CodeQL - Analyze / CodeQL analysis (go) (push) Has been cancelled
CodeQL - Analyze / CodeQL analysis (javascript-typescript) (push) Has been cancelled
CrowdSec Integration / CrowdSec Bouncer Integration (push) Has been cancelled
Docker Build, Publish & Test / build-and-push (push) Has been cancelled
Quality Checks / Auth Route Protection Contract (push) Has been cancelled
Quality Checks / Codecov Trigger/Comment Parity Guard (push) Has been cancelled
Quality Checks / Backend (Go) (push) Has been cancelled
Quality Checks / Frontend (React) (push) Has been cancelled
Rate Limit integration / Rate Limiting Integration (push) Has been cancelled
Security Scan (PR) / Trivy Binary Scan (push) Has been cancelled
Supply Chain Verification (PR) / Verify Supply Chain (push) Has been cancelled
WAF integration / Coraza WAF Integration (push) Has been cancelled
Docker Build, Publish & Test / Security Scan PR Image (push) Has been cancelled
Repo Health Check / Repo health (push) Has been cancelled
History Rewrite Dry-Run / Dry-run preview for history rewrite (push) Has been cancelled
Prune Renovate Branches / prune (push) Has been cancelled
Renovate / renovate (push) Has been cancelled
Nightly Build & Package / sync-development-to-nightly (push) Has been cancelled
Nightly Build & Package / Trigger Nightly Validation Workflows (push) Has been cancelled
Nightly Build & Package / build-and-push-nightly (push) Has been cancelled
Nightly Build & Package / test-nightly-image (push) Has been cancelled
Nightly Build & Package / verify-nightly-supply-chain (push) Has been cancelled
Update GeoLite2 Checksum / update-checksum (push) Has been cancelled
Container Registry Prune / prune-ghcr (push) Has been cancelled
Container Registry Prune / prune-dockerhub (push) Has been cancelled
Container Registry Prune / summarize (push) Has been cancelled
|
|||
|
|
928033ec37 |
chore(ci): implement "build once, test many" architecture
Restructures CI/CD pipeline to eliminate redundant Docker image builds across parallel test workflows. Previously, every PR triggered 5 separate builds of identical images, consuming compute resources unnecessarily and contributing to registry storage bloat. Registry storage was growing at 20GB/week due to unmanaged transient tags from multiple parallel builds. While automated cleanup exists, preventing the creation of redundant images is more efficient than cleaning them up. Changes CI/CD orchestration so docker-build.yml is the single source of truth for all Docker images. Integration tests (CrowdSec, Cerberus, WAF, Rate Limiting) and E2E tests now wait for the build to complete via workflow_run triggers, then pull the pre-built image from GHCR. PR and feature branch images receive immutable tags that include commit SHA (pr-123-abc1234, feature-dns-provider-def5678) to prevent race conditions when branches are updated during test execution. Tag sanitization handles special characters, slashes, and name length limits to ensure Docker compatibility. Adds retry logic for registry operations to handle transient GHCR failures, with dual-source fallback to artifact downloads when registry pulls fail. Preserves all existing functionality and backward compatibility while reducing parallel build count from 5× to 1×. Security scanning now covers all PR images (previously skipped), blocking merges on CRITICAL/HIGH vulnerabilities. Concurrency groups prevent stale test runs from consuming resources when PRs are updated mid-execution. Expected impact: 80% reduction in compute resources, 4× faster total CI time (120min → 30min), prevention of uncontrolled registry storage growth, and 100% consistency guarantee (all tests validate the exact same image that would be deployed). Closes #[issue-number-if-exists] |