fix(ci): M8 audit CI/lean batch — CD merge, stacked-PR triggers, gitleaks/nightly, unused deps (#214) #221
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!221
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/m8-ci-lean"
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?
CI/lean batch of FIX-ALL umbrella #215 (audit #214 findings). Closes out the last remediation PR.
Merged pipelines
cd.ymldeleted;staging-deploy.ymlis THE image build — tags:staging/:{sha}-stagingfor the deploy and:latest/:{sha}(cd.yml's consumers: compose default, prod pulls). Admin build unified onnpm ci(was driftednpm install).cancel-in-progress: false— a cancelled deploy leaves staging half-updated; queue instead.Stacked-PR triggers
pull_requestno longer restricted tobranches: [main]on api-ci/desktop-ci/admin-ci — PRs targeting feature branches (the #207 stacked pattern) get CI. Paths filters stay. No wedge risk: branch protection requires onlySecurity CI / security-scan, which has no filters..github/actions/kaz-setup/**(action changes re-fire CI).Scanner fixes
fetch-depth: 0— gitleaks runs--no-git(working-tree scan); full-history fetch bought nothing.kaz-setupaction (mirror-first fallback, #118 incident class) replaces the inline GitHub-only download; libkazsign guard kept.API CI lean
actions/cache@v4) in both jobs.Unused deps
coverlet.collectorremoved (gate uses standalone coverlet.console),once_cellremoved (zero usages; transitive-only in lock).Validated locally: YAML parse ×6,
cargo check --workspacegreen, test project builds 0 errors.- staging-deploy.yml absorbs cd.yml (deleted): two pipelines built the same Containerfile twice per push with drifted admin builds (npm ci vs npm install). One build now tags :staging/:{sha}-staging for the deploy AND :latest/:{sha} for the compose default + prod pulls. Admin build unified on npm ci. cancel-in-progress: false — a cancelled deploy leaves staging half-updated; queue instead. - Stacked-PR triggers: drop branches:[main] from pull_request on api-ci/ desktop-ci/admin-ci (PRs targeting a feature branch — the #207 pattern — now get CI; paths filters keep unrelated PRs quiet). Branch protection requires only security-scan, which has no filters — no wedge risk. - kaz-setup paths gap: api-ci + staging-deploy now re-fire when the shared action changes. - security-ci: drop fetch-depth:0 — gitleaks runs --no-git (working tree); the full-history fetch bought nothing. - security-nightly: shared kaz-setup action (mirror-first fallback chain) replaces the inline GitHub-only download; libkazsign guard kept. - api-ci lean: the coverage gate IS the test run (it hard-fails on test failures and prints [FAIL] blocks) — the separate plain suite run was double work (~4 min/PR). NuGet cache (actions/cache@v4) in both jobs. - migrations leg: postgres readiness window 60s→90s + container-log dump on failure (2026-11-17 #219 infra flake ran exactly this path). - Unused deps removed: coverlet.collector (gate uses standalone coverlet.console), once_cell (zero usages; remains transitive only). Validated: YAML parse all 6 workflows, cargo check --workspace green, test project builds 0 errors.