Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

[advisories]
ignore = [
# Existing exceptions until object_store upgrades to quick-xml >= 0.41.0:
# https://github.com/apache/datafusion/issues/23297
"RUSTSEC-2026-0194",
"RUSTSEC-2026-0195",
# Arrow 59 and compression-codecs require zstd 0.13 / zstd-safe 7.
# Remove these exceptions when they support zstd >= 0.14.3 / zstd-safe >= 8.2.0.
# No DataFusion, Arrow, Parquet, or compression-codecs caller uses the raw
# Encoder/Decoder::with_context APIs that reuse an abandoned stream's context.
# Reassess this exception when changing compression code or its dependencies.
"RUSTSEC-2026-0391",
# The legacy-frame decoder and seekable APIs are disabled. The audit workflow
# checks the resolved all-features graph so enabling either fails CI.
"RUSTSEC-2026-0403",
"RUSTSEC-2026-0398",
]
26 changes: 21 additions & 5 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ on:
paths:
- "**/Cargo.toml"
- "**/Cargo.lock"
- ".github/workflows/audit.yml"
- ".cargo/audit.toml"

pull_request:
paths:
- "**/Cargo.toml"
- "**/Cargo.lock"
- ".github/workflows/audit.yml"
- ".cargo/audit.toml"

merge_group:

Expand All @@ -48,9 +52,21 @@ jobs:
uses: taiki-e/install-action@6c6fd71fe4fb72c3697d269963d0e15df8adedad # v2.85.10
with:
tool: cargo-audit
- name: Check Zstd audit exception features
run: |
python3 - <<'PY'
import json
import subprocess

metadata = json.loads(subprocess.check_output([
"cargo", "metadata", "--locked", "--all-features", "--format-version", "1"
]))
packages = {package["id"]: package["name"] for package in metadata["packages"]}
for node in metadata["resolve"]["nodes"]:
if packages[node["id"]] in {"zstd", "zstd-safe", "zstd-sys"}:
unsafe_features = set(node["features"]) & {"legacy", "seekable"}
if unsafe_features:
raise SystemExit(f"Reassess Zstd audit exceptions: {node['id']} enables {sorted(unsafe_features)}")
PY
- name: Run audit check
# Note: you can ignore specific RUSTSEC issues using the `--ignore` flag ,for example:
# run: cargo audit --ignore RUSTSEC-2026-0001
# TODO: remove once object_store upgrades to quick-xml >= 0.41.0
# https://github.com/apache/datafusion/issues/23297
run: cargo audit --ignore RUSTSEC-2026-0194 --ignore RUSTSEC-2026-0195
run: cargo audit
15 changes: 15 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,21 @@ jobs:
with:
save-if: false # set in linux-test
shared-key: "amd-ci"
# The storage integration tests start RustFS containers. Pulling the image
# once up front keeps the pull off the critical path of the tests, which
# would otherwise pull it several times concurrently and occasionally fail
# with transient Docker transport errors. The tests retry the pull
# themselves, so a failure here is only a warning.
#
# RUSTFS_IMAGE must match RUSTFS_IMAGE_NAME and RUSTFS_IMAGE_TAG in
# `datafusion-cli/tests/cli_integration.rs`. The
# `rustfs_image_matches_ci_prepull` test fails if they differ.
- name: Pre-pull RustFS image
env:
RUSTFS_IMAGE: docker.io/rustfs/rustfs:1.0.0
run: |
ci/scripts/retry timeout 120 docker pull "$RUSTFS_IMAGE" \
|| echo "::warning::Could not pre-pull $RUSTFS_IMAGE, the tests will pull it themselves"
- name: Run tests (excluding doctests)
env:
RUST_BACKTRACE: 1
Expand Down
Loading
Loading