-
Notifications
You must be signed in to change notification settings - Fork 0
fix: CI Mutation Testing structlog module (#738) #741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3d4ac20
1d868ec
08e5267
b36d3e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -730,6 +730,8 @@ jobs: | |||||||||||||||||||||||||
| du -sh dist/* 2>/dev/null || echo "Build completed" | ||||||||||||||||||||||||||
| ;; | ||||||||||||||||||||||||||
| "lint") | ||||||||||||||||||||||||||
| # Clear node_modules/.cache to fix zod-validation-error export issue | ||||||||||||||||||||||||||
| rm -rf frontend/node_modules/.cache | ||||||||||||||||||||||||||
| # Run linting | ||||||||||||||||||||||||||
| npm run lint | ||||||||||||||||||||||||||
| ;; | ||||||||||||||||||||||||||
|
|
@@ -799,11 +801,13 @@ jobs: | |||||||||||||||||||||||||
| if [ "${{ matrix.project }}" = "ai-engine" ]; then | ||||||||||||||||||||||||||
| cd ai-engine | ||||||||||||||||||||||||||
| pip install -e ".[dev]" | ||||||||||||||||||||||||||
| pip install structlog | ||||||||||||||||||||||||||
| pip install mutmut | ||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||
| cd backend | ||||||||||||||||||||||||||
| pip install -r requirements.txt | ||||||||||||||||||||||||||
| pip install -r requirements-dev.txt | ||||||||||||||||||||||||||
| pip install structlog | ||||||||||||||||||||||||||
| pip install mutmut | ||||||||||||||||||||||||||
|
Comment on lines
+804
to
811
|
||||||||||||||||||||||||||
| pip install structlog | |
| pip install mutmut | |
| else | |
| cd backend | |
| pip install -r requirements.txt | |
| pip install -r requirements-dev.txt | |
| pip install structlog | |
| pip install mutmut | |
| else | |
| cd backend | |
| pip install -r requirements.txt | |
| pip install -r requirements-dev.txt |
Copilot
AI
Mar 7, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is described as a CI fix for missing structlog, but this workflow change also introduces an entire new vulnerability-scan job (Python + Node audits). If that’s intentional, please update the PR description/scope; otherwise, consider moving the vulnerability scanning to a separate PR to keep review/rollback risk low.
Copilot
AI
Mar 7, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The vulnerability scan installs dependencies with pnpm, but then runs npm audit. npm audit does not use pnpm-lock.yaml and can produce misleading/no results in pnpm-managed workspaces. Prefer pnpm audit (or another tool that explicitly supports pnpm) for accurate scanning.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -289,6 +289,7 @@ dev = [ | |
| "black", | ||
| "ruff", | ||
| "isort", | ||
| "structlog", | ||
| ] | ||
|
|
||
| # All GPU options combined | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,3 +10,6 @@ mutmut>=2.4.0 | |||||
|
|
||||||
| # Development Tools | ||||||
| pre-commit>=3.0.0 | ||||||
|
|
||||||
| # Logging | ||||||
| structlog | ||||||
|
||||||
| structlog | |
| structlog>=24.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this step you
cd frontendbefore thecase, but the added removal usesrm -rf frontend/node_modules/.cache. That path is likely wrong from inside the frontend directory, so it won’t actually clear the cache you intend. Use a path relative to the current working directory (e.g.,node_modules/.cache) or move the cleanup beforecd frontend.