Skip to content

Customizable Pulsar test file server port and files endpoint#406

Merged
jmchilton merged 1 commit into
galaxyproject:masterfrom
domgz:customizable_test_file_server_port_and_files_endpoint
Sep 4, 2025
Merged

Customizable Pulsar test file server port and files endpoint#406
jmchilton merged 1 commit into
galaxyproject:masterfrom
domgz:customizable_test_file_server_port_and_files_endpoint

Conversation

@domgz

@domgz domgz commented Jul 17, 2025

Copy link
Copy Markdown
Contributor
  • Read port at which the Pulsar test file server should listen from PULSAR_TEST_FILE_SERVER_PORT.
  • Make the files endpoint customizable via a new PULSAR_TEST_INTERNAL_JOB_FILES_URL variable.
  • Use PULSAR_TEST_FILE_SERVER_HOST only for the test file server (rather than also using it for the test Pulsar app).

These changes make it possible to expose the files server via port-forwarding (since the files server port is now predictable). This is useful for testing the upcoming staging delegation with an external service (e.g. ARC).

- Read port at which the Pulsar test file server should listen from `PULSAR_TEST_FILE_SERVER_PORT`.
- Make the files endpoint customizable via a new `PULSAR_TEST_INTERNAL_JOB_FILES_URL` variable.
- Use `PULSAR_TEST_FILE_SERVER_HOST` only for the test file server (rather than also using it for the test Pulsar app).

These changes make it possible to expose the files server via port-forwarding (since the files server port is now predictable). This is useful for testing the upcoming staging delegation with an external service (e.g. ARC).
Comment thread test/test_utils.py
Comment on lines 258 to 260
app = test_app.app
create_kwds = {
}
if os.environ.get("PULSAR_TEST_FILE_SERVER_HOST"):
create_kwds["host"] = os.environ.get("PULSAR_TEST_FILE_SERVER_HOST")

create_kwds = {}
if host:
create_kwds["host"] = host
if port:
create_kwds["port"] = port

server = StopableWSGIServer.create(app, **create_kwds)

@domgz domgz Jul 17, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: now the test Pulsar app won't bind to PULSAR_TEST_FILE_SERVER_HOST (only the files server). Please consider whether this is a breaking change before approving the changes from the PR.

@domgz domgz mentioned this pull request Jul 17, 2025
@jmchilton
jmchilton merged commit b3ec47c into galaxyproject:master Sep 4, 2025
8 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants