Commit b342ca5
committed
Fix all CodeRabbit AI reported issues
Security fixes:
- Fix pip version constraint from >=25.0 to >=25.2 (GHSA-4xh5-x5gv-qwph)
- Add explicit starlette==0.48.0 to requirements.txt
- Pin fastapi to exact version 0.119.0 for reproducibility
CI workflow improvements:
- Remove duplicate dependency installation (safety/pip-audit now in requirements.txt)
- Remove ad-hoc dependency upgrades from CI
- Replace deprecated 'safety check' with 'safety scan'
- Use continue-on-error instead of shell || true for cleaner JSON output
Performance optimizations:
- Remove unused _score computation in search function
- Fix redundant query embedding computation in sort key
- Reuse precomputed query_vec instead of recomputing for each item
Code quality:
- Add safety-results.json and audit-results.json to .gitignore
- Remove committed safety-results.json artifact file
- Ensure all dependencies are properly pinned for reproducibility
All CodeRabbit AI suggestions have been implemented.1 parent 3910567 commit b342ca5
File tree
5 files changed
+12
-1470
lines changed- .github/workflows
- src/contextforge_memory
5 files changed
+12
-1470
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| 30 | + | |
35 | 31 | | |
36 | | - | |
37 | | - | |
| 32 | + | |
| 33 | + | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
0 commit comments