Skip to content

Commit f198296

Browse files
committed
fix: resolve CI validation errors and dependencies
- Remove invalid dependencies (langchain-anthropic, crypto, jsdiff version) - Fix package.json dependency versions (@octokit/app to 16.0.1) - Add ESLint overrides for Node.js config files and K6 load tests - Fix Jest configuration (moduleNameMapping -> moduleNameMapper) - Fix import paths in test files (../index -> ../../index) - Add missing types: MetricType enum, complete Zod schemas - Update schemas to use ISO string dates and nullable fields - Fix test data to match schema expectations - Fix syntax error in property test file - All shared-types tests now passing
1 parent a3ff577 commit f198296

File tree

71 files changed

+14981
-1820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+14981
-1820
lines changed

.commitlintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ module.exports = {
4444
'body-leading-blank': [2, 'always'],
4545
'footer-leading-blank': [2, 'always'],
4646
},
47-
};
47+
};

.eslintrc.js

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ module.exports = {
1717
parserOptions: {
1818
ecmaVersion: 2022,
1919
sourceType: 'module',
20-
project: ['./tsconfig.json', './apps/*/tsconfig.json', './packages/*/tsconfig.json'],
20+
project: [
21+
'./tsconfig.json',
22+
'./apps/*/tsconfig.json',
23+
'./packages/*/tsconfig.json',
24+
],
2125
tsconfigRootDir: __dirname,
2226
},
2327
plugins: ['@typescript-eslint', 'import', 'node'],
@@ -29,7 +33,7 @@ module.exports = {
2933
'@typescript-eslint/prefer-const': 'error',
3034
'@typescript-eslint/no-var-requires': 'error',
3135
'@typescript-eslint/consistent-type-imports': 'error',
32-
36+
3337
// Import rules
3438
'import/order': [
3539
'error',
@@ -51,11 +55,11 @@ module.exports = {
5155
],
5256
'import/no-unresolved': 'error',
5357
'import/no-cycle': 'error',
54-
58+
5559
// Node.js rules
5660
'node/no-unsupported-features/es-syntax': 'off',
5761
'node/no-missing-import': 'off',
58-
62+
5963
// General rules
6064
'no-console': 'warn',
6165
'no-debugger': 'error',
@@ -89,5 +93,41 @@ module.exports = {
8993
'no-console': 'off',
9094
},
9195
},
96+
{
97+
files: ['*.js', '**/*.config.js', '*rc.js', '**/*rc.js'],
98+
env: {
99+
node: true,
100+
commonjs: true,
101+
},
102+
parserOptions: {
103+
ecmaVersion: 2022,
104+
sourceType: 'script',
105+
},
106+
rules: {
107+
'@typescript-eslint/no-var-requires': 'off',
108+
'no-undef': 'off',
109+
},
110+
},
111+
{
112+
files: ['load/**/*.js'],
113+
env: {
114+
es6: true,
115+
},
116+
parserOptions: {
117+
ecmaVersion: 2022,
118+
sourceType: 'module',
119+
},
120+
globals: {
121+
__ENV: 'readonly',
122+
__VU: 'readonly',
123+
console: 'readonly',
124+
textSummary: 'readonly',
125+
},
126+
rules: {
127+
'no-console': 'off',
128+
'no-undef': 'off',
129+
'@typescript-eslint/no-var-requires': 'off',
130+
},
131+
},
92132
],
93-
};
133+
};

.github/actions/speccursor/action.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,21 @@ runs:
7575
if [ -f "package.json" ]; then
7676
pnpm install --frozen-lockfile
7777
fi
78-
78+
7979
# Install Rust dependencies
8080
if [ -f "Cargo.toml" ]; then
8181
cargo fetch
8282
fi
83-
83+
8484
# Install Python dependencies
8585
if [ -f "requirements.txt" ]; then
8686
pip install -r requirements.txt
8787
fi
88-
88+
8989
if [ -f "pyproject.toml" ]; then
9090
pip install -e .
9191
fi
92-
92+
9393
# Install Go dependencies
9494
if [ -f "go.mod" ]; then
9595
go mod download
@@ -99,22 +99,22 @@ runs:
9999
shell: bash
100100
run: |
101101
echo "Running initial test suite..."
102-
102+
103103
# Node.js tests
104104
if [ -f "package.json" ]; then
105105
pnpm test || echo "Node.js tests failed"
106106
fi
107-
107+
108108
# Rust tests
109109
if [ -f "Cargo.toml" ]; then
110110
cargo test || echo "Rust tests failed"
111111
fi
112-
112+
113113
# Python tests
114114
if [ -f "pytest.ini" ] || [ -f "pyproject.toml" ]; then
115115
python -m pytest || echo "Python tests failed"
116116
fi
117-
117+
118118
# Go tests
119119
if [ -f "go.mod" ]; then
120120
go test ./... || echo "Go tests failed"
@@ -124,10 +124,10 @@ runs:
124124
shell: bash
125125
run: |
126126
echo "Running dependency bump script..."
127-
127+
128128
# Parse ecosystems input
129129
IFS=',' read -ra ECOSYSTEMS <<< "${{ inputs.ecosystems }}"
130-
130+
131131
for ecosystem in "${ECOSYSTEMS[@]}"; do
132132
case $ecosystem in
133133
node)
@@ -169,22 +169,22 @@ runs:
169169
shell: bash
170170
run: |
171171
echo "Running test suite after dependency upgrades..."
172-
172+
173173
# Node.js tests
174174
if [ -f "package.json" ]; then
175175
pnpm test || echo "Node.js tests failed after upgrade"
176176
fi
177-
177+
178178
# Rust tests
179179
if [ -f "Cargo.toml" ]; then
180180
cargo test || echo "Rust tests failed after upgrade"
181181
fi
182-
182+
183183
# Python tests
184184
if [ -f "pytest.ini" ] || [ -f "pyproject.toml" ]; then
185185
python -m pytest || echo "Python tests failed after upgrade"
186186
fi
187-
187+
188188
# Go tests
189189
if [ -f "go.mod" ]; then
190190
go test ./... || echo "Go tests failed after upgrade"
@@ -195,51 +195,51 @@ runs:
195195
shell: bash
196196
run: |
197197
echo "Generating AI patches for failing tests..."
198-
198+
199199
# This would call the AI patch generation script
200200
# node scripts/ai-patch.js --test-output test-results.json
201-
201+
202202
echo "AI patch generation completed"
203203
204204
- name: Run formal verification with Lean
205205
if: inputs.formal-proof == 'true'
206206
shell: bash
207207
run: |
208208
echo "Running formal verification with Lean..."
209-
209+
210210
# Build Lean project
211211
if [ -f "lakefile.lean" ]; then
212212
lake build
213213
fi
214-
214+
215215
# Run Lean tests
216216
if [ -f "lean/speccursor.lean" ]; then
217217
lake env lean --run lean/test_runner.lean
218218
fi
219-
219+
220220
echo "Formal verification completed"
221221
222222
- name: Run test suite after AI patches
223223
if: inputs.ai-patch == 'true'
224224
shell: bash
225225
run: |
226226
echo "Running test suite after AI patches..."
227-
227+
228228
# Node.js tests
229229
if [ -f "package.json" ]; then
230230
pnpm test || echo "Node.js tests failed after AI patches"
231231
fi
232-
232+
233233
# Rust tests
234234
if [ -f "Cargo.toml" ]; then
235235
cargo test || echo "Rust tests failed after AI patches"
236236
fi
237-
237+
238238
# Python tests
239239
if [ -f "pytest.ini" ] || [ -f "pyproject.toml" ]; then
240240
python -m pytest || echo "Python tests failed after AI patches"
241241
fi
242-
242+
243243
# Go tests
244244
if [ -f "go.mod" ]; then
245245
go test ./... || echo "Go tests failed after AI patches"
@@ -249,22 +249,22 @@ runs:
249249
shell: bash
250250
run: |
251251
echo "Generating coverage report..."
252-
252+
253253
# Node.js coverage
254254
if [ -f "package.json" ]; then
255255
pnpm test:coverage || echo "Node.js coverage failed"
256256
fi
257-
257+
258258
# Rust coverage
259259
if [ -f "Cargo.toml" ]; then
260260
cargo tarpaulin --out Html || echo "Rust coverage failed"
261261
fi
262-
262+
263263
# Python coverage
264264
if [ -f "pytest.ini" ] || [ -f "pyproject.toml" ]; then
265265
python -m pytest --cov=. --cov-report=html || echo "Python coverage failed"
266266
fi
267-
267+
268268
# Go coverage
269269
if [ -f "go.mod" ]; then
270270
go test -coverprofile=coverage.out ./... || echo "Go coverage failed"
@@ -275,10 +275,10 @@ runs:
275275
shell: bash
276276
run: |
277277
echo "Creating Pull Request..."
278-
278+
279279
# This would use GitHub CLI or API to create PR
280280
# gh pr create --title "chore: upgrade dependencies" --body "Automated dependency upgrade by SpecCursor"
281-
281+
282282
echo "Pull Request creation completed"
283283
284284
- name: Upload artifacts
@@ -300,4 +300,4 @@ runs:
300300
echo "AI Patch: ${{ inputs.ai-patch }}"
301301
echo "Formal Proof: ${{ inputs.formal-proof }}"
302302
echo "Dry Run: ${{ inputs.dry-run }}"
303-
echo "=========================================="
303+
echo "=========================================="

0 commit comments

Comments
 (0)