-
Notifications
You must be signed in to change notification settings - Fork 250
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 integration/jemalloc
- Loading branch information
Showing
333 changed files
with
8,028 additions
and
3,913 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[*.{yml,yaml}] | ||
indent_style = space | ||
indent_size = 2 |
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
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 |
---|---|---|
|
@@ -12,20 +12,68 @@ concurrency: | |
jobs: | ||
publish-to-gh-pages: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
|
||
env: | ||
CSV_PATH: engines-size/data.csv | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v30 | ||
with: | ||
# we need internet access for the moment | ||
extra_nix_config: | | ||
sandbox = false | ||
|
||
- run: | | ||
- uses: ./.github/workflows/include/rust-wasm-setup | ||
|
||
- name: Build native engines | ||
run: | | ||
cargo build --release -p query-engine -p query-engine-node-api | ||
mv target/release/libquery_engine.{so,node} | ||
- name: Build WASM engines | ||
env: | ||
WASM_BUILD_PROFILE: release | ||
PKG_DIR: query-engine/query-engine-wasm/pkg | ||
TARGET_DIR: target/query-engine-wasm | ||
run: | | ||
make build-qe-wasm-gz | ||
mkdir -p $TARGET_DIR | ||
for provider in "postgresql" "mysql" "sqlite"; do | ||
cp $PKG_DIR/$provider/query_engine_bg.wasm $TARGET_DIR/query-engine-$provider.wasm | ||
cp $PKG_DIR/$provider.gz $TARGET_DIR/query-engine-$provider.wasm.gz | ||
done | ||
- name: Check out gh-pages branch | ||
run: | | ||
git fetch --depth=1 origin gh-pages | ||
git checkout origin/gh-pages | ||
- name: Update engines size | ||
run: | | ||
files=( | ||
target/release/query-engine | ||
target/release/libquery_engine.node | ||
target/query-engine-wasm/query-engine-postgresql.wasm.gz | ||
target/query-engine-wasm/query-engine-postgresql.wasm | ||
target/query-engine-wasm/query-engine-mysql.wasm.gz | ||
target/query-engine-wasm/query-engine-mysql.wasm | ||
target/query-engine-wasm/query-engine-sqlite.wasm.gz | ||
target/query-engine-wasm/query-engine-sqlite.wasm | ||
) | ||
DATE_TIME="$(date -u --iso-8601=seconds)" | ||
if [[ ! -f $CSV_PATH ]]; then | ||
echo "date_time,branch,commit,file,size_bytes" > "$CSV_PATH" | ||
fi | ||
for file in "${files[@]}"; do | ||
file_name=$(basename "$file") | ||
size=$(stat -c %s "$file") | ||
echo "$DATE_TIME,$GITHUB_REF_NAME,$GITHUB_SHA,$file_name,$size" >> "$CSV_PATH" | ||
done | ||
- name: Commit the changes | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "prisma-bot" | ||
- name: Publish engines size to gh-pages branch | ||
run: nix run .#publish-engine-size | ||
git add "$CSV_PATH" | ||
git commit --quiet -m "update engines size for $GITHUB_SHA" | ||
git push origin '+HEAD:gh-pages' |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: ["18"] | ||
node_version: ["20"] | ||
partition: ["1/4", "2/4", "3/4", "4/4"] | ||
env: | ||
LOG_LEVEL: "info" # Set to "debug" to trace the query engine and node process running the driver adapter | ||
|
@@ -42,7 +42,7 @@ jobs: | |
- name: "Setup pnpm" | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
version: 9 | ||
|
||
- name: "Login to Docker Hub" | ||
uses: docker/login-action@v3 | ||
|
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 |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
- name: "Setup pnpm" | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
version: 9 | ||
|
||
- name: "Login to Docker Hub" | ||
uses: docker/login-action@v3 | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
brew "docker" | ||
brew "protobuf" | ||
brew "direnv" | ||
brew "rustup-init" |
Oops, something went wrong.