Skip to content

test(relay): look for origin fragments long enough to mean something - #665

Merged
superuser404notfound merged 1 commit into
mainfrom
fix/relay-test-fragments
Sep 28, 2026
Merged

superuser404notfound merged 1 commit into
mainfrom
fix/relay-test-fragments

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

HLSOriginRelayTests.localURLCarriesNoOriginText checked that the relay URL does not contain "jf". The reference in that URL is random base64 of about 190 characters, so it contains any given two-letter pair on roughly one run in twenty. That is how it failed the 7.22.0 release run on main (…BjyjfBTh…), with the code unchanged since the PR run that passed.

The test now checks for fragments that would actually give the origin away: jf.example, master.m3u8 and api_key. The check still covers what it was written for, since a leaked host, path or token contains those fragments. Test-only change, no release needed. 40 runs in a row pass locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mf4MXgM9bqugHoe5TW4BYf

localURLCarriesNoOriginText checked that the relay URL does not contain "jf",
but the reference in that URL is random base64 of about 190 characters, which
contains any given two-letter pair on roughly one run in twenty. It failed the
7.22.0 release run on main that way ("...BjyjfBTh..."), with the code
unchanged since its green PR run. The fragments are now the ones that would
actually give the origin away (jf.example, master.m3u8, api_key); 40 runs in a
row are green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf4MXgM9bqugHoe5TW4BYf
@superuser404notfound
superuser404notfound merged commit 2914ecd into main Sep 28, 2026
7 checks passed
@superuser404notfound
superuser404notfound deleted the fix/relay-test-fragments branch September 28, 2026 17:53
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.

1 participant