Skip to content

Conversation

@kysrpex
Copy link
Contributor

@kysrpex kysrpex commented Jul 17, 2025

  • 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 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)
Copy link
Contributor Author

@kysrpex kysrpex Jul 17, 2025

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.

@kysrpex kysrpex 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