Repository navigation
Revert the #49 URL-fragment fix: it breaks URL scraping from stdout - #53
Merged
Merged
Conversation
This reverts commit e6436ef.
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.
Reverts the #49 fix. Keeps the version bump, so 0.5.3 ships the #48 PIN-prompt
fix on its own.
The fix stripped the access code from the startup URL whenever stdout was not
a terminal. That line is also how programs learn the URL:
tests/e2e/conftest.pyruns the listener with
stdout=subprocess.PIPEand grepsURL:\s*(https://\S+)for it. A pipe is not a terminal, so the harness got aURL with no credential and nothing could connect. e2e failed across every suite
that needs a connection.
That is not a test artifact. Any script harvesting the URL from stdout breaks
the same way, and
URL:at the start of the line is a contract this projectdeliberately protects.
isTTYwas the wrong test. It separates a terminal from everything else, whenthe distinction wanted is a system log from a script -- and both of those are
pipes. The real version needs daemon detection (
JOURNAL_STREAM,INVOCATION_ID, parent pid 0 or 1 for procd and containers), an override forwhen the guess is wrong, and an e2e test pinning that a piped-but-not-daemon
listener still prints the whole URL. Follow-up issue has the detail.
serve_display.goandserve_display_test.goare byte-identical to theirstate before the fix, which is what has shipped since 0.5.0.