Skip to content

Commit 0fefbb1

Browse files
authored
chore: Action some old TODOs in github actions (#17694)
* chore: Action some old TODOs in github actions * Update Cargo.toml * testing * Revert changing cli test runner to use container * Remove sccache
1 parent 6c81ca0 commit 0fefbb1

4 files changed

Lines changed: 6 additions & 79 deletions

File tree

‎.github/actions/setup-macos-builder/action.yaml‎

Lines changed: 0 additions & 47 deletions
This file was deleted.

‎.github/actions/setup-rust-runtime/action.yaml‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ description: 'Setup Rust Runtime Environment'
2020
runs:
2121
using: "composite"
2222
steps:
23-
# https://github.com/apache/datafusion/issues/15535
24-
# disabled because neither version nor git hash works with apache github policy
25-
#- name: Run sccache-cache
26-
# uses: mozilla-actions/sccache-action@65101d47ea8028ed0c98a1cdea8dd9182e9b5133 # v0.0.8
2723
- name: Configure runtime env
2824
shell: bash
2925
# do not produce debug symbols to keep memory usage down
@@ -32,11 +28,6 @@ runs:
3228
#
3329
# Set debuginfo=line-tables-only as debuginfo=0 causes immensely slow build
3430
# See for more details: https://github.com/rust-lang/rust/issues/119560
35-
#
36-
# readd the following to the run below once sccache-cache is re-enabled
37-
# echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
38-
# echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
3931
run: |
4032
echo "RUST_BACKTRACE=1" >> $GITHUB_ENV
4133
echo "RUSTFLAGS=-C debuginfo=line-tables-only -C incremental=false" >> $GITHUB_ENV
42-

‎.github/workflows/audit.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,4 @@ jobs:
4646
with:
4747
tool: cargo-audit
4848
- name: Run audit check
49-
# Ignored until https://github.com/apache/datafusion/issues/15571
50-
# ignored py03 warning until arrow 55 upgrade
51-
run: cargo audit --ignore RUSTSEC-2024-0370 --ignore RUSTSEC-2025-0020
49+
run: cargo audit

‎.github/workflows/rust.yml‎

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,18 @@ jobs:
308308
name: cargo test datafusion-cli (amd64)
309309
needs: linux-build-lib
310310
runs-on: ubuntu-latest
311-
# should be uncommented once https://github.com/apache/datafusion/pull/16644 is merged
312-
# and cache should be added
313-
# container:
314-
# image: amd64/rust
315311
steps:
316312
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
317313
with:
318314
submodules: true
319315
fetch-depth: 1
320316
- name: Setup Rust toolchain
321317
run: rustup toolchain install stable
318+
- name: Rust Dependency Cache
319+
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
320+
with:
321+
save-if: false # set in linux-test
322+
shared-key: "amd-ci"
322323
- name: Run tests (excluding doctests)
323324
env:
324325
RUST_BACKTRACE: 1
@@ -535,22 +536,6 @@ jobs:
535536
# export PATH=$PATH:$HOME/d/protoc/bin
536537
# cargo test --lib --tests --bins --features avro,json,backtrace
537538

538-
# Commenting out intel mac build as so few users would ever use it
539-
# Details: https://github.com/apache/datafusion/issues/13846
540-
# macos:
541-
# name: cargo test (macos)
542-
# runs-on: macos-latest
543-
# steps:
544-
# - uses: actions/checkout@v4
545-
# with:
546-
# submodules: true
547-
# fetch-depth: 1
548-
# - name: Setup Rust toolchain
549-
# uses: ./.github/actions/setup-macos-builder
550-
# - name: Run tests (excluding doctests)
551-
# shell: bash
552-
# run: cargo test run --profile ci --exclude datafusion-examples --exclude datafusion-benchmarks --workspace --lib --tests --bins --features avro,json,backtrace
553-
554539
macos-aarch64:
555540
name: cargo test (macos-aarch64)
556541
runs-on: macos-14

0 commit comments

Comments
 (0)