Skip to content

Commit

Permalink
Merge branch 'main' into alamb/df_46
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyler authored Feb 25, 2025
2 parents b6700c1 + 666179e commit ce87ed1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/scripts/retry_integration_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
set +e
TEST_NAME=$1
MAX_RETRIES=$2
RETRY_DELAY=$3
ATTEMPT=1
run_command() {
uv run --no-sync pytest -m "($TEST_NAME and integration)" --doctest-modules 2>&1
}
until [ $ATTEMPT -gt $MAX_RETRIES ]
do
echo "Attempt $ATTEMPT"
OUTPUT=$(run_command)
EXIT_CODE=$?
echo "$OUTPUT"
if [ $EXIT_CODE -eq 0 ]; then
echo "Tests passed."
exit 0
fi
echo "Failed. Retrying."
ATTEMPT=$((ATTEMPT+1))
sleep $RETRY_DELAY
done
if [ $ATTEMPT -gt $MAX_RETRIES ]; then
echo "Tests failed after $MAX_RETRIES attempts."
exit 1
fi
5 changes: 2 additions & 3 deletions .github/workflows/python_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
run: make setup-dat

- name: Run tests
run: uv run --no-sync pytest -m '(unitycatalog_databricks and integration)' --doctest-modules
run: ../../delta-rs/.github/scripts/retry_integration_test.sh unitycatalog_databricks 5 10

test-unitycatalog-oss:
name: Python Build (Python 3.10 Unity Catalog Integration tests)
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
run: make setup-dat

- name: Run tests
run: uv run --no-sync pytest -m '(unitycatalog_oss and integration)' --doctest-modules
run: ../../delta-rs/.github/scripts/retry_integration_test.sh unitycatalog_oss 5 10

test-pyspark:
name: PySpark Integration Tests
Expand All @@ -192,7 +192,6 @@ jobs:
- name: Run tests
run: make test-pyspark


multi-python-running:
name: Running with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ tokio = { workspace = true, features = ["rt-multi-thread"] }

deltalake-mount = { path = "../crates/mount" }

# catalog-unity
deltalake-catalog-unity = { path = "../crates/catalog-unity", features = ["aws", "azure", "gcp", "r2"] }

# Non-unix or emscripten os
[target.'cfg(any(not(target_family = "unix"), target_os = "emscripten"))'.dependencies]
mimalloc = { version = "0.1", default-features = false }

# Unix (excluding macOS & emscripten) → jemalloc
# Unix (excluding macOS & emscripten) → jemalloc
[target.'cfg(all(target_family = "unix", not(target_os = "macos"), not(target_os = "emscripten")))'.dependencies]
jemallocator = { version = "0.5", features = ["disable_initial_exec_tls", "background_threads"] }

Expand Down

0 comments on commit ce87ed1

Please sign in to comment.