Skip to content

Integrate Spool 0.10.2 and repair release CI - #12

Closed
sachk wants to merge 146 commits into
masterfrom
release/integrate-0.10.2
Closed

sachk wants to merge 146 commits into
masterfrom
release/integrate-0.10.2

Conversation

@sachk

@sachk sachk commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Integrate the 0.10.2 release branch with master after PR #11. The three-way comparison keeps the pinned build inputs, native test matrix, and distinct player, provider, and UI work from both branches.

  • Verify the libplacebo checkout against the locked revision, submodules, and Nix hash. Retry transient fetch errors and require the Android phone journey, TV journey, and universal APK.
  • Allow one same-SHA failed-job rerun for the allowlisted Android libplacebo fetch failure. The workflow reads only GitHub job metadata and logs.
  • Send typed, serial-tagged pause requests to libmpv and read back the latest acknowledged state. Reapply the request once when that readback disagrees. Record the pause command stage on timeout. Query startup pause and runtime video output properties asynchronously so the GUI and event consumer can continue servicing the renderer. Keep the first-playback-restart, exact-seek, and renderer assertions. Build the shared journey controller and spoolet directly on the Apple simulator hosts, removing the desktop build that exhausted the Intel iOS job timeout. Decode the offline native fixture without playback pacing, preserve the EOF assertions, and allow bounded scheduling headroom on the Intel iOS simulator. Limit OCR to one worker so a loaded runner can still read the actual pixels.
  • Sign the macOS bundle inside out after the final Mach-O rewrites. Compile and test separately from deployment so a failure retains the applicable frame. Both macOS failure frames showed the expected text. Read its actual pixels within the related card and playback menu.
  • On Android TV, use the embedded renderer for local media without codec metadata and for codecs without a supported hardware decoder. Clear stale GLES errors at the Qt and mpv render boundary. The native OSD and offline playback failures reproduced locally before the fixes. Drive Repeat with native Android D-pad events. Observe focus on each row and read the selected caption from the rendered settings before testing EOF, provider renegotiation, and a real restart from zero. An observed Android product crash records only allowlisted native module names and offsets, with no raw logs or process data. Both native test phases and both launcher categories passed locally on the phone and TV emulators.
  • Verify that the mpv gitlink and flake lock agree. This pin includes the upstream fix for CVE-2026-123095. Linux, macOS, webOS, iOS and tvOS packages passed the existing SBOM policy in local scans. The Windows copy of the mpv source discarded Git metadata, which caused the fixed build to report a prerelease marker. Derive the Windows build identifier from the verified upstream release ancestor and exact fork commit. The rebuilt Windows portable and installer packages from the preceding PR head passed the same policy. The current head has its own build and scan. Retry the specific Chocolatey NSIS feed HTTP 504 once when the installer is still missing.

Targeted local validation passed. The applicable hosted matrix is required on the final PR head and again on the resulting master commit.

sachk added 30 commits October 24, 2026 01:11
…equests

Add advanced Playback settings for threaded streaming (stock mpv networking
when off), the maximum concurrent request count (1-16, default 4), a forced
count, and an opt-in once-per-second streaming performance log covering
input/wire/capacity rates, buffer, process and curl-worker CPU, and
producer/consumer waits.

Learn and persist concurrency samples for 1-16 requests instead of 1-4,
and select the fewest requests within 15% of the best measured capacity,
or enough for 1.75x known media demand. The speed test now repeats each
operating point until 400 ms or 64 MiB within a 2.5 s cap, records the
bytes it actually received, and logs samples and selections. Providers no
longer declare a hard request cap; the native player applies the user's.

Expose a numeric speed-test status (module IDs, opaque account IDs, flags
and the lane curve) for automation, never names or origins.
… on webOS

Build the authenticated loopback control server into webOS packages, still
off unless a fresh launch passes SPOOL_AUTOMATION_PORT (Luna launch params
or the environment) with an optional SPOOL_AUTOMATION_INSTANCE. The
listener only binds 127.0.0.1.

Teach the desktop spoolet CLI a --host SSH transport: it discovers the
running instance through an embedded RemoteDiscovery.sh sent on stdin,
verifies owner-only descriptor permissions against the app process UID,
and forwards over `ssh -W` with BatchMode and strict host keys, without
local listeners, remote temp files or printing the capability. Add
`speed-test status` and include playback network metrics in `status`.
Document the setup and make diagnose.sh derive the Qt app-data root from
the process environment.
Update mpv to the ordered range queue: playback reads each parallel
range's validated prefix while it downloads instead of waiting for the
whole range, retries never splice a changed file, cores share DNS and
TLS sessions, and transport metrics report head-of-line wait, reorder
bytes, physical connections and worker wake-up lateness.

Set curl-read-size per platform (128 KiB on webOS, 256 KiB elsewhere)
so each active request takes fewer, larger body callbacks.
Update mpv so the player itself tells the curl transport about the
viewer's pause, buffer, seeking and measured demand every 250 ms. The
app's once-a-second transport control now only supplies the declared
bitrate prior.
…imits

Update mpv so transport metrics include the kernel's TCP RTT, effective
socket receive buffers, the host's receive-buffer and autotuning
ceilings, and CPU AES support.
…solve

Let resolve report the selected edition's size and duration and the
delivered representation's bitrate, size and duration, so streaming can
size demand from real media facts. The script runtime admits them at the
boundary: sizes and durations must be positive whole numbers or unsigned
decimal strings that fit 64 bits (normalized losslessly), bitrates and
dimensions stay whole numbers with 0 unknown, and booleans, fractions,
signed or non-decimal strings, nulls and non-object source/delivery fail
the resolve instead of being coerced. A picker answer is checked on its
follow-up resolve. Playback sessions carry the facts; local files report
their own size and duration.
…profiles

profile-streaming.py can now drive a remote instance through spoolet's
SSH transport (--host), compare forced request counts with automatic
selection on the same items (--request-counts 1,4,auto), play from the
start or seek to a fixed offset, and restores the streaming settings it
touched. Reports add per-run received rate, consumer-wait and
head-of-line fractions, peak physical connections, and whether a fixed
count was actually reached, so a silently reduced count cannot pass.
Update mpv for its seek-while-half-published transport test.
Send the playback's source and delivered media facts to mpv's transport
under a new epoch just before each load, and stop the once-a-second
bitrate/buffer/pause control: mpv now reports playback state to its
transport itself. Metrics are still read asynchronously for logging.
Preview sheets download over Qt networking, usually from the playback
origin, so they share the link with playback. TrickplayService now
reports when a fetch starts and ends, and the player forwards it as the
transport's background-network state for the current playback, which
keeps capacity measured meanwhile out of request-count decisions.
Seek previews, Optimized streaming (was Threaded streaming), Maximum
concurrent requests (was Maximum streaming threads), Use fixed request
count (was Force streaming thread count) and the streaming performance
log now live with the other Streaming settings. Keys, values and
dependencies are unchanged; the preview accuracy and size options stay
in Playback and still follow Seek previews. Descriptions say that the
count is of network requests, not threads or sockets, and that a fixed
count still keeps the other safeguards.
Picks up the mpv transport fix: a reply that delivered its whole validated
range is complete even if its connection then fails, so playback no longer
reads a primary chunk twice or retries an already-read parallel range, and
chunked range replies cannot deliver bytes past their range. The transport
fixture is now non-periodic, so exact-PCM checks see duplicated ranges.

The real-HTTP curl-transport suite now runs about 330 s; give it 600 s.
Copilot AI balanced review requested due to automatic review settings November 23, 2026 12:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@sachk

sachk commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by (which includes all commits from release/integrate-0.10.2 plus webOS audio sync/milestones, demuxer cache auto-scaling, high-RTT transport tuning, and the stream_curl talloc thread-safety fix).

@sachk

sachk commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Correction: superseded by #13.

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