Repository navigation
Conversation
The Builders, Builds and Activity windows now keep a WebSocket to the registry's live feed while they're open (libcvc's ws-* verbs, natively and in the browser). A builder or a job on the page changes in place as the server reports it; a new job on the first page, a job leaving the filter, an activity event or a resync reloads with one REST request. Each window's status line ends in "· live", or "· polling" while the feed is down; then it polls about every 10 s and tries the feed again. Without the verbs, with --live off, or after close 4004/4001, it only polls. Builders now keep only the fields the window shows: cvcpkg.org's builder capabilities have keys like "glibc2.35", which can't name state nodes, so storing whole builders failed against the real registry. The fixture's first builder carries such keys now. The fixture registry serves /v1/live/ws (a small stdlib WebSocket server) and /_live to publish, close or turn off the feed. fleet_test checks in-place updates without new /v1 requests, reloads, and the 4004 fallback; the tmux and browser tests check that View > Builders goes live. CI adds transfix/libcvc#923.
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.
The Builders, Builds and Activity windows no longer refresh every 10 s. While a window is open it follows the registry's
/v1/live/wsfeed, natively and in the browser build, using the newws-*verbs in transfix/libcvc#923 (roadmap L6).Per window:
buildersbuilderchanges its row in place, or adds one;builder_removedreloadsbuildsactivity· live, or· pollingwhile the feed is down.ws-*(has?),--live off, or a close with 4004 (no live updates) or 4001.net.ari(live-pump,live-stop,live-idle). The pure parts are inlib.ari(live-url,hello-text,live-final,live-note), with unit tests.Fix found on the way: cvcpkg.org's builders have capability keys like
glibc2.35, andstate-set-treerefuses them as node names. So the Builders window onmainfails against the real registry (the fixture data predates those keys). Builders are now cut to the fields the window shows (builder-row), and the fixture's first builder carries dotted capability keys.Fixture:
fixture_registry.pyserves/v1/live/ws, a small stdlib WebSocket server that speaks HTTP/1.1 for the upgrade./_live?msg=publishes a message, and also applies it to what the REST endpoints serve./_live?close=CODEcloses every feed and/_live?off=1turns the feed off. The site CSP names thews://origin. The tracked__pycache__/*.pycis removed and ignored.Tests:
fleet_testadds 7 tests: all three windows go live, a builder changes in place with no new/v1/buildersrequest, a new builder is added, a job changes in place with no new/v1/buildsrequest, a new job reloads, an event reloads, and a 4004 close leaves the windows polling.14 of 20 online · live.--live off, so the frame doesn't depend on when the feed connects.