Apache DataFusion SQL Query Engine
ci: fix temporary file creation in tests and tighten CI check (#18374)
Yongting You9c116a595979
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.ymlindex 7019de0b75..8a3563899f 100644--- a/.github/workflows/rust.yml+++ b/.github/workflows/rust.yml@@ -302,6 +302,15 @@ jobs:--features serde,avro,json,backtrace,integration-tests,parquet_encryption- name: Verify Working Directory Cleanrun: git diff --exit-code+ # Check no temporary directories created during test.+ # `false/` folder is excuded for rust cache.+ - name: Verify Working Directory Clean (No Untracked Files)+ run: |+ STATUS="$(git status --porcelain | sed -e '/^?? false\/$/d' -e '/^?? false$/d')"+ if [ -n "$STATUS" ]; then+ echo "$STATUS"+ exit 1+ fi# datafusion-cli testslinux-test-datafusion-cli:diff --git a/datafusion/core/tests/dataframe/mod.rs b/datafusion/core/tests/dataframe/mod.rsindex e27a341485..c35e3b2eb3 100644--- a/datafusion/core/tests/dataframe/mod.rs+++ b/datafusion/core/tests/dataframe/mod.rs@@ -6328,7 +6328,7 @@ async fn test_copy_schema() -> Result<()> {let target_path = tmp_dir.path().join("target.csv");let query = format!(- "COPY source_table TO '{:?}' STORED AS csv",+ "COPY source_table TO '{}' STORED AS csv",target_path.to_str().unwrap());