ci(windows): parallel pytest-xdist workers race on duck_conn.install_extension("ducklake") in test_duckdb.py

Đang mở
#6,182 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

  • #6183 của @brucearctor — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions, python
Lĩnh vực
testing

Hướng nghiên cứu

The race is in the three ducklake tests in tests/core/engine_adapter/test_duckdb.py that call duck_conn.install_extension("ducklake"), and the Windows CI job runs them with pytest -n auto. Pull request #6183 is already open against this issue, so check it before starting. Done means these tests no longer race on the shared extension directory on Windows and the cicd-tests-windows job passes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Description

In cicd-tests-windows (make fast-test running pytest -n auto), three tests in tests/core/engine_adapter/test_duckdb.py call duck_conn.install_extension("ducklake"):

  • test_ducklake_partitioning (test_duckdb.py:132)
  • test_drop_table_ducklake_no_cascade (test_duckdb.py:164, added in #6034)
  • test_drop_table_ducklake_no_cascade_mixed_case_alias (test_duckdb.py:195, added in #6034)

When pytest-xdist schedules these tests concurrently across workers (gw0 / gw1) on Windows, both workers download and move ducklake.duckdb_extension into the shared ~/.duckdb/extensions/ directory simultaneously, causing a Windows file-move lock error:

_duckdb.IOException: IO Error: Could not move file: Access is denied.
Example CI Failures
Suggested Fix

Either mark the ducklake tests with @pytest.mark.isolated, group them onto a single xdist worker, or configure SET extension_directory = '<tmp_path>' / pre-install ducklake once before worker fan-out.

Ngôn ngữ chính
Python
Star
3.3k
Fork
471
Merge trung bình
6 ngày 7 giờ
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SQLMesh/sqlmesh

Tất cả issue của SQLMesh/sqlmesh

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.