* test(api): fail any mutating route that ships without an authorization decision
The existing policy test only checks the routers and routes someone listed, so a new mutating route with no dependency passed every gate. scripts/dump_route_auth.py reports the authorization callables attached to each route, and the new test requires a dependency or an allowlist entry with a written decision. Every WebSocket route is covered, and only the read-only GET / fallback is excluded from the dump.
* fix(auth-policy): retain root WebSockets and verify documented guards (#4130)
---------
Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
Recognize current Electron App version fields alongside historical Version fields in crash recurrence reports. Match explicit beta versions exactly, preserve numeric preview/base matching, and keep unstamped freshness unknown without a target.
Eight parser/CLI regressions failed before the fix; all 26 focused cases and 50 combined style checks pass. Update script help and triage guidance.
Fixes#4119.
Skip PowerShell startup profiles and interactive prompts during all NSIS process probes. Keep existing process ownership checks, and shorten temporary source checkout paths to avoid MSVC linker path limits.
Add executable profile and source-build regressions, update Windows installation guidance and the Nix dependency hash. All 38 required and supporting checks pass, including Windows/Linux/macOS installation and Nix builds; CodeRabbit and Greptile found no code defects.
The absent legs and installers are now found before any check can fail, and
--missing-report is written in a finally block. A leg with an incomplete feed
still fails the step, but the rehearsal's final step lists every leg that built
nothing (review).
- Download each phone app into its own folder. A pattern that matches one
artifact extracts it without the artifact-name folder, which lost the
surviving app when the other phone leg failed (review).
- The missing-legs step runs after earlier rehearsal failures, and the signing
notes accept no reports in a rehearsal, so a run where every package leg was
skipped still lists them. Releases stay strict (review).
- Test signing accepts only an intact signature whose chain fails on nothing
but the untrusted root; HashMismatch, a missing signature or an expired
certificate fail (review).
- App Store signing steps skip in a rehearsal even when signed_ios is set, so
they never run without the protected environment (review).
- A rehearsal's release job also runs after failed build legs: it verifies
what built, lists the missing legs, and fails at the end. Releases still
need every leg.
electron-release.yml gains rehearsal=true: from any branch and without a tag it
builds every desktop package, the omnivoice-tts runtimes and the phone apps,
runs the packaged smoke tests, then the release job's verification
(prepare_electron_release.py --rehearsal against package.json's version, the
updater feed checksum and channel checks, the sunset feeds and signing notes).
It publishes nothing: the exact-tag check stays for releases, a rehearsal
refuses publish/release_tag/allow_unsigned, every publishing step is skipped by
its condition and refuses a rehearsal again in its script, phone builds skip
the protected signing environment, and SignPath runs only on an explicit
signpath_policy=test-signing. Artifacts expire after 3 days.
tests/test_release_rehearsal.py pins the guards; docs/RELEASING.md documents it.
Pinned ggml now requires find_package(SPIRV-Headers CONFIG), which the
LunarG SDK does not provide. Install the commit-checked Khronos release
matching the SDK into a private prefix; read UTF-8 explicitly in the
bundle test.
Move the omnivoice.cpp pin (desktop and mobile) to 040c8b3, the commit that adds
the tts-server target and voice registry the resident mode needs. Build, checksum,
upload and package tts-server-<platform> beside omnivoice-tts-<platform> on every
desktop platform, fail the build and packaging when it is missing, and log once
why resident mode fell back to the per-request binary.
Refs #3654
A beta's notes span everything since the last stable, so its Contributors list
repeated from beta to beta and new contributors were invisible. A second or
later beta now lists who is new since the previous beta, then the full list.
Update the managed runtime pin from v0.7.4 to v0.9.4 using the SHA-256
digests GitHub publishes for the release assets. v0.9.3 is the first
release with the fish_drama3 family.
The breeze_tts, dots_tts and sortformer_diar resource layouts are
unchanged since v0.7.4, and the server still accepts the request and
config fields VoiceStudio sends, so installed GGUFs load as they are.
An app-managed v0.7.4 runtime stays usable as a fallback until the user
installs the update, which Settings offers. A failed self-check now says
so and leaves the existing runtime in place. Add an opt-in smoke script
that loads an installed model in the stock release binary.
- glibc guard: fail when objdump cannot inspect an ELF (+ test)
- NSIS uninstall: report runtime/hf_cache directories that could not be removed
- docs: Snapcraft Builds revisions use --ozone-platform=wayland, not the env var
- app_start.mjs: launch env moves HOME/USERPROFILE/XDG dirs into the
throwaway profile so a packaged app's terminal-command setup cannot
touch ~/.local/bin or shell profiles (launch_env.mjs, tested)
- ErrorRecovery: Try Again reloads the renderer for dynamic-import
failures; resetting the boundary replayed React.lazy's cached rejection
- bench.py idle(): always take one RSS sample and guard the CPU division
for a zero or tiny --idle-window
- Launcher passes wrapGAppsHook3's arguments (GSettings schemas, GIO
modules, XDG_DATA_DIRS) like nixpkgs' electron wrapper; checked.
- node deps: relocate absolute symlinks relative to the link's directory
and fail on any that do not resolve; the runtime prune drops only the
links to the skipped electron package; new symlinksResolve check.
- nix.yml runs on every change that can reach the build, skipping only
docs, tests, mobile and changelog fragments (merge queue too).
Addresses review: app_start.mjs passed the caller's OMNIVOICE_*,
VOICESTUDIO_* and proxy variables to Electron, unlike bench.py's backend
isolation, so a developer's settings could redirect the data folder.
The two #3940 fragments are merged into one.
Addresses review: with a proxy set and no loopback exception, the
benchmark's readiness checks went through the proxy and waited out the
300 s timeout although the backend was up.
scripts/bench/bench.py measures backend spawn-to-ready, startup steps,
idle RSS/CPU and boot import times; bundle.mjs reports renderer chunk
sizes and checks them against bundle-baseline.json; app_start.mjs times
Electron launch to first paint and Home plus idle CPU. Runs are isolated
from user data and network: throwaway data dir and profile, offline HF,
a dead proxy for outbound HTTP, updater off, non-local requests aborted.
nixpkgs' cargo setup hook exports AWS_LC_SYS_USE_SYSTEM=1 for every
buildRustPackage, but the matching defaultCrateOverrides entry only feeds
the legacy buildRustCrate path. aws-lc-sys 0.45 (via reqwest/rustls) then
panicked because no system AWS-LC was in buildInputs. Set
dontCargoUseSystemLibs so it builds its vendored copy instead.
Stop shipping build-only and renderer-only dependencies:
- Vite/Rolldown emits `//#region` comments containing the absolute
node_modules store path. Those strings kept the entire node-deps FOD in
the runtime closure. Strip the path from the built bundles.
- Add scripts/prune-runtime-node-modules.mjs, which walks bun's isolated
layout from the modules the main process actually loads and copies only
that closure.
- Ship the pruned tree at resources/node_modules; the renderer is already
bundled, so app/node_modules is no longer needed.
- Add checks that every runtime specifier resolves and that the bundles no
longer reference the node-deps derivation.
Packaged node_modules drops from 1.2 GiB to 11 MiB and the closure from
3.4 GiB to 1.6 GiB.
uv's editable install writes the checkout path into
`_editable_impl_omnivoice.pth` as UTF-8, and Python 3.11 decodes `.pth`
files in the ANSI code page. A checkout in a non-ASCII folder on a
non-UTF-8 Windows code page (Thai cp874 here) therefore could not run
`bun run setup:api` or `bun run dev`: uv's interpreter query died in
`init_import_site`. Installed runtimes were already healed; no
source-checkout path called the healer.
The healer moves to `electron/scripts/pth-ascii.mjs` (re-exported by
`src/main/pth-ascii.ts`, with a synchronous twin) so plain-Node scripts
share it. `setup:api` heals `.venv` before every uv call (each sync
rewrites the file), the dev:api supervisor before every launch, and the
app's source-checkout branch before probing the venv. Failures are
tolerated everywhere.
Inspired by #3726 by @Taksin014.
Bash login shells read the first of .bash_profile, .bash_login and
.profile, and many .bash_profile files never source .bashrc. The shell
installer and the app now also configure an existing .bash_profile or
.bash_login, idempotently, without creating one that would hide .profile.
- The contract exporter now resolves Optional[Model] bodies (anyOf with
null) and records whether a body is required. `voicestudio dub
transcript clean` without fields sends no body, so the backend cleans
the saved transcript instead of rejecting `{}` with a 422.
- The wheel smoke imported a POLICY table the CLI no longer defines; it
now checks the OFFLINE/OBSERVE startup rules, and a unit test runs that
check against the source tree so it cannot rot again.
- CLI tests and contract reads use explicit UTF-8.
- Explain the CLI's intentionally empty except clauses (CodeQL).
Replace the contributor-fork CTranslate2 download with a
workflow_dispatch build (ct2-rocm-windows.yml) from pinned upstream
OpenNMT/CTranslate2 source (78b1e17 + upstream #2142, tree-checked
against the RX 6700 XT validated source), published as a prerelease of
this repository. The recipe points at that release with its pins unset;
an unpinned build is treated as unavailable, so RDNA 2 installs the
locked CPU CTranslate2 like gfx1010 until the hashes are pinned.
On a case-insensitive filesystem ~/.local/bin/voicestudio and the shell
installer's ~/.local/bin/VoiceStudio AppImage are one file, so linking the
command replaced the app with a link to itself. The installer and the
app's first-launch link now treat that file as the command, and refuse
rather than overwrite a pip/uv-installed command there. Installer tests
cover both case-sensitive and case-insensitive disks.
Linux rename (voicestudio-electron -> voicestudio): desktop file name and
StartupWMClass stay VoiceStudio (desktopName + syncDesktopName), the deb
package name and updater cache are unchanged, the old package's postrm
drops /usr/bin/voicestudio-electron and its AppArmor profile, and the new
one installs /usr/bin/voicestudio; no stale references remain.
Review findings on #3902:
- setup_started/setup_failed are sent while no backend is running; hold up
to 20 and send them once the backend answers (tested).
- Voice conversions report feature=convert, not clone.
- The uninstall ping falls back to the app runtime's Python when python3 is
not on PATH, so opted-in users are not silently skipped.
- mobile/contract/openapi.json carries the new /analytics/event route.
- Drop an unused regex; explain the empty except (CodeQL).