Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -454,30 +454,27 @@ jobs:
node-version: 22
- uses: pnpm/action-setup@v6
with:
# Matches the pnpm developers run locally.
# CI pins pnpm 11 (lockfile format v9); generate
# tests/e2e/pnpm-lock.yaml with a pnpm that keeps that format.
version: 11
- name: check harness exists
id: harness
- name: require the e2e harness
# pnpm exits 0 in a directory that has pnpm-workspace.yaml but no
# package.json, so a missing harness must be caught here.
run: |
if [ -f tests/e2e/package.json ]; then
echo "present=true" >> "$GITHUB_OUTPUT"
else
echo "present=false" >> "$GITHUB_OUTPUT"
echo "::notice::tests/e2e harness not present yet — skipping"
if [ ! -f tests/e2e/package.json ]; then
echo "::error::tests/e2e/package.json is missing"
exit 1
fi
- name: e2e install
if: steps.harness.outputs.present == 'true'
working-directory: tests/e2e
run: pnpm install --no-frozen-lockfile
run: pnpm install --frozen-lockfile
# vitest strips types without checking them, so a type error in a
# case (e.g. a `test.each` callback expecting a context vitest never
# passes) would otherwise only surface when that branch runs.
- name: e2e typecheck
if: steps.harness.outputs.present == 'true'
working-directory: tests/e2e
run: pnpm exec tsc --noEmit
- name: run e2e
if: steps.harness.outputs.present == 'true'
working-directory: tests/e2e
# Read by the harness, which writes it into every spawned
# gateway's `proxy.thread_per_core`. The binary's own default is
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic-embedding-real-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
version: 11
- name: install e2e harness
working-directory: tests/e2e
run: pnpm install --no-frozen-lockfile
run: pnpm install --frozen-lockfile
- name: typecheck e2e harness and real-provider smoke
working-directory: tests/e2e
run: pnpm exec tsc --noEmit
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ node_modules/
coverage/
*.tsbuildinfo
package-lock.json
pnpm-lock.yaml
4 changes: 2 additions & 2 deletions tests/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"devDependencies": {
"@types/node": "20.11.30",
"@types/ws": "8.5.12",
"@vitest/coverage-v8": "4.1.11",
"@vitest/coverage-v8": "4.1.12",
"typescript": "5.5.4",
"vitest": "4.1.11",
"vitest": "4.1.12",
"ws": "8.21.0"
},
"dependencies": {
Expand Down
Loading
Loading