Ci speed a improvements#11
Draft
davidpcls wants to merge 20 commits into
Draft
Conversation
I didn't run it beforehand. Oops.
These seem to resolve the LDAP server issues locally, pushing the changes to see if that fixes them remotely as well.
This migrates to pyproject.toml which better supports the pixi and uv tools. Pip should work just fine as well. This removes the "python 2" support in setup.py but that was removed a long time ago already.
This reverts commit 7a1b290.
There was an unused import.
Phase A
Use a local re_manager_cmd fixture with worker-scoped ZMQ/Redis settings and route tests to it to prevent cross-worker collisions and startup cascades. Also switch queue reset calls to zmq_secure_request so control requests consistently target the active manager.
davidpcls
marked this pull request as draft
July 22, 2026 14:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
it's been long enough I don't know if this is still useful or not. I think perhaps we need to break this down differently.
test_access_control.py,test_auth_api.py) where manager state is not intentionally mutated.pytest-xdistand--dist=loadfile.Why
Implementation Details
re_manager_modulefixture inbluesky_httpserver/tests/conftest.pyand switched auth suites to use it.test_resource_access_01to preserve deterministic behavior with shared manager lifetime.bluesky_httpserver/tests/conftest.pyto assign unique ports and env vars per xdist worker.re_managerfixture in localconftest.pyto startReManageron worker-specific ZMQ ports.pytest-xdisttorequirements-dev.txt.--durations=20 -n auto --dist=loadfile.Validation
uv run pre-commit run --all-filesuv run pytest bluesky_httpserver/tests/test_auth_api.py -quv run pytest bluesky_httpserver/tests/test_access_control.py -quv run pytest -q -n 2 --dist=loadfile bluesky_httpserver/tests/test_auth_api.py bluesky_httpserver/tests/test_core_api_main.py -k "test_http_server_start_01 or test_http_server_ping_handler or test_api_auth_post_apikey_01"Expected Impact