fix(ci): unblock the client pipeline; isolate the known-red test job

- Remove the unused 'type Event' named import from the committed
  generated events.ts and teach the CI patch step to strip it on future
  regenerations — the previous line-anchored patch deliberately skipped
  imports, so ESLint failed on every run.
- Split vitest into its own client-tests job so the known-red suite
  (P2 triage pending) is exactly one visible failing check instead of
  masking the audit/lint/typecheck/prettier gates, which are now green.
- Drop the three stale roadmap files (PHASE_BC_LOCAL_TODO.md,
  phase-b-acceleration.md, phase-c-differentiation.md) — referenced
  nowhere since the CHANGELOG cleanup; already deleted on the
  security-hardening branch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
J3vb
2026-07-18 11:46:52 +02:00
co-authored by Claude Fable 5
parent 77ec4f1466
commit 2e6bce154e
5 changed files with 28 additions and 588 deletions
+24 -1
View File
@@ -79,7 +79,7 @@ jobs:
working-directory: Server/
client-check:
name: Client Typecheck & Test
name: Client Static Checks
runs-on: windows-latest
defaults:
run:
@@ -107,6 +107,7 @@ jobs:
if (fs.existsSync(p)) {
let c = fs.readFileSync(p, 'utf8');
c = c.replace(/^type Event\b/gm, 'type _Event').replace(/^interface Event\b/gm, 'interface _Event');
c = c.replace(/,\s*type Event\s*(?=\})/g, ' '); // unused named import from @tauri-apps/api/event
fs.writeFileSync(p, c);
console.log('Patched: renamed Event -> _Event in generated/events.ts');
} else {
@@ -132,6 +133,28 @@ jobs:
- name: Knip (unused code & deps)
run: npx knip || true
# Unit tests live in their own job so a red suite is visible as exactly one
# failing check instead of masking the static gates above. The suite is
# KNOWN RED pending the reboot-plan P2 triage — do not "fix" tests here by
# editing assertions; see docs/plans and the P2 triage rules.
client-tests:
name: Client Unit Tests
runs-on: windows-latest
defaults:
run:
working-directory: Client/tauri-client/
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20
cache: npm
cache-dependency-path: Client/tauri-client/package-lock.json
- name: Install npm dependencies
run: npm ci
- name: Run unit tests with coverage
run: npx vitest run --coverage --reporter=default