-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/geometry
- Loading branch information
Showing
139 changed files
with
3,699 additions
and
1,741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Driver Adapters, Smoke Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
paths-ignore: | ||
- '.buildkite/**' | ||
- '*.md' | ||
- 'LICENSE' | ||
- 'CODEOWNERS' | ||
- 'renovate.json' | ||
|
||
jobs: | ||
driver-adapter-smoke-tests: | ||
name: Smoke tests for adapter ${{ matrix.adapter }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
adapter: ["neon:ws", "neon:http", planetscale, pg] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
|
||
env: | ||
JS_NEON_DATABASE_URL: ${{ secrets.JS_NEON_DATABASE_URL }} | ||
JS_PLANETSCALE_DATABASE_URL: ${{ secrets.JS_PLANETSCALE_DATABASE_URL }} | ||
JS_PG_DATABASE_URL: postgres://postgres:postgres@localhost:5432/test # ${{ secrets.JS_PG_DATABASE_URL }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
#cache: 'pnpm' | ||
|
||
- name: Compile Query Engine | ||
run: cargo build -p query-engine-node-api | ||
|
||
- name: Install Dependencies (Driver Adapters) | ||
run: pnpm install | ||
working-directory: ./query-engine/driver-adapters/js | ||
- name: Build Driver Adapters | ||
run: pnpm build | ||
working-directory: ./query-engine/driver-adapters/js | ||
|
||
- run: pnpm prisma:${{ matrix.adapter }} | ||
working-directory: ./query-engine/driver-adapters/js/smoke-test-js | ||
- run: pnpm ${{ matrix.adapter }}:libquery | ||
working-directory: ./query-engine/driver-adapters/js/smoke-test-js | ||
- name: pnpm ${{ matrix.adapter }}:client (using @prisma/client - including engine! - from Npm) | ||
run: pnpm ${{ matrix.adapter }}:client | ||
if: always() | ||
working-directory: ./query-engine/driver-adapters/js/smoke-test-js | ||
|
||
- name: pnpm errors | ||
run: pnpm errors | ||
if: always() | ||
working-directory: ./query-engine/driver-adapters/js/smoke-test-js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Driver Adapters | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
paths-ignore: | ||
- '.buildkite/**' | ||
- '*.md' | ||
- 'LICENSE' | ||
- 'CODEOWNERS' | ||
- 'renovate.json' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
rust-query-engine-tests: | ||
name: "Test `${{ matrix.adapter.name }}` on node v${{ matrix.node_version }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
adapter: | ||
- name: "pg" | ||
setup_task: "dev-pg-postgres13" | ||
- name: "neon:ws" | ||
setup_task: "dev-neon-ws-postgres13" | ||
node_version: ["18"] | ||
env: | ||
LOG_LEVEL: "info" # Set to "debug" to trace the query engine and node process running the driver adapter | ||
LOG_QUERIES: "y" | ||
RUST_LOG: "info" | ||
RUST_LOG_FORMAT: "devel" | ||
RUST_BACKTRACE: "1" | ||
CLICOLOR_FORCE: "1" | ||
CLOSED_TX_CLEANUP: "2" | ||
SIMPLE_TEST_MODE: "1" | ||
QUERY_BATCH_SIZE: "10" | ||
WORKSPACE_ROOT: ${{ github.workspace }} | ||
|
||
runs-on: buildjet-16vcpu-ubuntu-2004 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Setup Node.js" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
|
||
- name: "Setup pnpm" | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: "Get pnpm store directory" | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
name: "Setup pnpm cache" | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: "Login to Docker Hub" | ||
uses: docker/login-action@v2 | ||
continue-on-error: true | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- run: make ${{ matrix.adapter.setup_task }} | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: "Run tests" | ||
run: cargo test --package query-engine-tests -- --test-threads=1 | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.