Record the round after the review of slice 3 in the design of the session seam
17.7: the merge of main (ad20979), what it conflicted on and what it needed to
compile, the four minors of the review with their commits, and what ran on the
merged tree: fmt and clippy per commit, tests on both toolchains, the lib
suite ten times in a row, cargo doc, the acceptance of section 10 (including
the rustdoc JSON walk), the notices check, and the smoke script and the live
binaries before and after. The status line follows.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f1df88690b
commit
d5d85b3f3d
1 file changed
+73
-1
+73
-1
@@ -3,7 +3,8 @@
|
||||
Status: design (2026-10-20); slices 1, 2 and 3 are implemented (section 13
|
||||
says how slice 1 differs from this text, sections 14 and 15 what its reviews
|
||||
changed, section 16 what slice 2 built, found and corrected, section 17 what
|
||||
slice 3 moved, changed and ran); section 10 has the slices.
|
||||
slice 3 moved, changed and ran, and 17.7 the round after its review, which
|
||||
brought the branch onto main `ad20979`); section 10 has the slices.
|
||||
|
||||
Design for the first half of plan step 7 (Phase 4): the engine consumes
|
||||
`voelin_proto::link::Session`, `ServerLink` becomes an adapter over it, and
|
||||
@@ -1648,3 +1649,74 @@ were fresh compose projects (`down -v`, `up -d`) for each smoke run.
|
||||
the comment of `voelin-store` (`voelin_core::identity`, a crate other
|
||||
branches own) and `docs/research/ui-review.md` (research notes with line
|
||||
numbers of `voice.rs`).
|
||||
|
||||
### 17.7 The round after the review of slice 3
|
||||
|
||||
The review of slice 3 left four minors. This round closes them, one commit
|
||||
each, and brings the branch onto `main` (`ad20979`), so that the tree the gate
|
||||
judges is the tree that will be merged. No history was rewritten.
|
||||
|
||||
| Commit | What |
|
||||
|---|---|
|
||||
| `e13d401` | Merge of `main` (`ad20979`, 13 commits: the merge of `phase5/ui-vm`, the toolkit-free `crates/voelin-ui-vm` and the logic/bind split of `crates/voelin-ui`), see below. |
|
||||
| `87926e9` | Minor 1. `link::connect::credential` refuses a TeamSpeak `IdentityBlob` whose JSON is empty (or only white space) with `SessionError::Protocol("the TeamSpeak identity cannot be read: it is empty")`, before any connector is asked: sent as it was, it was the empty `Credential::Foreign` blob that the TeamSpeak connector reads as "make an identity up", which only `identity: None` may ask for. Two tests: `link::connect::tests::a_teamspeak_identity_without_json_is_refused` (`""` and `" \n\t"` are refused, none is still the empty blob) and, through the engine on the fake host, `a_teamspeak_identity_without_json_is_refused_and_no_session_is_made` (`ConnectVoice` ends in `Disconnected` with the error `voice: the TeamSpeak identity cannot be read: it is empty`; the connector's `connects()` is empty and `last_session()` is `None`; a connect without identity works afterwards). Both fail with the check switched off. The comment of `ts::identity::to_blob` ("a blob with no JSON is refused when it is used, in words") is unchanged and holds on both paths now: the gateway's `from_blob` always refused it (`ObserveGateway` ends with its reason, without a login). |
|
||||
| `f0d20cc` | Minor 2. `QueryLogin.transport` has its doc comment, the only public field of the type without one. |
|
||||
| `76a884a` | Minor 3. 4.1 (the `TsConnector` owns the myTeamSpeak account since `a451f02`; it is not registered "with the engine's watches"), the 16.1 table (`src/ts/ts_session/live_tests.rs`), the section 10 acceptance `rg` (given as run from the repository root, `--glob '!**/ts/**'`, and the glob it takes from `crates/voelin-core/src`), the module documentation of `ts/voice.rs` (it linked `crate::TsLink`, which is `ts::ts_link::TsLink` and crate-private), `link/tests.rs` (`ts/ts_session/driver.rs`), the comment on `IdentityOrigin::Imported` in `voelin-store` (`voelin_core::ts::identity`; one word, the crate is otherwise untouched) and `docs/research/ui-review.md` (`ts/voice.rs`; the line number of the channel subscription, which has moved twice since the note was written, is replaced by where the code is). One more of the same kind that the list did not name: `docs/audio.md` named `voelin-core/src/link.rs` for `LinkCmd::Audio`, which is `link/mod.rs`. |
|
||||
| `f1df886` | Minor 4. `ts::voice::Voice::command` answered `LinkCmd::Download`, `Upload` and `CancelTransfer` with `anyhow::bail!`, which ends the whole TeamSpeak connection (chat, voice, presence and the stream task with it). `Download` and `Upload` now answer their `report` with `TransferState::Failed("this link does not run transfers itself")` and the connection goes on; `CancelTransfer` has no report and nothing to cancel, and is logged at debug. (Making the variants unrepresentable for the inner link would mean a second command enum next to `LinkCmd`; the match arm is smaller.) Test: `ts::voice::account_tests::a_transfer_command_fails_the_transfer_and_not_the_connection` gives an unconnected `Voice` the three commands: each returns `Ok`, the two reports see exactly the `Failed`, nothing is pending. |
|
||||
|
||||
**The merge.** Three conflicts:
|
||||
|
||||
- `crates/voelin-ui/src/settings_pages.rs` (modify/delete): `main` split it
|
||||
into `settings_pages/{mod,bind}.rs` and `voelin-ui-vm`'s
|
||||
`settings_pages/logic.rs`; this branch had only changed its six
|
||||
`voelin_core::identity::` paths. The file is deleted, and the six paths are
|
||||
`voelin_core::ts::identity::` where the code now is (five in `bind.rs`,
|
||||
`Found` in `logic.rs`; the import moves in its group, as `rustfmt` orders
|
||||
it).
|
||||
- `crates/voelin-ui/src/identities.rs`: the module comment, which names
|
||||
`voelin_core::ts::identity::import_new` (this branch) and `settings_pages/`
|
||||
(`main`).
|
||||
- `docs/architecture.md`: the `voelin-core` row of this branch with the
|
||||
`voelin-ui-vm` and `voelin-ui` rows of `main`.
|
||||
|
||||
Not conflicts, but needed to compile: `voelin-ui-vm` named the in-tree
|
||||
`voelin-model` by path, which `fb8e6b6` (an early commit of the branch) had taken out of the
|
||||
workspace for the protocol repository's (`voelin-model = { workspace = true }`
|
||||
now). Nothing else of `voelin-ui-vm` or of `voelin-ui`'s new `bind` modules
|
||||
touched a type of this slice: `VoiceOptions`, `ObserveGateway`, `ObserveQuery`
|
||||
and the removed commands are only built in `voelin-ui/src/servers.rs`, which
|
||||
merged on its own and compiles (17.3's list is absorbed with these two
|
||||
changes). `Cargo.lock`, `Cargo.toml`, `README.md`, `docs/ui.md`,
|
||||
`crates/voelin-ui/Cargo.toml`, `app.rs` and `servers.rs` merged without a
|
||||
conflict: the lock resolves with `--locked`, and its difference to `main`'s is
|
||||
the branch's alone (the edges of `voelin-core` to `voelin-identity` and
|
||||
`voelin-proto`, the revision `c8e0e5a` of the three protocol crates, and
|
||||
`voelin-model` as a git package). `CHANGELOG.md` is `main`'s entry
|
||||
(`voelin-ui-vm`); the branch adds none (17.1), and still needs none: nothing
|
||||
of this round is visible to a user.
|
||||
|
||||
**What ran.** Same environment as 17.5, taken again: the toolchains from the
|
||||
store paths in front of `PATH` in a `nix shell` of `gcc cmake gnumake
|
||||
pkg-config jq` and the `.dev` outputs of `alsa-lib openssl libvpx dav1d
|
||||
pipewire fontconfig freetype libxkbcommon expat`, with `PKG_CONFIG_PATH`
|
||||
(`.dev` outputs), `LD_LIBRARY_PATH` (the `.out`, `.lib` and `.dev` outputs of
|
||||
those: the test binary of `voelin-ui` needs `libfontconfig.so.1`),
|
||||
`LIBCLANG_PATH` and `BINDGEN_EXTRA_CLANG_ARGS` set by hand. With that,
|
||||
`cargo check --workspace --all-targets --locked` passes on 1.94 at the merge
|
||||
and at the head, `voelin-ui`, `voelin-ui-vm`, `voelinctl` and `voelin-android`
|
||||
included.
|
||||
|
||||
| Check | Result |
|
||||
|---|---|
|
||||
| `cargo fmt $(scripts/own-crates.sh) -- --check` | 1.94: clean at the head and at every commit (the merge first differed by the order of one `use` in `voelin-ui-vm`, fixed in the merge commit). Nightly: five files, the baseline's six without `voelin-ui/src/studio.rs`, which `main`'s split removed (`voelin-core/src/history.rs`, `voelin-media/src/ffmpeg/encoder.rs`, `voelin-stream/src/discovery.rs`, `voelin-ui/src/chat.rs`, `tools/voelinctl/src/engine.rs`); `voelin-ui-vm` is clean on both. |
|
||||
| `cargo clippy $(scripts/own-crates.sh) --all-targets --no-deps --locked -- -D warnings` | 1.94: clean at the merge (and `-p voelin-ui` alone) and at the head. Each of the five new commits was checked out detached in this worktree and passes `fmt` and `clippy`: the merge on all own crates and on `-p voelin-ui` alone, the four others on `-p voelin-core -p voelin-store`. Nightly, `-p voelin-core --all-targets`: the same five errors as in 17.5 (`result_large_err` of `shutdown_connection` in `ts/voice.rs`, four `chunks_exact` in `audio.rs`), none in new code. |
|
||||
| `cargo test -p voelin-core --locked --no-fail-fast` | At the head, 1.94 and nightly: 246 lib tests pass (244 + the two of this round), 2 are ignored, 2 fail, the two of the baseline (`discover::tests::without_records_the_gateway_itself_is_asked`, `web::tests::pictures_go_through_the_proxy_named_for_each_hop`: `localhost` resolves to `::1` only here); the integration tests pass (`session_fake` 19 and 2 ignored, the others as in 17.5). At the merge, before the minors: 244, the same two, and the integration numbers of 17.5. `cargo test -p voelin-ui -p voelin-ui-vm -p voelinctl`: 35, 146 and 7 pass. `voelin-store` (a comment changed): 31 lib tests and 49 of its integration tests pass, but `store::tests::a_blocked_checkpoint_waits_briefly_and_leaves_the_busy_timeout_as_it_was` failed once, in a run under a load average of 8.5 from other jobs on this machine (it asserts that a checkpoint returned in under a second of wall clock); it passed in five isolated runs and three more runs of the crate; it was not chased (a crate this round left alone). |
|
||||
| The lib suite 10 times in a row (1.94) | `cargo test -p voelin-core --lib`: ten runs, each 246 passed, 2 failed, 2 ignored, the same two failing tests every time, the banner test passing every time. The same ten runs with those two tests skipped (`--skip`): exit 0 every time (246 passed, 2 ignored). `session::banner_tests::a_failing_banner_is_logged_once_with_its_address` (17.5 saw it fail once) did not fail in these 20 full runs, so the test is as it was: a fix would be a guess at a cause nobody has seen. |
|
||||
| `RUSTDOCFLAGS='-D warnings' cargo doc --no-deps -p voelin-core` | passes, with and without `--features media-desktop`. |
|
||||
| The acceptance of section 10 | The `rg` is empty from the repository root (`--glob '!**/ts/**'`) and from `crates/voelin-core/src` (`--glob '!ts/**'`), with the four exceptions; `session.rs` names none of `tsclientlib`, `tsproto`, `voelin_query`, `ts_bookkeeping`; the grep of `pub` items outside `ts/` is empty; the rustdoc JSON of `voelin-core` (nightly, `--features media-desktop`; every item of the crate, 5,292 of them, whose type references name `tsclientlib`, `tsproto*`, `ts_bookkeeping`, `voelin_query` or `voelin_observer`) has 11 items with such references, all in `voelin_core::ts` (`to_blob`, `from_blob`, `export`, `write_export`, `improve_level`, `Found::identity`, `resolve`, `native_version`, `KnownVersion::to_version` and the two setters), none elsewhere; `voelin_core::stream` keeps its re-exports; `cargo tree -p voelin-core -e normal` still lists `tsclientlib` and `tsproto*`. |
|
||||
| `scripts/notices.sh --check` (cargo-about 0.9.2, built under the scratch directory) | up to date at the merge and at the head; `Cargo.lock` did not change after the merge. |
|
||||
| `scripts/it-smoke.sh ts3 ts6` | Before (`6a08147`, the head of slice 3) and after (`f1df886`): fresh compose stacks (`down -v`, `up -d`, project `voelin-seam-merge`, state directory under the scratch directory) and the same result: every per-server scenario passes, the TeamSpeak session module stage 12 passed and 2 ignored (16.34 s before, 16.39 s after), the engine stage 5 passed and 1 failed at `live.rs:396` (`ts6_banners`, the baseline's failure, 17.5). The two outputs, 99 lines each (the compose lines left out), are equal line by line with digits, base64 runs and uuids masked, but for the random uid of the streamer in the stream-directory line and the name of the state directory in two paths. |
|
||||
| The live binaries by hand, serially, `--features media-desktop`, on the same servers | Before and after alike: `ts_session::live_tests --include-ignored` 14 of 14 (46.42 s, 46.43 s), `live` 6 of 6 (73.40 s, 73.39 s), `media_live` 2, `stream_live` 3, `voice_features` 3, `voelin-stream`'s `live_ts6` 1. |
|
||||
|
||||
The last bullet of 17.6 (documents that still name the old paths) is closed by
|
||||
`76a884a`; the others stand.
|
||||
Reference in new issue
Block a user