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

Aberta
#6,182 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 4 dias

Ninguém assumiu esta issue ainda.

  • #6183 de @brucearctor — fechado sem integrar

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
github-actions, python
Domínio
testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
3.3k
Forks
471
Merge médio
6d 7h
PRs com merge (30d)
35

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de SQLMesh/sqlmesh

Todas as issues de SQLMesh/sqlmesh

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.