You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Twins that start their own fixture servers collide under pytest -n: pick_port gives every xdist worker the same port #1742
CI runs the cluster files serially, so CI is green. But the guard job runs with -n 4, a developer running -n gets false reds, and #1740 notes that moving the cluster job to xdist (to cut its 17-minute run) waits on this.
Why: a module fixture that starts an S3/HTTP fixture server picks its port with pick_port(base), which does not depend on the xdist worker. Two workers probe the same free port at the same moment and both bind it (or one fails with Address already in use).
Next step: a guard that runs one such twin under -n 2 and requires green, red first; then make the port depend on the worker (as pgc_cluster does for its own clusters), or bind port 0 and read back the port.
Activity
fix: a fixture port depends on the xdist worker, so -n 2 runs no long…
fix: a fixture port depends on the xdist worker, so -n 2 runs no long…