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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 14 additions & 8 deletions .github/workflows/build-distributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ jobs:
name: Build wheel (${{ matrix.platform.name }})
needs: source
runs-on: ${{ matrix.platform.runner }}
# Cold dist builds take up to about 2x the 17-31 minute release-profile jobs on Windows and macOS,
# and a cold macOS arm64 dist build has taken an hour.
timeout-minutes: 150
# Release-profile wheel jobs take about 20-40 minutes; the limit leaves room for a slow runner.
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -202,11 +201,15 @@ jobs:
uses: PyO3/maturin-action@v1
if: inputs.prebuilt-run-id == ''
continue-on-error: true
# The extension embeds the UI as sqb does, so the sqb build below reuses the crates this
# build compiles instead of compiling sqlbuild-orchestration and sqlbuild-cli again.
env:
SQLBUILD_UI_REQUIRED: "1"
with:
command: build
# One platform records a cargo build timing report for build time work.
args: >-
--profile ${{ inputs.cargo-profile }} --out dist --features extension-module
--profile ${{ inputs.cargo-profile }} --out dist --features extension-module,sqlbuild-cli/ui
${{ matrix.platform.name == 'linux-x86_64' && '--timings' || '' }}
target: ${{ matrix.platform.target }}
manylinux: auto
Expand All @@ -215,11 +218,13 @@ jobs:
uses: PyO3/maturin-action@v1
if: inputs.prebuilt-run-id == '' && steps.extension.outcome == 'failure'
continue-on-error: ${{ runner.os != 'Linux' }}
env:
SQLBUILD_UI_REQUIRED: "1"
with:
command: build
# One platform records a cargo build timing report for build time work.
args: >-
--profile ${{ inputs.cargo-profile }} --out dist --features extension-module
--profile ${{ inputs.cargo-profile }} --out dist --features extension-module,sqlbuild-cli/ui
${{ matrix.platform.name == 'linux-x86_64' && '--timings' || '' }}
target: ${{ matrix.platform.target }}
manylinux: auto
Expand All @@ -229,8 +234,9 @@ jobs:
&& steps.extension.outcome == 'failure' && steps.extension-retry.outcome == 'failure'
shell: bash
env:
SQLBUILD_UI_REQUIRED: "1"
MATURIN_ARGS: >-
--profile ${{ inputs.cargo-profile }} --out dist --features extension-module
--profile ${{ inputs.cargo-profile }} --out dist --features extension-module,sqlbuild-cli/ui
TARGET: ${{ matrix.platform.target }}
run: scripts/maturin_from_pypi.sh build ${MATURIN_ARGS}
- id: cli
Expand Down Expand Up @@ -368,9 +374,9 @@ jobs:
cd "${RUNNER_TEMP}"
"${smoke}/python" -c \
"import sqlbuild._native as native; assert native.semantic_help_catalogue()"
mkdir -p "${project}/models"
mkdir -p "${project}/sql/models"
printf 'name = "scope_smoke"\nadapter = "duckdb"\n' > "${project}/sqlbuild_project.toml"
printf 'MODEL();\nSELECT 1 AS id\n' > "${project}/models/orders.sql"
printf 'MODEL();\nSELECT 1 AS id\n' > "${project}/sql/models/orders.sql"
"${smoke}/sqb" --project-dir "${project}" scope model:orders --json
"${smoke}/sqlbuild" --project-dir "${project}" scope model:orders
# The packaged sqb server must serve the embedded UI, not only the API.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ jobs:
- name: Fetch the base for the new-duplicate check
run: git fetch --no-tags --depth=1 origin "$BASE_REF"
env:
BASE_REF: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha || 'main:refs/remotes/origin/main' }}
BASE_REF: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha || '+main:refs/remotes/origin/main' }}
- name: Run static checks
run: make check-ci
env:
Expand Down
143 changes: 93 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading