Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
fix acceptance_test
  • Loading branch information
sshane committed Jul 26, 2025
commit f8b3f5e0ea6baa443576b06a2c911aba7528e6dc
1 change: 0 additions & 1 deletion src/xdist/scheduler/loadscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def add_node(self, node: WorkerController) -> None:
"""
assert node not in self.assigned_work
self.assigned_work[node] = {}
# sort by gw id
self.assigned_work = dict(sorted(self.assigned_work.items(), key=lambda item: item[0].gateway.id))

def remove_node(self, node: WorkerController) -> str | None:
Expand Down
4 changes: 4 additions & 0 deletions src/xdist/workermanage.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ def setup_nodes(
self,
putevent: Callable[[tuple[str, dict[str, Any]]], None],
) -> list[WorkerController]:
# create basetemp directory only once
if hasattr(self.config, "_tmp_path_factory"):
self.config._tmp_path_factory.getbasetemp()

self.config.hook.pytest_xdist_setupnodes(config=self.config, specs=self.specs)
self.trace("setting up nodes")
with ThreadPoolExecutor(max_workers=len(self.specs)) as executor:
Expand Down