[SUPERSEDED] Fix pre-existing build issues - Cherry-pick lexfiat fixes recommended#97
[SUPERSEDED] Fix pre-existing build issues - Cherry-pick lexfiat fixes recommended#97
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Codacy's Analysis Summary0 new issue (≤ 0 issue) Review Pull Request in Codacy →
|
Co-authored-by: MightyPrytanis <219587333+MightyPrytanis@users.noreply.github.com>
Co-authored-by: MightyPrytanis <219587333+MightyPrytanis@users.noreply.github.com>
|
I reject this fix as incomplete. @copilot, you listed "Pre-existing issues not addressed: |
Co-authored-by: MightyPrytanis <219587333+MightyPrytanis@users.noreply.github.com>
- Added drizzle-orm, drizzle-zod, zod to apps/lexfiat package.json - Added @aws-sdk/client-s3, googleapis to Cyrano package.json - Removed platform-specific @esbuild/darwin-arm64 from lexfiat devDependencies - Added "type": "module" to lexfiat package.json for PostCSS - Created missing tsconfig.json for apps/arkiver - Created placeholder backend/index.ts for apps/arkiver - Fixed JSX syntax error in lexfiat time-tracking.tsx (missing closing div) These fixes resolve arkiver build completely and reduce lexfiat/Cyrano errors significantly. Co-authored-by: MightyPrytanis <219587333+MightyPrytanis@users.noreply.github.com>
Completed thorough diagnosis and fixed critical issues. Diagnosis results (see commit 25dded6):
Fixes applied (commit 243f341):
Remaining work (~8-13 hours estimated):
Full technical analysis in |
|
@copilot is there any value to this branch or have we moved past it? |
This branch has mixed value - some work has been superseded, but not all. Superseded by main:
Still valuable fixes:
Recommendation: Cherry-pick the lexfiat fixes (commit 243f341) to a new PR since they address real bugs. The Cyrano/arkiver changes can be discarded as they're obsolete. |
Arkiver should not have its own backend. Removing the backend/index.ts and tsconfig.json that were added in commit 243f341. The main branch has already restructured arkiver to be frontend-only, delegating to the frontend/ subdirectory. Co-authored-by: MightyPrytanis <219587333+MightyPrytanis@users.noreply.github.com>
|
@copilot what are the time-tracking.tsx changes? We made some significant changes to Chronometric, which is the time tracker for LexFiat. |
The Two changes made:
The file in main still has:
These fixes don't touch any Chronometric logic, workflow archaeology, timeline visualization, or evidence chain functionality. They only resolve build-blocking syntax issues. The changes won't conflict with Chronometric improvements unless the end of the JSX structure was modified. |
|
@copilot Resolving build-blocking syntax issues is important. What do you recommend? |
Recommended approach: Create a new focused PR with only the critical lexfiat fixes Option 1: Manual cherry-pick (recommended)
Option 2: If drizzle dependencies still needed This PR should be closed - it contains obsolete Cyrano/arkiver changes that conflict with main. The JSX bug fix alone is critical since it prevents builds from completing. |
After thorough diagnosis, fixed critical pre-existing code issues that were causing CI workflow failures across all three monorepo projects. However, comparison with main branch (commit e96f260) reveals most fixes have been superseded.
Diagnosis Completed
Performed comprehensive analysis of 42+ compilation errors and identified root causes:
Code Fixes Applied vs. Main Branch Status
apps/arkiver - ❌ OBSOLETE
Created missingtsconfig.jsonwith proper Node.js backend configurationCreated placeholderbackend/index.tsapps/lexfiat - ✅ STILL VALUABLE
drizzle-orm,drizzle-zod,zod- NOT IN MAIN (may not be needed)@esbuild/darwin-arm64- STILL IN MAIN, CAUSES LINUX CI FAILURES ✅"type": "module"to package.json (fixes PostCSS warning) - NOT IN MAIN ✅time-tracking.tsx(missing closing</div>tag) - BUG STILL EXISTS IN MAIN ✅Cyrano - ❌ SUPERSEDED
Added missing@aws-sdk/client-s3@^3.712.0Added missinggoogleapis@^169.0.0Workflow Configuration
Workflow files were reverted to their original state pending completion of code-level fixes.
Recommendation
Close this PR and create a new focused PR cherry-picking only the lexfiat fixes from commit 243f341:
time-tracking.tsxJSX bug fix (critical - prevents builds)@esbuild/darwin-arm64(fixes Linux CI failures)"type": "module"(fixes PostCSS warning)The Cyrano and arkiver changes are obsolete and should not be merged.
Original prompt
Repository: MightyPrytanis/codebase
Goal: Stabilize CI and security workflows. Clear recurring security scan failures and syntax/build errors in GitHub Actions by updating workflow configurations for a monorepo.
Context from recent runs (last 30 results; 1266 total runs exist):
.cursor/**,.gitmodules), causing failures. A partial mitigation was added to one workflow, but failures persist.Primary problems identified:
Required changes:
A) Update Codacy workflows to exclude unidentifiable files consistently.
.github/workflows/codacy.yml(Security Scan) and.github/workflows/codacy-analysis.yml(analysis & coverage), addexclude: '.cursor/**,.gitmodules'to the Codacy Analysis CLI step.max-allowed-issuesset high to avoid failing on findings while we stabilize (already present).B) Reconfigure CodeQL for monorepo with explicit builds.
github/codeql-action/init@v3with languagesjavascript-typescriptandpython.autobuildand add manual build steps for the three main packages:Cyrano,LexFiat, andapps/arkiver:npm ci,npm run buildin each package directory.github/codeql-action/analyze@v3after successful builds.C) Fix CI/CD pipeline to support monorepo.
Cyrano,LexFiat, andapps/arkiverwith working-directory.npm ci, thennpm run build, and run tests (npm test,npm run test:unit) where present.Proposed workflow updates (create/modify files):