Drop meaningless --port from resilience webless entrypoint - #487
Open
jmchilton wants to merge 1 commit into
Open
Drop meaningless --port from resilience webless entrypoint#487jmchilton wants to merge 1 commit into
jmchilton wants to merge 1 commit into
Conversation
webless mode binds no port and pulsar-main has no --port argument. The flag survives scripts/pulsar's option loop into "$@", which the webless branch discards unread, so dropping it is a no-op today. It stops being a no-op under #480, which makes webless forward "$@" to pulsar-main as docs/scripts/pulsar.rst already documents. argparse then rejects --port, pulsar exits at startup, no AMQP consumers bind, and the scenario suite fails. CI runs pytest -x, so the first scenario error blocks every scenario after it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
test/resilience/entrypoint.shlaunches Pulsar with a--portit cannot use:webless mode binds no port —
scripts/pulsar --helpsays so explicitly ("In webless mode Pulsar will not attempt to bind to a port") — andpulsar-maindeclares no--portargument.Why this is a no-op today
scripts/pulsarconsumes-h,-m|--modeand-c|--config, then forwards the rest.--portand--config_dirboth survive into"$@", and the webless branch runs a barepulsar-mainthat never references"$@". So the flag is discarded unread, and the command linepulsar-mainactually sees is identical before and after this change. The config directory reaches Pulsar through thePULSAR_CONFIG_DIRexport on the preceding line.Nothing in the suite talks to Pulsar on 8913 either: the
pulsarservice intest/resilience/docker-compose.ymlpublishes no ports, and readiness is docker-compose logs plus the RabbitMQ management API (_amqp_setup_has_consumer), never HTTP. The flag looks copied from the gunicorn/chaussette invocations, where a port is meaningful.Why it stops being a no-op
#480 makes the webless branch forward
"$@"topulsar-main, which is whatdocs/scripts/pulsar.rsthas always documented:With that change in place, argparse rejects the flag and the container dies at startup:
No AMQP consumers ever bind, and the first scenario test times out:
Because the job runs
pytest test/resilience -v -x, that first error blocks every scenario after it. The9 passedin that run ismock_galaxy/recorder_test.py, which never touches a container — the scenario suite is entirely blocked.Verification
Checked out #480's branch locally with only this one-line change applied and brought up the stack (Docker 29.7.2). The
pulsarcontainer stays up and logs:which is the exact
bind_markerstringharness/pulsar_control.pypolls for. Pre-fix that line never appeared, because the process exited at argparse.Landing this separately keeps the harness fix independent of the behaviour change in #480 — it is a pre-existing bug in the harness, and it costs #480 nothing to have it already merged.
🤖 Generated with Claude Code