Skip to content

Commit

Permalink
set postgres host for pg test, remove aarch from caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
Omega359 committed Dec 19, 2024
1 parent 22c1dbb commit 35b1490
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/actions/setup-builder/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ runs:
"${RETRY[@]}" rustup component add rustfmt
- name: Configure rust runtime env
uses: ./.github/actions/setup-rust-runtime
- name: Run rust cache
uses: Swatinem/rust-cache@v2
- name: Fixup git permissions
# https://github.com/actions/checkout/issues/766
shell: bash
Expand Down
2 changes: 0 additions & 2 deletions .github/actions/setup-rust-runtime/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ runs:
steps:
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Run rust cache
uses: Swatinem/rust-cache@v2
- name: Configure runtime env
shell: bash
# do not produce debug symbols to keep memory usage down
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,10 @@ jobs:
- name: Run sqllogictest
run: |
cd datafusion/sqllogictest
PG_COMPAT=true PG_URI="postgresql://postgres:postgres@localhost:$POSTGRES_PORT/db_test" cargo test --profile ci --features=postgres --test sqllogictests
PG_COMPAT=true PG_URI="postgresql://postgres:postgres@$POSTGRES_HOST:$POSTGRES_PORT/db_test" cargo test --profile ci --features=postgres --test sqllogictests
env:
# use postgres for the host here because we have specified a container for the job
POSTGRES_HOST: postgres
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}

# Temporarily commenting out the Windows flow, the reason is enormously slow running build
Expand Down Expand Up @@ -386,6 +388,7 @@ jobs:
shell: bash
run: |
cargo nextest run --hide-progress-bar --no-fail-fast --cargo-profile ci --exclude datafusion-examples --exclude datafusion-benchmarks --exclude datafusion-sqllogictest --workspace --lib --tests --bins --features avro,json,backtrace
cargo test --profile ci --package datafusion-sqllogictest --test sqllogictests
cd datafusion-cli
cargo nextest run --hide-progress-bar --no-fail-fast --cargo-profile ci --lib --tests --bins --all-features
Expand Down Expand Up @@ -425,6 +428,8 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder
with:
rust-version: stable
- name: Run gen
run: ./regen.sh
working-directory: ./datafusion/proto
Expand Down

0 comments on commit 35b1490

Please sign in to comment.