From 2da490799173fc36f7c8d3dc72155ff4c2e66a63 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 22 Mar 2026 22:00:18 +0700 Subject: [PATCH] 690322:2200 Fixing Deployment Errors #03 --- .gitea/workflows/cd.yml | 4 ++-- backend/test/phase3-workflow.e2e-spec.ts | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/cd.yml b/.gitea/workflows/cd.yml index 59e5975..15bdc4f 100644 --- a/.gitea/workflows/cd.yml +++ b/.gitea/workflows/cd.yml @@ -33,12 +33,12 @@ jobs: - name: 🔍 Security & quality checks run: | # UUID misuse check (ADR-019) - if grep -r --include="*.ts" --include="*.tsx" "parseInt(.*uuid" .; then + if grep -r --include="*.ts" --include="*.tsx" --exclude-dir={node_modules,.next,.agents,.git,scripts,test,__tests__} "parseInt(.*uuid" .; then echo "❌ UUID misuse detected" exit 1 fi # console.log check (Clean Code) - if grep -r --include="*.ts" --include="*.tsx" "console.log" .; then + if grep -r --include="*.ts" --include="*.tsx" --exclude-dir={node_modules,.next,.agents,.git,scripts,test,__tests__} "console.log" .; then echo "❌ console.log detected" exit 1 fi diff --git a/backend/test/phase3-workflow.e2e-spec.ts b/backend/test/phase3-workflow.e2e-spec.ts index d4ea588..d8b9327 100644 --- a/backend/test/phase3-workflow.e2e-spec.ts +++ b/backend/test/phase3-workflow.e2e-spec.ts @@ -52,12 +52,6 @@ describe('Phase 3 Workflow (E2E)', () => { const existing = await defRepo.findOne({ where: { workflow_code: 'CORRESPONDENCE_FLOW_V1', is_active: true }, }); - - if (!existing) { - // console.warn( - // 'WorkflowDefinition CORRESPONDENCE_FLOW_V1 not found. Tests may fail.' - // ); - } }); afterAll(async () => { @@ -82,7 +76,6 @@ describe('Phase 3 Workflow (E2E)', () => { expect(body).toHaveProperty('id'); expect(body).toHaveProperty('correspondenceNumber'); correspondenceId = body.id; - // console.log('Created Correspondence ID:', correspondenceId); }); it('/correspondences/:id/submit (POST) - Submit to Workflow', async () => { @@ -98,14 +91,11 @@ describe('Phase 3 Workflow (E2E)', () => { expect(body).toHaveProperty('instanceId'); expect(body).toHaveProperty('currentState'); workflowInstanceId = body.instanceId; - // console.log('Workflow Instance ID:', workflowInstanceId); - // console.log('Current State:', response.body.currentState); }); it('/correspondences/:id/workflow/action (POST) - Process Action', async () => { // Skip if submit failed to get instanceId if (!workflowInstanceId) { - // console.warn('Skipping action test - no instanceId from submit'); return; } @@ -121,6 +111,5 @@ describe('Phase 3 Workflow (E2E)', () => { expect(response.body).toHaveProperty('success', true); expect(response.body).toHaveProperty('nextState'); - // console.log('Action Result:', response.body); }); });