* ci(python): gate Ruff and ty on the rules the code already passes
Ruff and ty are pinned in the dev group (never installed for users: the
app syncs with --no-dev and Docker installs without groups). CI's first
Python shard and `bun run lint:py` run the same checks.
- Ruff checks runtime-bug rules: syntax, undefined names and exports,
f-strings without fields, invalid characters, dropped asyncio tasks.
- ty fails on any rule the code passes today; the 23 rules with a backlog
warn, so new instances of every other rule fail CI.
Fixes what the rules found:
- The setup warmup task was not referenced and could be garbage-collected
mid-load; it is now held until it finishes.
- A perf-budget test fake called time.sleep without importing time.
- The scam guard's invisible-character class is written as escapes.
- Type-only names (httpx, Callable) are imported under TYPE_CHECKING.
* changelog: add fragment for #4614
* build(python): let lint:py sync the pinned tools before running them
* ci(android): retry every Maven Central download on HTTP 429
* changelog: add fragment for #4495
* test(electron): retry temp-folder cleanup that races a late write
macOS CI failed backend-startup-budget's teardown with ENOTEMPTY when a
write landed while the folder was being removed. Every test that removes
its temp folder with rmSync now retries, as runtime-launch-refusal does.
* test(electron): let report-bug's node:fs typing accept cleanup retries
* ci: read Gradle's real retry key, catch 429s behind any cause, restart racy temp cleanup
- gradle.properties: Gradle 8.13 reads repository.max.tentatives, not
max.retries, so the limit stayed at three attempts.
- The dependency warm-up walks every getCauses() branch, so a 429 behind a
timeout in a multi-cause failure still triggers the shell retry.
- removeTempDir() restarts the whole recursive removal on ENOTEMPTY/EBUSY/
EPERM; rmSync's maxRetries re-runs only the final rmdir and keeps failing
when a file lands after the folder was listed. Used by every test that
had the retry options, with a regression test.
* ci: retry rate-limited Gradle downloads before every Android build
The warm-up moves into mobile/android/scripts/resolve-dependencies.sh and its
init script, now run before the emulator jobs and both release builds as well
as the unit-test job. Only a 429 is retried; any other failure is left to the
build step. Release recovery of an older tag takes the scripts from the
workflow's own commit, like the SDK installer. A test keeps every Gradle job
behind the warm-up and checks the retry behaviour with a fake gradlew.
* test(android): give the dictation protocol waits room on a busy CI runner
emptySummaryAndLegacyEofPreserveCommittedText timed out at 2 s on the shared
two-worker runner. Every wait in the file is for an event that should happen,
so one 10 s limit keeps real hangs fast to fail without flaking.
* ci(android): read Maven Central through Google's mirror first
Maven Central kept answering the shared runner IPs with HTTP 429 through
every retry (four rounds over ~5 minutes). resolve-dependencies.sh now
installs an init.d script that lists Google's Maven Central mirror ahead of
the build's repositories for every later Gradle run in the job (build, tests,
emulator). Maven Central stays listed after it, so anything the mirror lacks
still resolves. The release workflow checks the script out with the retry.
* ci: keep each outside contributor to two open pull requests
A pr-limit workflow (pull_request_target: opened, reopened) closes a pull
request beyond its author's oldest two open ones, with a comment that
explains the limit. The owner, members, collaborators and bots are exempt.
It checks out only the base commit and passes event data through env, as
tests/test_cla_workflow.py requires of privileged workflows.
CONTRIBUTING.md documents the limit (it replaces the old advisory five).
* docs(changelog): open pull request limit (#4466)
* ci: drop the gitleaks entry for a commit squashed out of main
* ci: reconcile every open pull request against the limit; drop issues:write
A reopened older pull request, or one whose queued run was superseded,
could stay open above the limit. Each run now keeps the author's oldest two
other open pull requests and closes the rest, the triggering one first.
* ci: close the triggering pull request first
* ci: scope install smoke to setup-relevant paths and cancel superseded PR runs
Adds runtime setup code (sidecar install, media tools, wheel prefetch,
mirror choice, install worker) to the trigger list, keeps the docs/test-only
detected skip, and adds per-PR concurrency. Guard tests extended.
* fix(clone): let clicks on a voice card's photo choose the voice
The photo label covered the whole card when the card was narrow, so Playwright
reported the label subtree intercepting the choose button. Only a small camera
badge now takes pointer events; the avatar passes clicks through.
* docs: changelog fragments for #4325
* fix(clone): keep photo drops working on the card; correct install-smoke docs
* fix(clone): save a badge drop once; require every listed setup path in the guard test
* ci(ios): stop the UI smoke spending its time limit waiting on tappable buttons
tapReady() (#4249) always ran an XCTNSPredicateExpectation for isHittable, which
costs a fresh accessibility query plus a polling interval (about 3-5 s per tap on
the CI simulator, e.g. consent.no t=28.7s -> 31.5s) even when the element is
already hittable. With ~500 taps that moved the step from 37 to 46-50 min.
Tap immediately when the element exists and is hittable; keep the existing
exists + hittable waits as the fallback so the flakiness protection is intact.
Raise the step cap 50 -> 60 min (job limit is 120) for runner variance.
* docs(changelog): note the iOS UI smoke speed-up
test_each_pin_names_the_version_it_holds matches the version comment with a
regex and never resolves it, so a pin swapped for a well-formed SHA of a
different commit passes every check in the file. The label is documentation,
not a check.
Add scripts/verify_action_pins.py, which resolves each distinct action/label
pair (30 of them, 258 references) through the GitHub API and compares the tag's
commit with the pinned SHA. Subpath references resolve against their repository
(actions/cache/restore -> actions/cache), annotated tags are dereferenced, and
a channel label such as dtolnay/rust-toolchain's `stable` is reported rather
than compared, because the pin deliberately freezes a moving branch.
PR CI stays hermetic: the pytest entry point skips unless
VOICESTUDIO_VERIFY_ACTION_PINS=1, and .github/workflows/action-pin-verify.yml
runs the script weekly with a token plus workflow_dispatch, so the check is
executed rather than merely available.
Verified with a token: 250 references verified, 0 mismatched, 0 unresolved.
Swapping one checkout SHA in ci.yml reports `v7.0.1 is 3d3c42e5...ba90b1` and
exits 1.
* fix(setup): ship wheels for source-only deps so first-run setup never compiles (#4253)
* docs(changelog): add fragment for #4268
* fix(setup): make vendored wheels verifiable and shipped by every consumer (#4253)
* chore(vendor): ship the ANTLR BSD notice with the vendored runtime wheel
BSD-3 requires the copyright notice to accompany binary redistribution; the antlr4-python3-runtime sdist ships none, so keep the project notice beside the wheel and package it.
* test(install): accept vendored wheel paths in the frozen export
uv export emits the vendored wheels (#4253) as ./vendor/wheels/*.whl paths, which packaging.Requirement rejects.
* test(lock): check per-target wheel tags and extras; ship the ANTLR notice in Nix
The wheel-only guard now follows extra-activated dependencies and requires a wheel whose tags match each tested platform and Python, not just any wheel. sphn 0.2.1 has no Linux ARM64 wheel upstream and is allowlisted for that source-only target. The Nix output now installs the ANTLR licence beside the vendored wheel.
* ci(dagger): copy the vendored wheels before the dependency sync
[tool.uv.sources] points docopt, antlr4-python3-runtime and dora-search at vendor/wheels (#4253); the manifest-only layer copied pyproject.toml and uv.lock without them, so dagger python-tests and check could not install.
* ci(install): run the install smoke when the vendored wheels change
The installer ships vendor/wheels (#4253), so tests/test_install_smoke_workflow.py requires it among the install-smoke triggers.
The by-name download right after upload intermittently fails with 'Artifact not found' while the artifact list catches up. This hit #4266 and #4268 three times. Retry once after 20 seconds; the byte verification still runs on the downloaded files.
The workflows are copied from each other, so a bump reached only the copy in
front of the author: actions/checkout ran at v7.0.1 in 61 call sites and at
v4.4.0 or v5.0.0 in four (aur-package, mobile-release, cla-backfill,
windows-rocm-recipe), actions/setup-python at v7.1.0 everywhere except the
recipe job (v5.6.0), and astral-sh/setup-uv at v6.8.0 in ten places and v3.2.4
in seven.
Move those call sites to the majority SHAs (the ones CI already exercises) and
add tests/test_workflow_action_pins.py: one SHA per action, a full-length SHA at
every call site, a version comment beside it, and a YAML parse of every
workflow.
3 passed; re-pinning one file to the old SHA makes the guard name both SHAs and
the files behind each.
install-smoke.yml installs a release and then the pull request's own source as
main, so it runs the real build: bun install --frozen-lockfile, electron-builder
with its config, the runtime setup helpers, the bundled CLI uv builds, and the
backend entrypoint. Its path filters named only the two installer scripts and
their tests, so a change to any of those inputs skipped the only automated check
of the install path.
Extend both filters to those inputs, keep them identical, and add
tests/test_install_smoke_workflow.py so a narrowed filter fails CI.
3 passed; reverting the workflow makes the guard name the eleven inputs it would
have skipped.
scripts/cli_install_smoke.py installs the bundled command with real uv in
temporary tool and config directories, replaces an existing desktop wrapper and
checks the wrapper's environment survives. Nothing referenced it, so the only
check of the launcher-migration path the installer ships could rot unnoticed.
Run it on the macOS and Linux legs of the install smoke, which already has uv,
and make the Windows branch a skip with a reason instead of a SystemExit. Add
tests/test_cli_install_smoke.py so the wiring cannot disappear again.
2 passed; removing the workflow step fails the guard with "no install-smoke step
runs scripts/cli_install_smoke.py". The end-to-end run happens on the POSIX CI
legs, since this host cannot run a #!/bin/sh wrapper.
Prepare the owner-requested beta.5 release with synchronized versions, cumulative release notes, verified reporter credits and secrets-only diagnostics build credentials. Preserve the approved endpoint, consent defaults and tagged beta.4 history. Full current-head CI, source reviews and all five artifact-only installer builds passed.