chore(deps): bump ws from 8.17.1 to 8.20.1 in /libs/driver-adapters/executor #5356
This file contains hidden or 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
| name: 'QC: Wasm size' | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - '.github/**' | |
| - '!.github/workflows/wasm-size.yml' | |
| - '!.github/workflows/include/rust-wasm-setup/action.yml' | |
| - '*.md' | |
| - 'LICENSE' | |
| - 'CODEOWNERS' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pr-wasm-size: | |
| name: calculate module sizes (pr) | |
| runs-on: ubuntu-latest | |
| outputs: | |
| postgresql_fast_qc_size: ${{ steps.measure-qc.outputs.postgresql_fast_qc_size }} | |
| postgresql_fast_qc_size_gz: ${{ steps.measure-qc.outputs.postgresql_fast_qc_size_gz }} | |
| mysql_fast_qc_size: ${{ steps.measure-qc.outputs.mysql_fast_qc_size }} | |
| mysql_fast_qc_size_gz: ${{ steps.measure-qc.outputs.mysql_fast_qc_size_gz }} | |
| sqlite_fast_qc_size: ${{ steps.measure-qc.outputs.sqlite_fast_qc_size }} | |
| sqlite_fast_qc_size_gz: ${{ steps.measure-qc.outputs.sqlite_fast_qc_size_gz }} | |
| sqlserver_fast_qc_size: ${{ steps.measure-qc.outputs.sqlserver_fast_qc_size }} | |
| sqlserver_fast_qc_size_gz: ${{ steps.measure-qc.outputs.sqlserver_fast_qc_size_gz }} | |
| cockroachdb_fast_qc_size: ${{ steps.measure-qc.outputs.cockroachdb_fast_qc_size }} | |
| cockroachdb_fast_qc_size_gz: ${{ steps.measure-qc.outputs.cockroachdb_fast_qc_size_gz }} | |
| postgresql_small_qc_size: ${{ steps.measure-qc.outputs.postgresql_small_qc_size }} | |
| postgresql_small_qc_size_gz: ${{ steps.measure-qc.outputs.postgresql_small_qc_size_gz }} | |
| mysql_small_qc_size: ${{ steps.measure-qc.outputs.mysql_small_qc_size }} | |
| mysql_small_qc_size_gz: ${{ steps.measure-qc.outputs.mysql_small_qc_size_gz }} | |
| sqlite_small_qc_size: ${{ steps.measure-qc.outputs.sqlite_small_qc_size }} | |
| sqlite_small_qc_size_gz: ${{ steps.measure-qc.outputs.sqlite_small_qc_size_gz }} | |
| sqlserver_small_qc_size: ${{ steps.measure-qc.outputs.sqlserver_small_qc_size }} | |
| sqlserver_small_qc_size_gz: ${{ steps.measure-qc.outputs.sqlserver_small_qc_size_gz }} | |
| cockroachdb_small_qc_size: ${{ steps.measure-qc.outputs.cockroachdb_small_qc_size }} | |
| cockroachdb_small_qc_size_gz: ${{ steps.measure-qc.outputs.cockroachdb_small_qc_size_gz }} | |
| steps: | |
| - name: Checkout PR branch | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/include/rust-wasm-setup | |
| - name: Build and measure QC on PR branch | |
| id: measure-qc | |
| run: | | |
| export ENGINE_SIZE_OUTPUT=$GITHUB_OUTPUT | |
| make measure-qc-wasm | |
| base-wasm-size: | |
| name: calculate module sizes (base branch) | |
| runs-on: ubuntu-latest | |
| outputs: | |
| postgresql_fast_qc_size: ${{ steps.measure-qc.outputs.postgresql_fast_qc_size }} | |
| postgresql_fast_qc_size_gz: ${{ steps.measure-qc.outputs.postgresql_fast_qc_size_gz }} | |
| mysql_fast_qc_size: ${{ steps.measure-qc.outputs.mysql_fast_qc_size }} | |
| mysql_fast_qc_size_gz: ${{ steps.measure-qc.outputs.mysql_fast_qc_size_gz }} | |
| sqlite_fast_qc_size: ${{ steps.measure-qc.outputs.sqlite_fast_qc_size }} | |
| sqlite_fast_qc_size_gz: ${{ steps.measure-qc.outputs.sqlite_fast_qc_size_gz }} | |
| sqlserver_fast_qc_size: ${{ steps.measure-qc.outputs.sqlserver_fast_qc_size }} | |
| sqlserver_fast_qc_size_gz: ${{ steps.measure-qc.outputs.sqlserver_fast_qc_size_gz }} | |
| cockroachdb_fast_qc_size: ${{ steps.measure-qc.outputs.cockroachdb_fast_qc_size }} | |
| cockroachdb_fast_qc_size_gz: ${{ steps.measure-qc.outputs.cockroachdb_fast_qc_size_gz }} | |
| postgresql_small_qc_size: ${{ steps.measure-qc.outputs.postgresql_small_qc_size }} | |
| postgresql_small_qc_size_gz: ${{ steps.measure-qc.outputs.postgresql_small_qc_size_gz }} | |
| mysql_small_qc_size: ${{ steps.measure-qc.outputs.mysql_small_qc_size }} | |
| mysql_small_qc_size_gz: ${{ steps.measure-qc.outputs.mysql_small_qc_size_gz }} | |
| sqlite_small_qc_size: ${{ steps.measure-qc.outputs.sqlite_small_qc_size }} | |
| sqlite_small_qc_size_gz: ${{ steps.measure-qc.outputs.sqlite_small_qc_size_gz }} | |
| sqlserver_small_qc_size: ${{ steps.measure-qc.outputs.sqlserver_small_qc_size }} | |
| sqlserver_small_qc_size_gz: ${{ steps.measure-qc.outputs.sqlserver_small_qc_size_gz }} | |
| cockroachdb_small_qc_size: ${{ steps.measure-qc.outputs.cockroachdb_small_qc_size }} | |
| cockroachdb_small_qc_size_gz: ${{ steps.measure-qc.outputs.cockroachdb_small_qc_size_gz }} | |
| steps: | |
| - name: Checkout base branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.base.sha }} | |
| - uses: ./.github/workflows/include/rust-wasm-setup | |
| - name: Build and measure QC on base branch | |
| id: measure-qc | |
| run: | | |
| export ENGINE_SIZE_OUTPUT=$GITHUB_OUTPUT | |
| make measure-qc-wasm | |
| report-diff: | |
| name: report module size | |
| runs-on: ubuntu-latest | |
| needs: | |
| - pr-wasm-size | |
| - base-wasm-size | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Compute difference | |
| id: compute | |
| run: | | |
| fmt() { | |
| echo "$1" | numfmt --format '%.3f' --to=iec-i --suffix=B | |
| } | |
| compute_diff() { | |
| local provider="$1" | |
| local base="$2" | |
| local pr="$3" | |
| local diff=$(fmt "$(($pr - $base))") | |
| echo "${provider}_base=$(fmt "$base")" >> $GITHUB_OUTPUT | |
| echo "${provider}_pr=$(fmt "$pr")" >> $GITHUB_OUTPUT | |
| echo "${provider}_diff=$diff" >> $GITHUB_OUTPUT | |
| } | |
| compute_diff "postgresql_fast_qc" "${{ needs.base-wasm-size.outputs.postgresql_fast_qc_size }}" "${{ needs.pr-wasm-size.outputs.postgresql_fast_qc_size }}" | |
| compute_diff "postgresql_fast_qc_gz" "${{ needs.base-wasm-size.outputs.postgresql_fast_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.postgresql_fast_qc_size_gz }}" | |
| compute_diff "postgresql_small_qc" "${{ needs.base-wasm-size.outputs.postgresql_small_qc_size }}" "${{ needs.pr-wasm-size.outputs.postgresql_small_qc_size }}" | |
| compute_diff "postgresql_small_qc_gz" "${{ needs.base-wasm-size.outputs.postgresql_small_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.postgresql_small_qc_size_gz }}" | |
| compute_diff "mysql_fast_qc" "${{ needs.base-wasm-size.outputs.mysql_fast_qc_size }}" "${{ needs.pr-wasm-size.outputs.mysql_fast_qc_size }}" | |
| compute_diff "mysql_fast_qc_gz" "${{ needs.base-wasm-size.outputs.mysql_fast_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.mysql_fast_qc_size_gz }}" | |
| compute_diff "mysql_small_qc" "${{ needs.base-wasm-size.outputs.mysql_small_qc_size }}" "${{ needs.pr-wasm-size.outputs.mysql_small_qc_size }}" | |
| compute_diff "mysql_small_qc_gz" "${{ needs.base-wasm-size.outputs.mysql_small_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.mysql_small_qc_size_gz }}" | |
| compute_diff "sqlite_fast_qc" "${{ needs.base-wasm-size.outputs.sqlite_fast_qc_size }}" "${{ needs.pr-wasm-size.outputs.sqlite_fast_qc_size }}" | |
| compute_diff "sqlite_fast_qc_gz" "${{ needs.base-wasm-size.outputs.sqlite_fast_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.sqlite_fast_qc_size_gz }}" | |
| compute_diff "sqlite_small_qc" "${{ needs.base-wasm-size.outputs.sqlite_small_qc_size }}" "${{ needs.pr-wasm-size.outputs.sqlite_small_qc_size }}" | |
| compute_diff "sqlite_small_qc_gz" "${{ needs.base-wasm-size.outputs.sqlite_small_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.sqlite_small_qc_size_gz }}" | |
| compute_diff "sqlserver_fast_qc" "${{ needs.base-wasm-size.outputs.sqlserver_fast_qc_size }}" "${{ needs.pr-wasm-size.outputs.sqlserver_fast_qc_size }}" | |
| compute_diff "sqlserver_fast_qc_gz" "${{ needs.base-wasm-size.outputs.sqlserver_fast_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.sqlserver_fast_qc_size_gz }}" | |
| compute_diff "sqlserver_small_qc" "${{ needs.base-wasm-size.outputs.sqlserver_small_qc_size }}" "${{ needs.pr-wasm-size.outputs.sqlserver_small_qc_size }}" | |
| compute_diff "sqlserver_small_qc_gz" "${{ needs.base-wasm-size.outputs.sqlserver_small_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.sqlserver_small_qc_size_gz }}" | |
| compute_diff "cockroachdb_fast_qc" "${{ needs.base-wasm-size.outputs.cockroachdb_fast_qc_size }}" "${{ needs.pr-wasm-size.outputs.cockroachdb_fast_qc_size }}" | |
| compute_diff "cockroachdb_fast_qc_gz" "${{ needs.base-wasm-size.outputs.cockroachdb_fast_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.cockroachdb_fast_qc_size_gz }}" | |
| compute_diff "cockroachdb_small_qc" "${{ needs.base-wasm-size.outputs.cockroachdb_small_qc_size }}" "${{ needs.pr-wasm-size.outputs.cockroachdb_small_qc_size }}" | |
| compute_diff "cockroachdb_small_qc_gz" "${{ needs.base-wasm-size.outputs.cockroachdb_small_qc_size_gz }}" "${{ needs.pr-wasm-size.outputs.cockroachdb_small_qc_size_gz }}" | |
| - name: Find past report comment | |
| uses: peter-evans/find-comment@v3 | |
| id: findReportComment | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body-includes: '<!-- wasm-size -->' | |
| - name: Create or update report | |
| uses: peter-evans/create-or-update-comment@v4 | |
| # Only run on branches from our repository | |
| # It avoids an expected failure on forks | |
| if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | |
| with: | |
| comment-id: ${{ steps.findReportComment.outputs.comment-id }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: | | |
| <!-- wasm-size --> | |
| ### Wasm Query Compiler File Size | |
| | Engine | This PR | Base branch | Diff | | |
| |------------------------------------|---------------------------------------------------------|-----------------------------------------------------------|-----------------------------------------------------------| | |
| | Postgres | ${{ steps.compute.outputs.postgresql_fast_qc_pr }} | ${{ steps.compute.outputs.postgresql_fast_qc_base }} | ${{ steps.compute.outputs.postgresql_fast_qc_diff }} | | |
| | Postgres (gzip) | ${{ steps.compute.outputs.postgresql_fast_qc_gz_pr }} | ${{ steps.compute.outputs.postgresql_fast_qc_gz_base }} | ${{ steps.compute.outputs.postgresql_fast_qc_gz_diff }} | | |
| | Postgres (size-optimized) | ${{ steps.compute.outputs.postgresql_small_qc_pr }} | ${{ steps.compute.outputs.postgresql_small_qc_base }} | ${{ steps.compute.outputs.postgresql_small_qc_diff }} | | |
| | Postgres (size-optimized, gzip) | ${{ steps.compute.outputs.postgresql_small_qc_gz_pr }} | ${{ steps.compute.outputs.postgresql_small_qc_gz_base }} | ${{ steps.compute.outputs.postgresql_small_qc_gz_diff }} | | |
| | Mysql | ${{ steps.compute.outputs.mysql_fast_qc_pr }} | ${{ steps.compute.outputs.mysql_fast_qc_base }} | ${{ steps.compute.outputs.mysql_fast_qc_diff }} | | |
| | Mysql (gzip) | ${{ steps.compute.outputs.mysql_fast_qc_gz_pr }} | ${{ steps.compute.outputs.mysql_fast_qc_gz_base }} | ${{ steps.compute.outputs.mysql_fast_qc_gz_diff }} | | |
| | Mysql (size-optimized) | ${{ steps.compute.outputs.mysql_small_qc_pr }} | ${{ steps.compute.outputs.mysql_small_qc_base }} | ${{ steps.compute.outputs.mysql_small_qc_diff }} | | |
| | Mysql (size-optimized, gzip) | ${{ steps.compute.outputs.mysql_small_qc_gz_pr }} | ${{ steps.compute.outputs.mysql_small_qc_gz_base }} | ${{ steps.compute.outputs.mysql_small_qc_gz_diff }} | | |
| | Sqlite | ${{ steps.compute.outputs.sqlite_fast_qc_pr }} | ${{ steps.compute.outputs.sqlite_fast_qc_base }} | ${{ steps.compute.outputs.sqlite_fast_qc_diff }} | | |
| | Sqlite (gzip) | ${{ steps.compute.outputs.sqlite_fast_qc_gz_pr }} | ${{ steps.compute.outputs.sqlite_fast_qc_gz_base }} | ${{ steps.compute.outputs.sqlite_fast_qc_gz_diff }} | | |
| | Sqlite (size-optimized) | ${{ steps.compute.outputs.sqlite_small_qc_pr }} | ${{ steps.compute.outputs.sqlite_small_qc_base }} | ${{ steps.compute.outputs.sqlite_small_qc_diff }} | | |
| | Sqlite (size-optimized, gzip) | ${{ steps.compute.outputs.sqlite_small_qc_gz_pr }} | ${{ steps.compute.outputs.sqlite_small_qc_gz_base }} | ${{ steps.compute.outputs.sqlite_small_qc_gz_diff }} | | |
| | SQL Server | ${{ steps.compute.outputs.sqlserver_fast_qc_pr }} | ${{ steps.compute.outputs.sqlserver_fast_qc_base }} | ${{ steps.compute.outputs.sqlserver_fast_qc_diff }} | | |
| | SQL Server (gzip) | ${{ steps.compute.outputs.sqlserver_fast_qc_gz_pr }} | ${{ steps.compute.outputs.sqlserver_fast_qc_gz_base }} | ${{ steps.compute.outputs.sqlserver_fast_qc_gz_diff }} | | |
| | SQL Server (size-optimized) | ${{ steps.compute.outputs.sqlserver_small_qc_pr }} | ${{ steps.compute.outputs.sqlserver_small_qc_base }} | ${{ steps.compute.outputs.sqlserver_small_qc_diff }} | | |
| | SQL Server (size-optimized, gzip) | ${{ steps.compute.outputs.sqlserver_small_qc_gz_pr }} | ${{ steps.compute.outputs.sqlserver_small_qc_gz_base }} | ${{ steps.compute.outputs.sqlserver_small_qc_gz_diff }} | | |
| | CockroachDB | ${{ steps.compute.outputs.cockroachdb_fast_qc_pr }} | ${{ steps.compute.outputs.cockroachdb_fast_qc_base }} | ${{ steps.compute.outputs.cockroachdb_fast_qc_diff }} | | |
| | CockroachDB (gzip) | ${{ steps.compute.outputs.cockroachdb_fast_qc_gz_pr }} | ${{ steps.compute.outputs.cockroachdb_fast_qc_gz_base }} | ${{ steps.compute.outputs.cockroachdb_fast_qc_gz_diff }} | | |
| | CockroachDB (size-optimized) | ${{ steps.compute.outputs.cockroachdb_small_qc_pr }} | ${{ steps.compute.outputs.cockroachdb_small_qc_base }} | ${{ steps.compute.outputs.cockroachdb_small_qc_diff }} | | |
| | CockroachDB (size-optimized, gzip) | ${{ steps.compute.outputs.cockroachdb_small_qc_gz_pr }} | ${{ steps.compute.outputs.cockroachdb_small_qc_gz_base }} | ${{ steps.compute.outputs.cockroachdb_small_qc_gz_diff }} | | |
| edit-mode: replace |