Repository navigation
RU: Локализация UI, мерж апстрима с TS 6.0.3 и релизные workflow форка - #1
Merged
Merged
Conversation
Update webpack to 5.111.0 and refresh its dependency resolution.
Use Node16 module resolution, explicit Node ambient types, and stable source roots without changing strict compiler checks. Refresh all three native-module lockfiles. Co-authored-by: Copilot <[email protected]>
Derive Copilot RPC types through the public SDK API instead of private export paths. Normalize shared DDS buffers and cover both buffer variants in tests. Tighten empty props, wrapper, and callback types and remove unused catch bindings without changing error handling. Co-authored-by: Copilot <[email protected]>
Dexie 3 uses a declaration syntax rejected by TypeScript 6. Use the maintained release instead of skipping library checks. Verified database schema migration tests and the complete application test suite. Co-authored-by: Copilot <[email protected]>
Migrate bundled and Node projects to supported module resolution with explicit source roots, preserving all existing strict compiler checks. Update ts-node, TypeScript ESLint, React lint support, and Lodash declarations. Preserve prior enabled lint rules, migrate custom rule AST handling, and restore custom-rule test discovery with regression coverage. Keep renamed suites covered by ESLint and Prettier. Document the compiler upgrade verification workflow. Co-authored-by: Copilot <[email protected]>
Restore lib as the notifications source root so fresh builds emit the published dist entry points. Add compiler-output contract tests for all native TypeScript packages so stale artifacts cannot mask layout regressions, and document this validation requirement. Co-authored-by: Copilot <[email protected]>
Filter other platforms' optional Koffi packages from the renderer bundle and resolve the target eagerly so a missing native package fails the build. This prevents cross-compilation installs from emitting multiple different binaries as koffi.node. Add multi-platform Webpack regression builds that verify the emitted binary contents, a missing-target check, and packaging documentation. Validate macOS x64 and arm64 production compilation with both native packages installed. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Upgrade Webpack to 5.111.0 and TypeScript to 6.0.3
…6.0.3)
## Что изменено?
Принят `upstream/development` = `a12d65717f` в `upstream-sync-1008` (страховочный тег
`pre-upstream-sync-20261008` = `5e33127f00`). Итог мержа: 75 файлов, +1913/−847.
Пришли 9 не-мержевых коммитов апстрима: `92685500a9` (webpack 5.111.0),
`1e288ac10f`/`913cbcb40a`/`ed42bf6280` (компилятор и линт на TypeScript 6.0.3,
подготовка кода приложения), `3541f7246c` (Dexie 4.4.6), `5cdec7bae9` (пути вывода
desktop-notifications под TS 6), `fa13cc4683` (в бандл кладётся только целевой
Koffi-пакет), `718c483735` (yarn.lock), `5282a674b6` (copilot-store).
Новые апстримные файлы: `script/webpack-koffi.ts` + `script/webpack-koffi-test.ts`,
`script/native-module-build-test.ts`, `app/src/lib/copilot/types.ts`.
Два конфликта, разрешены так:
- `app/src/ui/preferences/copilot-settings-dialog.tsx` (+1/−1 в нашем блоке импортов) —
оставлены обе правки: наш `import { t } from '../../lib/l10n'` (строка 2) и апстримная
замена `Model` с `@github/copilot-sdk/dist/generated/rpc` на
`'../../lib/copilot/types'` (строка 3). Наши `title={t(...)}` и
`okButtonText={t('common.done')}` апстрим не касался — не тронуты.
- `yarn.lock` — взята апстримная версия как база, затем `yarn install` в `gdlab`:
лок-файл остался побайтовно апстримным (hash-object `a6c7071e6f8f795f5d631898fa48991ffe058a3b`),
то есть апстримный lock полностью покрывает объединённые манифесты, включая наши
`file:vendor/printenvz`, `file:../vendor/desktop-notifications`,
`desktop-trampoline`, `windows-argv-parser` и скрипты `l10n:*`.
Эти файлы слились автоматически и проверены диффом: `crash-app.tsx`,
`globals.d.ts`, `app-store.ts`, `main-process/main.ts`, `ui/index.tsx`, `avatar.tsx`,
`copilot-model-picker.tsx`, `copilot-user-settings.tsx`, `preferences/copilot.tsx`,
`package.json`, `script/run.ts`.
## Зачем?
`development` отставал от апстрима на 15 коммитов, и GitHub предлагал только
«Discard 81 commits» (стёр бы всю историю форка) или «Open pull request» в
`desktop/desktop` (предложение изменений апстриму, а не синхронизация). Единственный
корректный путь — мерж локально, чтобы 81 коммит форка (локализация A–K, uk-каталог,
чекер `i18n-freshness`, редактор переводов, фид Squirrel, `fork-release`) сохранились,
а приход апстрима остался отделяемым в истории.
## Итог (мерка/приёмка)
- `git merge-tree` до мержа и фактический вывод мержа совпали: ровно два конфликта.
- Маркеров конфликта нет: `git ls-files -u` = 0, `grep -c` по резолвленному файлу = 0.
- `git diff --check` — пусто.
- **Сборка в стенде:** `yarn install` (rc=0, typescript 6.0.3 установлен) →
`yarn compile:dev` в `gdlab` = rc=0, `webpack 5.111.0 compiled successfully in
87881 ms`, ноль строк ERROR (лог `/tmp/compile-merge.log`).
- `@koromix/koffi-linux-x64` присутствует в `app/node_modules` (резолв
`script/webpack-koffi.ts` на платформе стенда проходит).
- Не снято в этом коммите: `tsc --noEmit` (оба programa), eslint под
`@typescript-eslint` 8.70, `node script/test.mjs`, `--parity`/`--audit`,
живая GUI-приёмка. Это предмет следующего коммита адаптации; базлайн
`TS2428 WeakMap` надо переснять, потому что `@types/lodash` поднят до 4.17.25.
- `app/package.json` version осталась `3.6.7-beta2` на обеих сторонах — следующий
прогон `release-fork.yml` потребует повышения версии или `first_run=true`.
- Ветка локальная: `development` и `origin/development` не тронуты
(`git rev-list --left-right --count origin/development...development` = `0 0`).
---
RU: Fork update: merge upstream a12d657 (15 commits, TypeScript 6.0.3)
## What changed?
Merged `upstream/development` (`a12d65717f`) into `upstream-sync-1008`; insurance tag
`pre-upstream-sync-20261008` points at `5e33127f00`. Result: 75 files, +1913/−847.
Nine non-merge upstream commits arrived: webpack 5.111.0, the compiler/lint move to
TypeScript 6.0.3, Dexie 4.4.6, desktop-notifications output paths under TS 6, bundling
only the target Koffi native package, the regenerated lock, and a copilot-store tweak.
New upstream files: `script/webpack-koffi.ts` (+ its test),
`script/native-module-build-test.ts`, `app/src/lib/copilot/types.ts`.
Two conflicts, resolved as follows: in `copilot-settings-dialog.tsx` both edits are kept
— our `import { t } from '../../lib/l10n'` and upstream's `Model` type now coming from
`'../../lib/copilot/types'`; our localized `title`/`okButtonText` were untouched by
upstream. `yarn.lock` took upstream's version as the base and `yarn install` in `gdlab`
left it byte-identical to upstream (`a6c7071e6f`), so upstream's lock already covers the
merged manifests, including the fork's four `file:vendor/*` dependencies and `l10n:*`
scripts.
## Why?
`development` was 15 commits behind, and the GitHub UI offered only "Discard 81 commits"
(deleting the fork's entire history) or "Open pull request" into `desktop/desktop`
(proposing changes upstream rather than syncing). A local merge is the only path that
keeps the fork's 81 commits while keeping the upstream import separable in history.
## Result (measurements)
`git merge-tree` before the merge matched the actual conflict set (exactly two). No
conflict markers (`git ls-files -u` = 0), `git diff --check` empty. Stand verification:
`yarn install` rc=0 (typescript 6.0.3 installed), then `yarn compile:dev` in `gdlab` =
rc=0, "webpack 5.111.0 compiled successfully in 87881 ms", zero ERROR lines.
`@koromix/koffi-linux-x64` resolves in `app/node_modules`. Not yet run in this commit:
`tsc --noEmit` for both programs, eslint under `@typescript-eslint` 8.70, the full test
suite, `--parity`/`--audit` and live GUI acceptance — those belong to the follow-up
adaptation commit, and the `TS2428 WeakMap` baseline must be re-measured since
`@types/lodash` moved to 4.17.25. `app/package.json` stays `3.6.7-beta2` on both sides,
so the next `release-fork.yml` run needs a version bump or `first_run=true`. The branch
is local: `development` and `origin/development` untouched.
Release 3.6.7-beta3
## Что изменено?
Три файла, +23/−22.
1. **Десять неиспользуемых привязок `catch`** — найдены `yarn lint:src` под
`@typescript-eslint` 8.70 (пришёл мержем `051a817f29`); правило то же, которое апстрим
применил к своим файлам в `ed42bf6280`:
- `app/src/lib/fork-release.ts` — строки 145, 201 (`} catch (e) {` → `} catch {`);
- `app/src/main-process/l10n.ts` — строки 93, 115, 125, 140, 159, 169, 181, 252.
Три сайта, где `e` читается (`l10n.ts:84` — `error: \`${e}\``, а также 214 и 235),
не тронуты: `grep -c "} catch (e) {"` дал 3 и 1 против 11 и 3 до правки.
2. **`docs/fork-oauth-client.md` (+13/−12) — пересъёмка номерных ссылок.** Две причины:
- мерж переписал `app/webpack.common.ts` (+53/−39, обёртка `getKoffiWebpackConfig`):
`replacements = getReplacements()` с `:10` на `:12`, sink `target: 'webworker'` с
`:176` на `:190`, пять блоков `DefinePlugin` — `:59-63, :96-100, :117-121,
:129-133, :175-179` → `:61-65, :109-113, :131-135, :143-147, :189-193`;
- **собственный defect вчерашнего коммита `5e33127f00`**: он добавил в
`app/app-info.ts` комментарий на 18 строк и не переснял ссылки того же документа —
`devClientId`/`devClientSecret` `:10-11` → `:28-29`, подстановка env `:24-27` →
`:42-44`, `__DEV_SECRETS__` `:34` → `:52`. Заодно уточнены `api.ts:2258-2265` →
`:2263-2265` (`deleteToken` начинается с 2253) и `ci.yml:34-38` → `:37-38` плюс
`:116-118` / `:196-198`, где секреты реально передаются.
## Зачем?
Мерж принёс новый компилятор и новый линт, и под `@typescript-eslint` 8 наш код давал
10 падений — дальше любая правка теряла сигнал «линт чистый». Ссылки в документе —
единственное доказательство разбора алерта `js/build-artifact-leak`: с уехавшими
номерами документ перестаёт проверяемым, поэтому переснят сразу, а не отложен.
## Итог (мерка, 08.10, `docker exec gdlab` из `/work`)
- `yarn lint:src` — было rc=1 с 10 ошибками, стало **rc=0** (0 `error`).
- `npx tsc -p tsconfig.json --noEmit` и `-p script/tsconfig.json` — **rc=0, 0 строк
вывода**. Базлайн из четырёх `TS2428 WeakMap` исчез: он объявлялся в
`@types/[email protected]`, а мерж поднял пакет до 4.17.25. Новый базлайн — ноль.
- `node script/test.mjs` — 2269 тестов, **2267 pass / 0 fail / 2 skip** (до мержа
2264 pass / 1 skip; прирост — апстримные `webpack-koffi-test.ts` и
`native-module-build-test.ts`).
- `node script/i18n-freshness.mjs --parity` — en/ru/uk по 1686 leaf-ключей,
**parity issues: 0**; `--audit` — 13 непокрытых литерала, как базлайн.
- prettier по трём правленым файлам — «All matched files use Prettier code style».
- markdownlint по `docs/fork-oauth-client.md` и `docs/fork-releases.md` с
`--config .markdownlint.js --rules .markdownlint-rules.js` — rc=0, 0 находок.
(Полный `yarn markdownlint` падает и до мержа: он обходит `app/static`, `bin`,
`dist`, `out` и апстримные `docs/contributing` — 3791+127 находок, к нашим правкам
отношения не имеет.)
- **Сборка:** `yarn compile:dev` → rc=0, `webpack 5.111.0 compiled successfully in
89028 ms`, 0 «ERROR in»/«Module not found»; до правок та же команда дала
87881 ms rc=0.
- Концы строк не переписаны: `fork-release.ts` 358/358 CRLF, `l10n.ts` 282/282 CRLF,
документ 149/149 CRLF — и в рабочем дереве, и в `HEAD` (numstat 23 строки, а не 789).
- **Последствие, которое надо знать:** `compile:dev` перезаписал `out/` dev-бандлом,
поэтому `i18n-freshness --bundles` теперь обязан показать рассинхрон с раскатанными
prod-копиями в `bin/` и `dist/`. Стенд (`dist/desktop-linux-x64/resources/app`) не
тронут, но живая GUI-приёмка мержа и `--bundles` не сняты: `compile:prod` в этом
режиме блокируется, а `build:prod` в `gdlab` стирает `dist/`.
- Ветка локальная: `development` и `origin/development` не тронуты.
---
RU: Adapt the fork to TypeScript 6.0.3 and re-take citations after the merge
## What changed?
Three files, +23/−22. Ten unused `catch` bindings were removed at
`fork-release.ts:145,201` and `main-process/l10n.ts:93,115,125,140,159,169,181,252` —
found by `yarn lint:src` under `@typescript-eslint` 8.70, the same rule upstream applied
to its own files in `ed42bf6280`. The three sites that read `e` were left alone. The rest is
re-taking numbered citations in `docs/fork-oauth-client.md`: the merge rewrote
`app/webpack.common.ts` (moved `replacements` to `:12`, the `webworker` sink to `:190`
and the five `DefinePlugin` blocks), and yesterday's `5e33127f00` added an 18-line
comment to `app/app-info.ts` without re-measuring the very document it cited, so
`devClientId`/`devClientSecret`, the env fallback and `__DEV_SECRETS__` line numbers were
all stale, along with `api.ts:2258-2265` and `ci.yml:34-38`.
## Why?
The merge brought a new compiler and linter; leaving ten lint failures in place destroys
the "lint is clean" signal for every later change. Numbered references are the only
evidence behind the `js/build-artifact-leak` analysis, so they had to be re-measured now
rather than deferred.
## Result (measurements, gdlab)
`yarn lint:src` rc=0 (was rc=1, 10 errors); `tsc --noEmit` for both programs rc=0 with
zero output — the four `TS2428 WeakMap` baseline errors disappeared because they came
from `@types/[email protected]`, which the merge bumped to 4.17.25; the full suite is
2269 tests, 2267 pass / 0 fail / 2 skipped; `--parity` 1686 leaf keys per catalog with 0
issues and `--audit` still 13 uncovered literals; prettier and markdownlint (with the
repo config) clean; `yarn compile:dev` rc=0, "webpack 5.111.0 compiled successfully in
89028 ms". Line endings were not rewritten (358/358, 282/282, 149/149 CRLF in both the
worktree and HEAD). Note the consequence: `compile:dev` overwrote `out/` with a
development bundle, so `--bundles` will now report a mismatch against the rolled-out
prod copies, and live GUI acceptance of the merge was not performed because
`compile:prod` is blocked in this mode and `build:prod` would wipe `dist/`. The branch
stays local.
Что изменено:
- .github/workflows/release-fork.yml (+33/-1): шагам
`yarn install --frozen-lockfile` и `Build production app` в обеих джобах
(windows, linux) задан
`NODE_OPTIONS=--disable-warning=DEP0169 --disable-warning=DEP0040`; источник
предупреждений и обоснование написания флага — комментарий к win-шагу
установки.
- gdlab/release.sh (+6/-0): тот же флаг перед `yarn build:prod` при локальной
linux-сборке.
Зачем. В логе сборки между «[1/4] Resolving packages…» и «[3/5] Fetching
packages…» печатаются DEP0169 («url.parse() behavior is not standardized») и
DEP0040 («The punycode module is deprecated»). Наш код их не вызывает: grep по
script/, app/src и gdlab/ не находит ни одного url.parse и ни одного
require('punycode'). Прогон `node --trace-deprecation yarn install` в контейнере
стенда (node 24.19) указал конкретный адрес:
vendor/yarn-1.21.1.js:38638, GitResolver.isVersion — то есть вендоренный yarn,
который .yarnrc назначает через `yarn-path`. Сменить вендоренную версию было бы
бесполезно: url.parse в количестве 15 вызовов есть и в yarn 1.22.22. А вот
DEP0040 даёт только вендоренный 1.21.1 — у него punycode вынесен webpack'ом
наружу как нативный модуль (`module.exports = require("punycode")`), тогда как
1.22.22 несёт пользовательский пакет. Выключать шум целиком (--no-warnings)
не стали бы: вместе с ним пропали бы ExperimentalWarning и deprecation от
mock.module, которые мы как раз хотим видеть.
Написание флага — не формальность. Список кодов через запятую node принимает,
но игнорирует. Замер probe-скрипта (require('punycode') + url.parse) на той же
ноде: без флага — DEP0040 и DEP0169; с `--disable-warning=DEP0169,DEP0040` —
оба предупреждения на месте; с повтором флага — ни одного. Полный
`yarn install --frozen-lockfile` с повтором: rc=0, ноль DEP-строк в логе,
`git status` пуст (lockfile не переписан).
Итог: лог установки и production-сборки без двух ложных сигналов, которые
каждый раз приходилось объяснять вручную; все остальные предупреждения
по-прежнему видны.
---
EN: Fork builds: silence the vendored yarn's deprecation warnings
What changed:
- .github/workflows/release-fork.yml (+33/-1): the `yarn install
--frozen-lockfile` and `Build production app` steps of both jobs (windows,
linux) now set
`NODE_OPTIONS=--disable-warning=DEP0169 --disable-warning=DEP0040`; the
comment on the windows install step records where the warnings come from and
why the flag is written this way.
- gdlab/release.sh (+6/-0): the same flag in front of `yarn build:prod` for the
local Linux build.
Why. The install log prints DEP0169 ("url.parse() behavior is not
standardized") and DEP0040 ("The punycode module is deprecated") between the
Resolving and Fetching phases. None of it is our code: grepping script/,
app/src and gdlab/ finds no url.parse and no require('punycode') at all.
Running the install under `--trace-deprecation` in the lab container
(node 24.19) named the exact address — vendor/yarn-1.21.1.js:38638,
GitResolver.isVersion — i.e. the yarn that .yarnrc pins via `yarn-path`.
Bumping that vendored copy would not help either: yarn 1.22.22 has the same 15
url.parse call sites. DEP0040 comes only from the vendored 1.21.1, whose webpack
bundle externalizes punycode to the deprecated core module, while 1.22.22 ships
a userland copy. We did not silence warnings wholesale (--no-warnings) because
that would also hide ExperimentalWarning and the mock.module deprecation, which
we do want to see.
The flag's syntax is load-bearing: a comma-separated list is accepted by node
and then ignored. Measured with a probe script (require('punycode') +
url.parse) on the same node: no flag — both warnings;
`--disable-warning=DEP0169,DEP0040` — both still printed; the flag repeated —
none. A full `yarn install --frozen-lockfile` with the repeated flag: rc=0,
zero DEP lines, `git status` clean (lockfile untouched).
Result: the install and production build logs no longer carry two false signals
that had to be explained by hand every run, while every other warning stays
visible.
… фид Что изменено: - script/dist-info.ts (+22/-6): `getUpdatesURL()` сначала собирает адрес (переопределение `DESKTOP_UPDATES_URL` или дефолтный тег этого репозитория), а затем бросает исключение, если канал публикабельный (`isPublishable()`: production/beta/test) и фид оказался `central.github.com`. Прежняя ветка «return env или дефолт» сохранена по смыслу, просто вынесена в локальную переменную. - script/dist-info-test.ts (+80/-0, новый): четыре теста описанного правила — дефолт это релизный тег форка, публикабельные каналы и central несовместимы, development-сборке central разрешён, явный форк-фид принимается на любом канал; env восстанавливается в afterEach. Зачем. Установленное приложение берёт пакет ровно тот, который назван в `RELEASES` своего фида: Squirrel.Windows ничего не выбирает по содержимому, а в апстримном `RELEASES` назван `GitHubDesktop-*.nupkg` — другое имя, другой каталог в `%LOCALAPPDATA%`, другой AppUserModelId. Значит локализация, чей фид указывает на central, на первой же проверке обновлений перестала бы быть локализацией: пользователь установил русское приложение, а обновилось стоковое. Отдельного переключателя «не обновляться из апстрима» в коде нет и не нужно — адрес вшивается в бандл на сборке (`app-info.ts:55` → `__UPDATES_URL__`), и дефолт `getUpdatesURL()` уже наш тег. До этого момента до central можно было дойти только вручную экспортировав `DESKTOP_UPDATES_URL`, и сборка молча бы прошла: в best case useless, в worst — релиз, который сам себя выключает. Теперь такая сборка падает с внятным текстом, то есть ошибка остаётся в логе сборки, а не уезжает на машину пользователя. Проверено в контейнере стенда (gdlab, node 24.19): - `node script/test.mjs script/dist-info-test.ts` — 4 pass / 0 fail; - `node script/test.mjs script` — 33 pass / 0 fail (весь script-слой); - `yarn compile:dev` — rc=0, webpack 5.111.0 compiled successfully: исключение не срабатывает на dev-канале, где `getUpdatesURL()` тоже вызывается при компиляции; - `yarn lint:src` — rc=0, `prettier --check` — чисто; - живой замер фида: `RELEASES` тега `latest-win-x64` содержит единственную строку `GitHubDesktopL10n-3.6.7-beta3-full.nupkg`, а в готовом бандле `bin/resources/app/renderer.js` литералов `central.github.com/deployments/…/ latest` нет вообще — есть только наш адрес. Итог: подмена локализованной сборки стоковой стала невозможной не только по факту (свой идентификатор и свой дефолтный фид), но и как результат ручной ошибки при упаковке. --- EN: Fork updates: a build refuses to subscribe to upstream's feed What changed: - script/dist-info.ts (+22/-6): `getUpdatesURL()` now resolves the address first (the `DESKTOP_UPDATES_URL` override or this repository's own release tag) and then throws when the channel is publishable (`isPublishable()`: production/beta/test) and the feed turned out to be `central.github.com`. The previous "env or default" branch is unchanged in meaning, just hoisted into a local. - script/dist-info-test.ts (+80/-0, new): four tests for that rule — the default is a release tag of this fork, publishable channels and Central are incompatible, a development build may still point at Central, an explicit fork feed is accepted on any channel; the environment is restored in afterEach. Why. An installed app installs exactly the package its feed's `RELEASES` names: Squirrel.Windows makes no choice based on content, and upstream's `RELEASES` names `GitHubDesktop-*.nupkg` — a different package name, a different `%LOCALAPPDATA%` folder, a different AppUserModelId. So a localized build whose feed pointed at central would stop being a localized build on its very first update check: the user installed the Russian app, the stock one came back. No separate "don't update from upstream" switch was added, because none is needed: the address is baked into the bundle at build time (`app-info.ts:55` → `__UPDATES_URL__`) and the default of `getUpdatesURL()` is already our own tag. Until now reaching central took a hand-exported `DESKTOP_UPDATES_URL`, and the build would have completed quietly — useless at best, a release that switches itself off at worst. It now fails with an explicit message, so the mistake stays in a build log instead of traveling to a user's machine. Measured in the lab container (gdlab, node 24.19): - `node script/test.mjs script/dist-info-test.ts` — 4 pass / 0 fail; - `node script/test.mjs script` — 33 pass / 0 fail (the whole script layer); - `yarn compile:dev` — rc=0, webpack 5.111.0 compiled successfully: the throw does not fire on the development channel, where `getUpdatesURL()` is likewise called during compilation; - `yarn lint:src` — rc=0, `prettier --check` — clean; - live feed measurement: the `RELEASES` of tag `latest-win-x64` holds a single line, `GitHubDesktopL10n-3.6.7-beta3-full.nupkg`, and the finished bundle (`bin/resources/app/renderer.js`) contains no `central.github.com/deployments/…/latest` literal at all — only our own address. Result: replacing the localized build with the stock one is now impossible not just in fact (own identifier, own default feed) but also as the outcome of a hand mistake during packaging.
…кущему состоянию Что изменено: - README.md (+62/-9): секция «Этот форк» переписана в карту отличий — таблицы «Что здесь своё» (строки и чекеры `l10n:*`, Настройки → Язык и редактор переводов, идентификатор `GitHubDesktopL10n`, релизные теги, фид обновлений с новым отказом от апстримного, проверка свежести по хешу, отзыв о переводе), «Где взять» (реальные теги и что в них лежит, отдельным пунктом — что ставят `.exe`, а не `.msi`), «Как собрать» (команды lab.sh и workflow), «Чего в форке сознательно нет» (подпись, Linux-пакеты, macOS). - docs/fork-releases.md (+25/-8): «Где взять собранное» переведено из «тегов ещё нет» в фактическое состояние (08.10.2026 опубликованы `latest-win-x64` и `latest-linux-x64`, собраны из `6075cf5da8`, версия `3.6.7-beta3`; arm64 и mac — нет), добавлен абзац «Обратная сторона: сборка не может подписаться на апстрим» про исключение в `getUpdatesURL()` и тест `script/dist-info-test.ts`, пример версии в разделе про хеш сборки переснят на `3.6.7-beta3`. Зачем. README утверждал, что workflow «на runner'е ещё не выполнялся» и что релизных тегов в репозитории нет, — оба утверждения перестали быть правдой 08.10.2026: `list_releases` отдаёт `latest-win-x64` и `latest-linux-x64`, оба названы автором `github-actions[bot]`, в notes блок `fork-build-info` со `sha 6075cf5…` и `version 3.6.7-beta3`, а в ассетах win-тега лежат `GitHubDesktopL10nSetup-x64.exe`, `.msi`, `GitHubDesktopL10n-win32-x64-portable.zip`, `RELEASES`, `build-info.json` и оба full-пакета. Кроме того, в README не было ни слова о том, как включить язык, где редактор переводов и чем форк защищён от замены стоковой сборкой, хотя это ровно те вопросы, из-за которых форк спрашивают. Ссылки на код пересняты после правки `script/dist-info.ts` (коммит `a8ae1b1be5` сдвинул `isCentralUpdatesFeed` со 185 на 236 — док ссылался бы на неверную строку). Проверено: - живой фид: `RELEASES` тега `latest-win-x64` — одна строка `GitHubDesktopL10n-3.6.7-beta3-full.nupkg 249686397`, то есть апстримный пакет в нём физически отсутствует; - ассеты win-тега перечислены через API (`build-info.json` 180 байт, portable 258 574 998, Setup.exe 250 089 984, .msi 249 991 168); - в готовом бандле `bin/resources/app/renderer.js` литералов `central.github.com/deployments/…/latest` нет, есть адрес форка; - `markdownlint` по обоим файлам с нашим конфигом — единственная ошибка MD059 на апстримной строке «available [here]», она воспроизводится и на версии README до правок (`git show HEAD~2:README.md`), то есть не принесена этим коммитом; - `yarn l10n:parity` — 1686 leaf-ключей на каждый из en/ru/uk, 0 рассинхронов (формулировка «покрыты целиком» в README опирается на эту мерку); - scan_leaks по обоим файлам — CLEAN, концы строк целы (175/175 и 345/345 CR). Итог: README отвечает на «где взять, как включить перевод, как собрать, откуда приходят обновления» без чтения кода, а docs/fork-releases.md больше не противоречит состоянию релизов. --- EN: Fork documentation: README and docs/fork-releases.md brought up to date What changed: - README.md (+62/-9): the "Этот форк" section is rewritten as a map of the deviations — a "what is ours here" table (strings and the `l10n:*` checkers, Preferences → Language and the translation editor, the `GitHubDesktopL10n` identifier, release tags, the update feed with the new refusal of an upstream feed, the build-hash freshness check, the translation feedback issue), "where to get it" (the real tags and their assets, with its own note that the `.exe` is what installs, not the `.msi`), "how to build" (lab.sh and workflow commands) and "what this fork deliberately lacks" (code signing, Linux packages, macOS). - docs/fork-releases.md (+25/-8): "where to get it" moved from "the tags do not exist yet" to the actual state (as of 2026-10-08 `latest-win-x64` and `latest-linux-x64` are published, built from `6075cf5da8`, version `3.6.7-beta3`; no arm64, no mac), plus a new paragraph "the other side: a build cannot subscribe to upstream" describing the `getUpdatesURL()` throw and the `script/dist-info-test.ts` test, and the version in the build-hash example re-taken as `3.6.7-beta3`. Why. The README claimed the workflow "has never run on the runner" and that the release tags were absent — both stopped being true on 2026-10-08: `list_releases` returns `latest-win-x64` and `latest-linux-x64`, both authored by `github-actions[bot]`, their notes carry the `fork-build-info` block with `sha 6075cf5…` and `version 3.6.7-beta3`, and the windows tag's assets are `GitHubDesktopL10nSetup-x64.exe`, `.msi`, `GitHubDesktopL10n-win32-x64-portable.zip`, `RELEASES`, `build-info.json` and both full packages. The README also said nothing about how to switch the language, where the translation editor is, or what stops the localized build from being replaced by the stock one — which is exactly what people ask about a fork. Code references were re-taken after `script/dist-info.ts` changed (commit `a8ae1b1be5` moved `isCentralUpdatesFeed` from line 185 to 236, so the doc would have pointed at the wrong line). Verified: - live feed: the `RELEASES` of `latest-win-x64` is a single line, `GitHubDesktopL10n-3.6.7-beta3-full.nupkg 249686397` — the upstream package is not in that feed at all; - the tag's assets enumerated through the API (`build-info.json` 180 bytes, portable 258,574,998, Setup.exe 250,089,984, .msi 249,991,168); - the finished bundle (`bin/resources/app/renderer.js`) contains no `central.github.com/deployments/…/latest` literal, only the fork's address; - `markdownlint` on both files with our config: one MD059 on the upstream "available [here]" line, reproduced on the pre-change README as well (`git show HEAD~2:README.md`), so this commit did not introduce it; - `yarn l10n:parity` — 1686 leaf keys in each of en/ru/uk, 0 divergences (the README's "covered completely" claim rests on that measurement); - scan_leaks on both files — CLEAN, line endings intact (175/175 and 345/345 CR). Result: the README answers "where to get it, how to turn on the translation, how to build it, where updates come from" without reading code, and docs/fork-releases.md no longer contradicts the state of the releases.
…Desktop.lnk»
Что изменено (numstat):
- script/dist-info.ts (+20/-5): новая `getWindowsShortcutName()` — «GitHub
Desktop L10n», единственное место, где метка ярлыка задана. Комментарий у
`getWindowsIdentifierName` убрано неверное утверждение, что идентификатор
разводит и ярлыки: от него зависят каталог установки, пакеты и
`AppUserModelId`, а имя `.lnk` — отдельный рычаг.
- script/build.ts (+4/-1): `win32metadata.FileDescription` был `''` — берёт
`getWindowsShortcutName()` (пустое значение Windows разрешает в ProductName,
то есть в апстримное «GitHub Desktop»).
- app/app-info.ts (+2), app/src/lib/globals.d.ts (+9): метка уходит в рантайм
новым compile-time литералом `__WINDOWS_SHORTCUT_NAME__` рядом с
`__WINDOWS_IDENTIFIER_NAME__`.
- app/src/main-process/squirrel-updater.ts (+1/-1),
app/src/lib/find-toast-activator-clsid.ts (+4/-2): оба места, где код искал
ярлык по имени («есть ли ярлык на рабочем столе, чтобы пересоздать и его»,
«в каком ярлыке искать toastActivatorCSLID»), переходят на литерал — иначе
после переименования искали бы файл апстрима.
- script/dist-info-test.ts (+33/-1): два теста — метка отличается от
апстримной и остаётся узнаваемой (`startsWith('GitHub Desktop')`).
- .github/workflows/release-fork.yml (+26): шаг `Guard the shortcut name` после
`yarn package` читает `VersionInfo.FileDescription` уже упакованного
`dist/GitHubDesktopL10n-win32-<arch>/GitHubDesktopL10n.exe` и роняет прогон до
публикации, если значение не совпало с ожидаемым.
- README.md (+1/-1), docs/fork-releases.md (+15): строка таблицы и новый абзац
про имя ярлыка по фактическому поведению.
Зачем. Замерено 08.10.2026 на этой машине, где стоят обе редакции
(`%LOCALAPPDATA%\GitHubDesktop` и `%LOCALAPPDATA%\GitHubDesktopL10n`):
`Squirrel-Shortcut.log` обеих записей показывает, что Squirrel создаёт один и
тот же файл `Start Menu\Programs\GitHub, Inc.\GitHub Desktop.lnk` — апстрим при
`--createShortcut GitHubDesktop.exe`, форк при `--createShortcut
GitHubDesktopL10n.exe`. Имя `.lnk` Squirrel берёт не из имени исполняемого файла
и не из идентификатора, а из `FileDescription` версии-ресурса, который сборка
оставляла апстримным. Следствие: редакция, обновившаяся последней, перехватывает
иконку другой. PowerShell-замер текущего ярлыка: `TargetPath` указывает на
`GitHubDesktopL10n.exe`, потому что форк обновился в 19:44, позже апстрима.
Бинарники при этом в безопасности — подмену стоковой сборкой закрывают
идентификатор и запечённый фид (`a8ae1b1be5`); под ударом был именно способ
запуска. Каталог «GitHub, Inc» остаётся общим: Win32 срезает завершающую точку,
поэтому в нём теперь просто два разных ярлыка (проверено `ls -d`, ветка
`find-toast-activator-clsid.ts` с `'GitHub, Inc'` корректна).
Проверено в gdlab (node 24.19, /work — это это же дерево):
- `yarn test:script` — 35/35 pass, fail 0 (было 33, добавились два новых);
- `yarn lint:src` — rc=0, конфликтов правил с prettier нет;
- `npx prettier --check` по всем восьми изменённым коду/CI-файлам — чисто;
- `yarn compile:dev` — rc=0, «webpack 5.111.0 compiled successfully in 88763 ms»;
- живая мерка влития литерала: `grep -ro 'GitHub Desktop-dev L10n' out` — 2
вхождения в `out/main.js`, ноль в `out/renderer.js` (обе правки живут в
main-process, как и ожидание); в dev-сборке метка с `-dev`, потому что
`getProductName()` добавляет суффикс;
- `yarn markdownlint` — по моим файлам только пред-существующая
`README.md:105 MD059 [here]`, воспроизведённая раньше на `HEAD~2:README.md`.
Принятый остаток: совпадение `FileDescription` с ожиданиями видно только на
windows-раннере, из Linux этот механизм не проверить совсем — поэтому он
заякорен падением прогона, а не только комментарием. Первый же win-прогон после
этого коммита либо подтвердит метку, либо упадёт до публикации релиза.
Итог: у форка собственный ярлык «GitHub Desktop L10n.lnk», код больше не
посылает Squirrel перезаписывать файл апстрима, инвариант закрыт тестом и
гейтом в CI.
---
EN: Windows shortcut label separated: the fork no longer writes upstream's "GitHub Desktop.lnk"
Changed (numstat): `script/dist-info.ts` (+20/-5) adds `getWindowsShortcutName()`
("GitHub Desktop L10n") as the single definition of the shortcut label, and drops
the incorrect claim in the `getWindowsIdentifierName` comment that the identifier
also separates shortcuts; `script/build.ts` (+4/-1) feeds it into
`win32metadata.FileDescription`, which was `''` (Windows then reports the
upstream "GitHub Desktop"); `app/app-info.ts` (+2) and `app/src/lib/globals.d.ts`
(+9) ship the label to the runtime as `__WINDOWS_SHORTCUT_NAME__`;
`squirrel-updater.ts` (+1/-1) and `find-toast-activator-clsid.ts` (+4/-2) look the
`.lnk` up through that literal instead of upstream's name;
`script/dist-info-test.ts` (+33/-1) asserts the label differs from the stock one
and stays recognizable; `release-fork.yml` (+26) adds a `Guard the shortcut name`
step that reads `VersionInfo.FileDescription` of the packaged
`GitHubDesktopL10n.exe` and fails before the release is published; README (+1/-1)
and `docs/fork-releases.md` (+15) describe the real behavior.
Why. Measured 2026-10-08 on a machine holding both editions: both
`Squirrel-Shortcut.log` files show Squirrel creating the very same
`Start Menu\Programs\GitHub, Inc.\GitHub Desktop.lnk` - upstream for
`--createShortcut GitHubDesktop.exe`, the fork for `GitHubDesktopL10n.exe`. The
label comes from the exe's `FileDescription`, not from the executable name or the
Squirrel identifier, and the build left it upstream's, so whichever edition
updated last owned the other's icon (a PowerShell read of the current shortcut
shows it pointing at `GitHubDesktopL10n.exe`, since the fork updated at 19:44).
Binaries were never at risk - the identifier and baked feed (`a8ae1b1be5`) block
replacement by stock builds - the launch path was.
Verified in gdlab: `yarn test:script` 35/35 (was 33), `yarn lint:src` rc=0,
`prettier --check` clean over the eight code/CI files, `yarn compile:dev` rc=0
("webpack 5.111.0 compiled successfully in 88763 ms"), `grep -ro` finds the label
twice in `out/main.js` and zero times in `out/renderer.js` (both call sites are
main-process), `markdownlint` reports only the pre-existing `README.md:105 MD059`.
Accepted remainder: the `FileDescription` match can only be observed on a Windows
runner, so the invariant is anchored by a failing CI step rather than a comment.
…ин `github`
Что изменено (numstat):
- script/dist-info.ts (+13): новая `getWindowsCliCommandName()` = `github-l10n`.
- app/app-info.ts (+2), app/src/lib/globals.d.ts (+9): имя уходит в рантайм
литералом `__WINDOWS_CLI_COMMAND_NAME__` рядом с двумя предыдущими.
- app/src/main-process/squirrel-updater.ts (+38/-3): оба трамплина (`.bat` для
cmd/PowerShell и bash-файл для WSL) пишутся под новым именем; добавлен
`removeLegacyTrampolines` (`:86-105`) — он сносит `github.bat`/`github`,
написанные прежними сборками форка, и вызывается из `installWindowsCLI` после
записи новых.
- app/src/cli/main.ts (+16/-5): строка справки собирается хелпером `row()` с
выравниванием по колонке 36 (та же, что была в апстримном литерале) и печатает
на Windows фактическое имя команды; `__WIN32__ ? … : 'github'` оставляет
macOS/Linux как было.
- script/dist-info-test.ts (+18): имя не равно `github` и пригодно для cmd,
PowerShell и WSL (`/^[a-z0-9_-]+$/`).
- README.md (+1/-1), docs/fork-releases.md (+18): абзац «CLI-команда — тот же
класс конфликта» и уточнение в таблице.
Зачем. Замерено 08.10.2026 на машине с обеими редакциями: каталоги `bin` у них
разные (`%LOCALAPPDATA%\GitHubDesktop\bin` и
`%LOCALAPPDATA%\GitHubDesktopL10n\bin` — `getBinPath()` это
`<установка>\bin`), но файл в них один и тот же по имени, и содержимое differ
только версией:
`"%~dp0\..\app-3.6.7-beta3\resources\app\static\github.bat"` против
`"%~dp0\..\app-3.6.6\resources\app\static\github.bat"`. Оба каталога добавлены в
пользовательский `PATH`, апстримский раньше: `[Environment]::GetEnvironmentVariable('Path','User')`
— позиции 22 и 30. Значит `github` в терминале запускал стоковую сборку, даже
когда пользователь работал в форке: конфликт не за бинарник, а за имя команды.
Отдельно про удаление старых: `installWindowsCLI` перезаписывал трамплин при
каждой установке/обновке, а после переименования прежний `github.bat` остался бы
никто не трогал — с путём к `app-<версия>`, которое `cleanDeadVersions` вычищает,
то есть команда выдала бы непонятную ошибку. Каталог `bin` лежит внутри нашего
же каталога установки, поэтому файл с таким именем мог написать только форк.
Проверено в gdlab (node 24.19, /work — это же дерево):
- `yarn test:script` — 36/36 pass, fail 0 (было 35);
- `yarn lint:src` — rc=0; `npx prettier --check` по шести файлам — чисто (после
`--write` на `cli/main.ts`, длинная строка `row(...)` перенеслась);
- `yarn compile:dev` — rc=0, «webpack 5.111.0 compiled successfully in 87986 ms»;
- живые мерки по бандлам: `out/main.js` — 4 вхождения `github-l10n`; `out/cli.js`
этой же linux-сборки — ноль `github-l10n` и ровно одно `'github'`, то есть
`__WIN32__` вычислился в `false` и мёртвая ветка вырезана: на macOS/Linux
справка осталась прежней, правка касается только Windows;
- `yarn markdownlint` — по моим файлам только пред-существующая
`README.md:105 MD059 [here]`;
- CJK-скан по изменённым файлам и телу коммита — чисто.
Принятый остаток: как и с ярлыком, живое поведение видно только на
windows-прогоне. До ближайшей установки/обновки форка прежний `github.bat` в его
`bin` продолжает работать — удаление сработает на следующем `installWindowsCLI`.
Старая установка форка (3.6.7-beta3) сама по себе ничего не переименует.
Итог: у форка собственное имя CLI-команды, справка его печатает, следы прежнего
имени в каталоге форка убираются, инвариант закрыт тестом.
---
EN: The fork installs its CLI as `github-l10n` and cleans up its old `github` trampoline
Changed (numstat): `script/dist-info.ts` (+13) adds `getWindowsCliCommandName()`
returning `github-l10n`; `app/app-info.ts` (+2) and `app/src/lib/globals.d.ts` (+9)
expose it as `__WINDOWS_CLI_COMMAND_NAME__`;
`app/src/main-process/squirrel-updater.ts` (+38/-3) writes both trampolines (`.bat`
and the WSL bash file) under that name and adds `removeLegacyTrampolines`
(`:86-105`), called from `installWindowsCLI` after writing the new ones;
`app/src/cli/main.ts` (+16/-5) builds the help text through a `row()` helper aligned
to the same column 36 and prints the fork's name on Windows only
(`__WIN32__ ? … : 'github'`); `script/dist-info-test.ts` (+18) asserts the name is
not `github` and is callable from cmd, PowerShell and WSL; README (+1/-1) and
`docs/fork-releases.md` (+18) document it.
Why. Measured 2026-10-08 with both editions installed: the `bin` directories differ
(`%LOCALAPPDATA%\GitHubDesktop\bin` vs `%LOCALAPPDATA%\GitHubDesktopL10n\bin`, since
`getBinPath()` is `<install>\bin`) but the file inside them has the same name, and
the contents differ only by version (`app-3.6.7-beta3` vs `app-3.6.6`). Both
directories are on the user `PATH`, upstream's first (positions 22 and 30 in
`[Environment]::GetEnvironmentVariable('Path','User')`), so typing `github` launched
the stock app even when the fork was the edition in use. Removing the old files is
part of the change because `installWindowsCLI` used to rewrite the trampoline on
every install/update; after renaming, the previous `github.bat` would be left
pointing at an `app-<version>` directory that `cleanDeadVersions` deletes. Only this
fork writes into this `bin`, so a file with that name there can only be ours.
Verified in gdlab: `yarn test:script` 36/36 (was 35), `yarn lint:src` rc=0,
`prettier --check` clean over the six files, `yarn compile:dev` rc=0 (87.9 s),
`out/main.js` contains `github-l10n` four times while `out/cli.js` of the same Linux
build contains it zero times and exactly one `'github'` - `__WIN32__` folds to
`false` and the dead branch is eliminated, so macOS/Linux help text is unchanged.
Accepted remainder: as with the shortcut, only a Windows run shows the live
behavior; until the next install/update of the fork its old `github.bat` keeps
working, and an installed 3.6.7-beta3 renames nothing by itself.
Зачем: панель «Примечания к выпуску» брала всё из апстримного фида, и ни об
одном изменении форка (локализация интерфейса, редактор переводов, отдельная
установка) она не говорила ничего. Править апстримский `changelog.json` нельзя:
`script/validate-changelog.ts` требует ровно один top-level ключ и semver-номер,
а собственные записи превратили бы каждый мерж апстрима в конфликт. Поэтому у
форка отдельный файл, который сливается с апстримными суммарями на сборке
панели.
Что изменено (numstat):
- changelog-fork.json (+16, новый): `{ releases: [ { version, pub_date, notes:
[{ kind, key }] } ] }` — одна запись 3.6.7-beta3 с шестью заметками. `key` —
не текст, а ключ каталога, `version` — апстримный номер сборки.
- app/src/lib/fork-changelog.ts (+73, новый): `getForkReleaseSummaries(buildDate)`
переводит эти записи в те же `ReleaseSummary`, что и апстримный фид. Отбор по
`pub_date >= __BUILD_DATE__`: форк различает сборки хешем и датой, а не
SemVer, поэтому `semver.gt` неприменим. Неизвестный `kind` уходит в «Прочее».
- app/src/lib/release-notes.ts (+14/-2): `generateReleaseSummary` дописывает
форк-суммарии после апстримных. Порядок важен: диалог решает, показывать
«Установить и перезапустить» или «Закрыть», по совпадению `latestVersion`
первой записи с `__APP_VERSION__` (release-notes-dialog.tsx:142), и свои записи
первыми уронили бы кнопку установки. Когда апстримных обновлений нет, панель
показывает форк-записи вместо молчания.
- app/locales/{en,ru,uk}.json (+8, +9/-1, +9/-1): секция `releaseNotes.fork` из
шести ключей — примечания переводятся вместе с интерфейсом, за паритет
отвечает `yarn l10n:parity` (1692 leaf-ключа на каталог).
- app/test/unit/fork-changelog-test.ts (+103, новый, 5 тестов): запись существует
для версии из appPackage, kinds только известные, каждый ключ резолвится в
en/ru/uk, фильтр по дате отсекает будущее (`2099-01-01` — ноль записей) и
пропускает прошлое (`2000-01-01` — все), каждая заметка попадает ровно в одну
корзину суммарии.
- docs/fork-releases.md (+49): раздел «Примечания к выпуску: и апстрим, и форк» —
формат файла, почему не правится апстримский ченджлог, отбор по дате, порядок
слияния и оговорка, что панель открывается из баннера Squirrel-обновления, то
есть видна на Windows; на Linux-portable о новых сборках говорит баннер
fork-release-available.
- README.md (+5): тот же абзац коротко со ссылкой на документ.
Замеры после правок: `node script/test.mjs` — 2273 pass / 0 fail / 2 skipped;
`yarn l10n:parity` — 1692 x 3, 0 проблем; prettier, eslint (--rulesdir),
`tsc --noEmit`, markdownlint — без замечаний.
Зачем: в двух строках секции редактора (`newLanguageHint`, `tagInvalid`) код языка был обёрнут в обратные кавычки. Каталог читается не markdown'ом: l10n-core и `Trans` подставляют только свои теги, а «`» остаётся в тексте, и в диалоге было видно «например `pt-BR`». Обе строки — наши: ключи появились в 8a77f48 («Add localization core with bundled English and Russian catalogs»), uk-версии — в fcbefe1 («Добавить украинскую локализацию как встроенный каталог»), так что исправляем свой текст, а не апстримный. Что изменено (numstat, +2/-2 в каждом каталоге): - app/locales/en.json: «`pt-BR`» → «"pt-BR"», «`ru`, `pt-BR` or `sr-Cyrl-RS`» → «"ru", "pt-BR" or "sr-Cyrl-RS"». - app/locales/ru.json: те же две строки — «ёлочки» (««pt-BR»»), как во всех остальных строках каталога. - app/locales/uk.json: то же на ««»», плюс в `newLanguageHint` исправлена опечатка «Закосунок» → «Застосунок». Замер: после правки `grep -c '`'` по всем трём каталогам даёт 0 — обратных кавычки в переводимых строках больше нет, то есть это были единственные две строки, а не начало стиля. Гейты: `yarn l10n:parity` — 1692 leaf-ключа × 3, 0 проблем; prettier по трём файлам — чисто; `node script/test.mjs app/test/unit/localization-editor-test.tsx` — 21/21 pass (тесты редактора держат фикстуры, а не shipped-каталоги, так что правка значений на них не влияет). Итог: подсказка про код языка читается как обычная фраза в кавычках, принятых в каждом из трёх каталогов, ошибка в uk-строке убрана.
…ет в подсказку
Зачем: переводчик редактирует строку на своём языке, а подсказка под курсором и
строка-образец над полем говорили английский оригинал либо язык интерфейса.
Замер 08.10.2026 на таргете ru: ghost-текст `about.beta-channel` был
английским, то есть пример не показывал готовую форму того же языка. Плюс в
призрачный текст попадала разметка `Trans` — `<link>бета-каналом</link>`,
которую нельзя выделить и которая только мешает читать фразу.
Что изменено (numstat):
- app/src/ui/localization/localization-editor.tsx (+48/-11):
* `exampleOf` (`:852-890`) сначала спрашивает каталог цели (`getBuiltInMessages
(target)`), и только если формы там нет — язык интерфейса. Каталог цели
отвечает первым, потому что это и есть готовый перевод этой строки; язык
интерфейса остаётся подстановкой для каталога, созданного через «Добавить
язык» и ещё пустого.
* новый `withoutMarkup` (`:892-914`): срезает теги `Trans` из текста
подсказки. Самозакрывающийся тег (`<time />`) вырезается вместе с пробелом
перед ним — `renderTemplate` подставляет вместо него элемент, а не текст, и
«(проверено )» с висячим пробелом читается хуже, чем «(проверено)».
* `placeholder={withoutMarkup(example)}` (`:406`): строка примера над полем
разметку сохраняет — её копируют в поле, и вставленный без `<link>` перевод
молча теряет ссылку. Оригинал строкой выше остаётся оригиналом: `{count}` и
`&`-мнемоники сверяются именно с ним.
- app/test/unit/localization-editor-test.tsx (+79/-20):
* фикстуры `zzmarkup.{link,time,checked}` в en и ru builtin-регистрациях —
разметка единственное, в чём два показа примера расходятся;
* три теста переименованы под новое правило (`falls back to the language on
screen while the target has no form yet`, `shows the target language its own
wording when that language is edited`, `offers the target forms it has and
the original for the forms it lacks`) и переписаны их ожидания: на таргете
ru пример — русская форма, а не оригинал; в четырёхформах `de` даёт только
`_other`, поэтому `_few`/`_many` остаются с английским;
* новый тест `keeps markup out of the ghost text and inside the copyable
example` — три пары ожиданий: оригинал с разметкой, пример с разметкой,
ghost-текст без неё.
Замеры после правок: точечный прогон `node script/test.mjs
app/test/unit/localization-editor-test.tsx` — 21/21 pass (было 20); полный
прогон — 2273 pass / 0 fail / 2 skipped; `npx tsc --noEmit -p tsconfig.json`,
prettier, eslint с `--rulesdir ./eslint-rules` — без замечаний.
Живая приёмка в стенде (CDP :9222, обход fiber'ом через tmp/editor_example.mjs):
таргет ru — original `Check out the <link>Beta Channel</link>`, пример
`Ознакомьтесь с <link>бета-каналом</link>`, ghost `Ознакомьтесь с бета-каналом`;
таргет uk — `Перегляньте <link>бета-канал</link>` / `Перегляньте бета-канал`;
`about.up-to-date-rich` — ghost `Установлена последняя версия (проверено)`.
Итог: пример и подсказка говорят языком, в который переводят, а когда его ещё
нет — языком интерфейса; копируется готовая к вставке строка с разметкой, а
призрачный текст остаётся читаемой фразой.
Зачем: `npx markdownlint README.md --config .markdownlint.js --rules .markdownlint-rules.js` давал на эту строку MD059 — встроенное правило markdownlint `descriptive-link-text` (ссылка подписана словом «here», из которого без окружающего текста непонятно, куда она ведёт; правило входит в набор `accessibility`). Проверено по истории: строка апстримная, добавлена f1b1b2f (Billy Griffin, 2021-01-22, «Add beta release notes») и форком ни разу не трогалась, то есть это не регрессия наших правок, а пред-существующий дефект, который наш линтер ловит. Он же стоял в отчётах предыдущих приёмок пометкой «пред-существующее». Что изменено (numstat): - README.md (+2/-1): `The release notes for the latest beta versions are available [here](…)` → `… are at [desktop.github.com/release-notes](…)`. URL тот же, включая `?env=beta`. Перенос на вторую строку сделан для читаемости абзаца: `line-length` в конфиге выключен (`.markdownlint.js:10`), так что одной строки хватило бы. Замер после правки: `npx markdownlint README.md docs/fork-releases.md --config .markdownlint.js --rules .markdownlint-rules.js` — rc=0, замечаний нет (до правки была ровно одна: MD059). CJK-скан по файлу и телу — чисто. Итог: README проходит markdownlint без изъятий, а ссылка на примечания беты называет пункт назначения, а не «here».
Зачем: прогон «Guard the shortcut name» упал ещё до первого выражения:
At D:\a\_temp\<uuid>.ps1:12 char:105
+ … tion не '$expected': Squirrel напишет чужой Ñ�рлык"
The string is missing the terminator: ".
At …:5 char:28
if (-not (Test-Path $exe)) {
Missing closing '}' in statement block or type definition.
Причина не в скрипте, а в кодировке. Actions пишет `run:` в .ps1 в UTF-8 без
BOM, а `shell: powershell` — это Windows PowerShell 5.1, который читает файл без
BOM в ANSI-кодировке раннера (CP1252 на англоязычном образе). UTF-8-байты
кириллицы разворачиваются в символы CP1252, и среди них оказываются «умные
кавычки»: em dash — это E2 80 94, а 0x94 в CP1252 есть не что иное, как U+201D
(закрывающая кавычка), плюс 0x9D — вообще неопределённый управляющий символ.
PowerShell считает U+201D концом строки, поэтому `Write-Output "… — …"`
обрезается посередине, а не закрытая `{` из первого `if` — это уже следствие.
Комментарии выше шага парсер не трогает: они не попадают в .ps1, поэтому падал
только вывод.
Что изменено (numstat):
- .github/workflows/release-fork.yml (+11/-1): `shell: powershell` → `shell: pwsh`
в шаге «Guard the shortcut name», плюс абзац комментария с разбором кодировки,
чтобы следующий, кто захочет «починить» шаг переводом сообщений на ASCII,
увидел причину, а не симптом. Содержимое `run:` не изменено — сверено diff
перед коммитом.
Почему pwsh, а не ASCII-сообщения: ci.yml:230 («Install app on Windows») уже
выполняется на pwsh и держит русские комментарии внутри `run:` — прогон зелёный,
значит PowerShell 7 читает UTF-8 без BOM правильно и правка одна, а не три.
Перевод строк вывода на английский убрал бы симптом только для этих двух
сообщений и оставил бы ловушку для любого следующего кириллического текста в
powershell-шаге.
Замерено в gdlab (/work — это же дерево): YAML парсается (`js-yaml`), и тем же
скриптом по всем job'ам — шагов с `shell: powershell` в репозитории больше нет
(список пуст, jobs: 2).
Принятый остаток: правка вступает в силу со следующего прогона джобы. Упавший
прогон ничего не опубликовал — шаг стоит до «Publish release», так что
переиздавать нечего; перезапуск релизной джобы остаётся за пользователем.
Итог: шаг проверки имени ярлыка доходит до сравнения FileDescription, а не до
ошибки парсинга, и причина задокументирована в самом workflow.
Одна неудачная проверка `assert.equal(<узел>, null)` внутри `waitFor` стоила 255
секунд, из-за чего тест «offers to save an edit again» шёл 294 секунды вместо трёх.
Что изменено?
- app/test/unit/localization-editor-test.tsx (+11/-9): хелпер `assertNotUnsaved()`
с boolean-проверкой (`assert.ok(узел === null, 'The unsaved banner is still
visible')`); три `waitFor` переведены с `assert.equal(screen.queryByText(...),
null)` на него, включая тот, что уже был в безопасной форме (:521), — чтобы
проверка баннера жила в одном месте.
- app/test/unit/ui/copy-button-test.tsx (+2/-1): тот же паттерн в апстримном тесте
(:48) развёрнут в `assert.ok(liveRegion === null, …)`.
Зачем?
При провале `assert.equal` Node тут же строит сообщение и инспектирует значения.
Узел, который ищет `waitFor`, держит `__reactFiber$…` со ссылками на
child/sibling/return/stateNode, поэтому обход уходит во всё дерево приложения:
88,5 % времени профиля (262 965 мс из 297 289 мс) приходится на `formatRaw` из
`node:internal/util/inspect` под стеком `equal → AssertionError → inspectValue`.
Поскольку это синхронная работа, она блокирует event loop дольше собственного
таймаута: `{ timeout: 5000 }` дал две проверки за 276 688 мс. Значит упавший
прогон висел бы минутами вместо того, чтобы показать внятную ошибку.
Замеры? (стенд gdlab, /work — это же дерево, 08.10 UTC)
- до (20:53): `node script/test.mjs app/test/unit/localization-editor-test.tsx
--test-name-pattern="offers to save an edit again" --cpu-prof
--cpu-prof-dir=/work/tmp/prof` → 294 037,84 мс, tests 1 / pass 1. Разбор
профиля: `formatRaw` 262 965 мс, из них 255 186 мс в указанном стеке. Форма с
пробелом (`--cpu-prof-dir /work/tmp/prof`) не проходит: `script/test.mjs:31`
относит всё, что не начинается с `--`, в список тест-файлов.
- после (21:02): тот же тест без профиля — 2 889,47 мс; файл целиком (22 теста
вместе с pick mode) — 22 216 мс; два файла — duration 25 391 мс, pass 22 /
fail 0.
- полный набор (21:05): `node script/test.mjs` → tests 2275, pass 2273, fail 0,
skipped 2, duration 212 100 мс; в нём этот тест — 6 928 мс.
- падение проверено временным зондом (не коммичен): `assert.ok` с сообщением
бросает «AssertionError [ERR_ASSERTION]: The unsaved banner is still visible»
мгновенно, зонд целиком — 2 439 мс вместе с рендером. Проверка по-прежнему
падает, если баннер действительно не исчез; дешёвой стала именно цена падения.
- гейты: prettier `--check` — «All matched files use Prettier code style»;
eslint с `--rulesdir ./eslint-rules` — замечаний нет; `tsc --noEmit -p
tsconfig.json` из корня (31,5 с) — 0 ошибок.
Принятый остаток?
`assert.equal` на числах и строках внутри `waitFor` оставлен (:508,
`calls.length`) — инспекция примитивов дёшева. Опасен узел DOM, и поиск по всему
`app/test` нашёл такие проверки только в двух исправленных файлах. Сколько стоит
рендер редактора в jsdom (1,2–1,4 с на тест) правкой не затрагивалось.
Итог
Провалившийся `waitFor` печатает одну строку текста вместо дампа React-дерева, и
проверка «перезапустили диалог — предложение сохранить осталось» занимает секунды.
---
EN: Tests: an assert inside waitFor must not format the DOM
A single failing `assert.equal(<node>, null)` inside `waitFor` cost 255 seconds,
which is why "offers to save an edit again" took 294 seconds instead of three.
What changed?
- app/test/unit/localization-editor-test.tsx (+11/-9): an `assertNotUnsaved()`
helper doing the boolean check with `assert.ok(node === null, 'The unsaved
banner is still visible')`; three `waitFor` calls moved off
`assert.equal(screen.queryByText(...), null)`, including the one already in the
safe form (:521), so the banner check lives in a single place.
- app/test/unit/ui/copy-button-test.tsx (+2/-1): the same pattern in the upstream
test (:48) expanded into `assert.ok(liveRegion === null, …)`.
Why?
When `assert.equal` fails, Node builds the message immediately and inspects the
values. The node `waitFor` looks for carries `__reactFiber$…` with
child/sibling/return/stateNode links, so the walk covers the whole app tree:
88,5 % of the profile (262 965 ms out of 297 289 ms) is `formatRaw` from
`node:internal/util/inspect` underneath `equal → AssertionError → inspectValue`.
That work is synchronous, so it blocks the event loop longer than its own
timeout: `{ timeout: 5000 }` produced two checks in 276 688 ms. A failing run
would therefore hang for minutes instead of reporting a readable error.
Verified? (gdlab stand, /work is the same tree, 08.10 UTC)
- before (20:53): `node script/test.mjs app/test/unit/localization-editor-test.tsx
--test-name-pattern="offers to save an edit again" --cpu-prof
--cpu-prof-dir=/work/tmp/prof` → 294 037,84 ms, tests 1 / pass 1. Profile
breakdown: `formatRaw` 262 965 ms, of which 255 186 ms in that stack. The
space-separated form (`--cpu-prof-dir /work/tmp/prof`) does not work:
`script/test.mjs:31` treats anything not starting with `--` as a test file.
- after (21:02): the same test without profiling — 2 889,47 ms; the whole file
(22 tests including pick mode) — 22 216 ms; both files — duration 25 391 ms,
pass 22 / fail 0.
- full suite (21:05): `node script/test.mjs` → tests 2275, pass 2273, fail 0,
skipped 2, duration 212 100 ms; this test inside it — 6 928 ms.
- the failure path was checked with a temporary probe (not committed): `assert.ok`
with a message throws
«AssertionError [ERR_ASSERTION]: The unsaved banner is still visible» instantly,
and the probe as a whole took 2 439 ms including its render. The check still
fails when the banner really is there; only the cost of failing got cheap.
- gates: prettier `--check` — "All matched files use Prettier code style"; eslint
with `--rulesdir ./eslint-rules` — clean; `tsc --noEmit -p tsconfig.json` from
the repo root (31,5 s) — 0 errors.
Accepted remainder?
`assert.equal` on numbers and strings inside `waitFor` stays (:508,
`calls.length`) — inspecting primitives is cheap. It is the DOM node that is
dangerous, and a search across `app/test` found such checks only in the two files
fixed here. What rendering the editor in jsdom costs (1,2–1,4 s per test) was not
touched by this change.
Result
A failing `waitFor` now prints one line of text instead of dumping the React
tree, and the "reopened dialog still offers to save" check takes seconds.
Релиз каждой платформы теперь запускается своим файлом: прогон Windows- архитектуры больше не пересобирает и не перезаписывает linux-фид, а linux- артефакт можно обновить, не собирая Windows. Что изменено? - `.github/workflows/release-fork.yml` → `release-fork-windows.yml` (+6/-79): переименование через `git mv` (история файла сохранена), `name: Release Fork (Windows)`, из файла вырезана джоба `linux`. Десять шагов Windows-прогона (`Build production app`, `Guard the feed before packaging`, `Package Windows installer`, `Guard the shortcut name`, `Write build info and release notes`, `Zip portable bundle`, `Publish to GitHub Release` и три служебных) перенесены байт-в-байт, вместе со всеми комментариями, где лежат замерные строки. В шапке — четыре строки о том, куда уехала джоба и почему. - `.github/workflows/release-fork-linux.yml` (+93/-0): `name: Release Fork (Linux)`, `on: workflow_dispatch` без входов (у portable-сборки одна архитектура, выбирать нечего), те же `NODE_VERSION`/`RELEASE_CHANNEL` в `env`, джоба `linux` тем же телом. Правлены только три перекрёстных комментария, которые ссылались на «шаг установки выше» и на «win-джобу»: теперь они называют `release-fork-windows.yml` полным путём, потому что соседа в файле больше нет. `workflow_dispatch` записан маппингом, как в `draft-release.yml` и `triage-scheduled-tasks.yml`, а не скаляром. - `docs/fork-releases.md` (+20/-9): команды запуска в обеих секциях, абзац «Прогон делает две джобы» переписан на «релиз каждой платформы живёт своим файлом» с перечислением того, что раньше терялось; в секции локальной linux-сборки — строки о том, что в тег публикует `release-fork-linux.yml`, а сборка в контейнере не публикует ничего; в «Схеме блока» оба представления теперь загружает каждый релизный workflow. - `README.md` (+3/-2), `docs/fork-oauth-client.md` (+8/-6), `gdlab/release.sh` (+3/-3): пересъёмка ссылок на файл и имя workflow, включая номер строки `RELEASE_CHANNEL` (`release-fork.yml:25` → `release-fork-windows.yml:30`), и новая строка таблицы «Как собрать» для linux-прогона. Зачем? Один workflow собирал обе платформы сразу: джоба `linux` не гейтится входом `arch`, поэтому прогон `arch=arm64` (задача desktop#34) неизбежно перезаписывал ассеты и notes тега `latest-linux-x64` — фида, к которому arm64-клиент не обращается. Обратная связка тоже мешала: обновить linux-артефакт можно было только вместе с девятью минутами Windows-сборки. Разделение убирает обе помехи, не меняя ни одного шага и ни одного публикуемого артефакта. Замеры? Сняты 09.10.2026 в `docker exec gdlab` (`/work` — это же рабочее дерево): - `js-yaml` разбирает оба файла, `jobs` = `windows` и `linux`: ни одна джоба не осталась в двух местах. - Склейка списков шагов двух файлов байт-в-байт равна списку шагов `git show HEAD:.github/workflows/release-fork.yml`: 18 = 10 + 8, `reunited equals orig: true` — шаг не потерялся и не переписался. - `node_modules/.bin/prettier --check` по обоим yml: «All matched files use Prettier code style» (гейт `yarn prettier` покрывает `*.yml`). - `bash -n gdlab/release.sh` — ok, там правлены только комментарии и подсказка. - `grep -rn "release-fork.yml"` по репозиторию: единственное вхождение — намеренный исторический рассказ в `docs/fork-releases.md:148`, висячих ссылок нет. - `grep -rn "DESKTOP_OAUTH_" .github`: только `ci.yml:37-38`, `116-118`, `196-198`, то есть утверждение `docs/fork-oauth-client.md` о незадаанных реквизитах после появления второго файла верно и проверено заново, а не унаследовано. - `tsc --noEmit` и тесты не запускались: дифф не трогает `.ts`/`.tsx`, тронуты только yml, md и bash-комментарии. Принятый остаток? - Преамбула (checkout, setup-node, `yarn install` с гашением DEP0169/DEP0040) сознательно продублирована в двух файлах: reusable-workflow ради трёх шагов добавил бы слой `uses:`/`secrets: inherit` и спрятал бы платформенные различия, которые и есть смысл разделения. - Историю прогонов старого «Release Fork» GitHub продолжит показывать под прежним именем файла: записи Actions не переименовываются. - `gdlab/release.sh` по-прежнему собирает linux локально и ничего не публикует, публикация в тег — только workflow. - Пуш и запуск релизных прогонов (в том числе `arch=arm64` из desktop#34) — за пользователем, здесь только файлы. - Отдельная неточность, не связанная с разделением: `docs/fork-releases.md:90-93` утверждает, что оба опубликованных тега собраны из `6075cf5da8`, а по API 08.10.2026 `latest-win-x64` собран из `5e33127f00` (builtAt 20:04:28Z), `latest-linux-x64` — из `11a0cf6941`. Мерка устарела, но чинить её здесь нельзя: этот коммит о структуре workflow. Итог Каждый релизный прогон пишет ровно один тег фида, и сборка нужной архитектуры больше не зависит от чужой платформы. Держит это структура файлов, а не условие внутри одной джобы. --- EN: The fork's release workflow is split per platform Each platform now has its own workflow file: a Windows architecture run no longer rebuilds or overwrites the linux feed, and the linux artifact can be republished without building Windows. What changed? - `.github/workflows/release-fork.yml` → `release-fork-windows.yml` (+6/-79): renamed with `git mv` so the file history survives, `name: Release Fork (Windows)`, the `linux` job cut out. The ten Windows steps — `Build production app`, `Guard the feed before packaging`, `Package Windows installer`, `Guard the shortcut name`, `Write build info and release notes`, `Zip portable bundle`, `Publish to GitHub Release` and three service steps — moved byte-for-byte, comments with measurements included. The header gained four lines on where the job went and why. - `.github/workflows/release-fork-linux.yml` (+93/-0): `name: Release Fork (Linux)`, `on: workflow_dispatch` with no inputs (a portable build has one architecture, there is nothing to choose), the same `NODE_VERSION` / `RELEASE_CHANNEL` env, and the `linux` job with the identical body. Only three cross-referencing comments were reworded: they pointed at "the install step above" and at "the win job", and now name `release-fork-windows.yml` by full path because the neighbour is gone. `workflow_dispatch` is written as a mapping, like `draft-release.yml` and `triage-scheduled-tasks.yml`, not as a scalar. - `docs/fork-releases.md` (+20/-9): the run commands in both sections, the "the run makes two jobs" paragraph rewritten as "each platform lives in its own file" with what used to be lost spelled out, lines in the local linux build section saying the tag is published by `release-fork-linux.yml` while the container build publishes nothing, and the build-info block section now naming both release workflows. - `README.md` (+3/-2), `docs/fork-oauth-client.md` (+8/-6), `gdlab/release.sh` (+3/-3): references to the file and the workflow name re-taken, including the `RELEASE_CHANNEL` line number (`release-fork.yml:25` → `release-fork-windows.yml:30`), plus a new "How to build" table row for the linux run. Why? A single workflow built both platforms at once: the `linux` job is not gated by the `arch` input, so an `arch=arm64` run (task desktop#34) unavoidably overwrote the assets and the notes of the `latest-linux-x64` tag — a feed no arm64 client reads. The other coupling hurt too: the linux artifact could only be refreshed together with nine minutes of Windows build time. Splitting removes both without changing a single step or a published artifact. Verified Taken 09.10.2026 in `docker exec gdlab` (`/work` is this working tree): - `js-yaml` parses both files and `jobs` come out as `windows` and `linux`, so no job survived in two places. - Concatenating the step lists of the two files equals the step list of `git show HEAD:.github/workflows/release-fork.yml`: 18 = 10 + 8, `reunited equals orig: true` — not one step lost or rewritten. - `node_modules/.bin/prettier --check` on both yml files: "All matched files use Prettier code style" (`yarn prettier` covers `*.yml`). - `bash -n gdlab/release.sh` — ok, only comments and a hint changed there. - `grep -rn "release-fork.yml"` across the repository: the single hit is the deliberate historical note at `docs/fork-releases.md:148`, no dangling links. - `grep -rn "DESKTOP_OAUTH_" .github`: only `ci.yml:37-38`, `116-118`, `196-198`, so the claim in `docs/fork-oauth-client.md` about unset OAuth credentials still holds after the second file appeared — re-checked, not inherited. - `tsc --noEmit` and the test suite were not run: the diff touches no `.ts`/`.tsx`, only yml, md and bash comments. Accepted remainder - The preamble (checkout, setup-node, `yarn install` suppressing DEP0169 and DEP0040) is duplicated in both files on purpose: a reusable workflow for three steps would add a `uses:` / `secrets: inherit` layer and hide the platform differences that are the whole point of the split. - GitHub will keep showing the run history of the old "Release Fork" under its previous name; Actions records are not renamed. - `gdlab/release.sh` still builds linux locally and publishes nothing; writing to a tag is only what a workflow does. - Pushing and launching the release runs (including `arch=arm64` from desktop#34) remain with the user; this commit contains files only. - One inaccuracy unrelated to the split: `docs/fork-releases.md:90-93` says both published tags were built from `6075cf5da8`, while the API on 08.10.2026 reports `latest-win-x64` from `5e33127f00` (builtAt 20:04:28Z) and `latest-linux-x64` from `11a0cf6941`. The measurement went stale; fixing it here would mix it into a commit about workflow structure. Result Every release run writes exactly one feed tag, and building a given architecture no longer depends on the other platform. The file structure holds that, rather than a condition inside one job.
Раздел «Где взять собранное» называл оба опубликованных тега собранными из `6075cf5da8`; прогон 08.10 вечером это опроверг, и заодно стало видно, что один прогон обновил обе платформы сразу. Что изменено? - `docs/fork-releases.md` (+7/-3): дата мерки — 09.10.2026; хеш сборки обоих тегов — `c8dbb984f7` (из блока `fork-build-info` в notes релиза), версия та же — `3.6.7-beta3`; добавлены `builtAt` обеих сборок (21:29:51Z и 21:41:34Z) и вывод, что это один и тот же прогон — то есть ссылка на раздел о разделении джоб, и команда arm64-прогона приведена к новому имени файла (`gh workflow run release-fork-windows.yml -f arch=arm64 -f first_run=true`). Зачем? Документ — единственный источник, по которому судят, что уже роздано: фраза «оба тега собраны из 6075cf5» после вечерних прогонов стала неверной, а с ней неверным и ответ на вопрос «до какого коммита доживает фид». Заодно заметка про один прогон на обе платформы — это доказательство полезности вчерашнего разделения workflow, а не только моё утверждение. Замеры? Снято 09.10.2026 из API GitHub (`releases?per_page=10`, owner `bahooo22`, repo `github_desktop`): в списке ровно два релиза — `latest-win-x64` и `latest-linux-x64`; в их `body` блоки `<!--fork-build-info {"sha":"c8dbb984f7…","version":"3.6.7-beta3","builtAt":…}-->` с `builtAt` 2026-10-08T21:29:51.446Z и 2026-10-08T21:41:34.510Z. `latest-win-arm64` в списке отсутствует, то есть 404 из задачи desktop#34 подтверждён повторно. Логи самого прогона не читала — вывод строится на содержимом релизов. Гейты: `*.md` в `.prettierignore`, кода не касалось, поэтому prettier/eslint/tsc и тесты под этот дифф не гонялись; мерка — `git diff --numstat` (7/3, файл по-прежнему LF). Принятый остаток? `published_at` обоих релизов — 08.10 (тег переиспользуется, дата создания не меняется), поэтому в тексте дата создания прогона не приводится: только `builtAt` из notes, который перезаписывается каждым прогоном. Итог Раздел «Где взять собранное» теперь описывает фид тем, каким его видит API, и содержит команду arm64-прогона под новым именем workflow. --- EN: Release documentation: re-taken measurement of which commits the feed tags hold The "Где взять собранное" section named both tags as built from `6075cf5da8`; the evening run on 08.10 disproved that, and it also showed one run updating both platforms at once. What changed? - `docs/fork-releases.md` (+7/-3): measurement date is 09.10.2026; the build hash of both tags is `c8dbb984f7` (read from the `fork-build-info` block in the release notes), version unchanged at `3.6.7-beta3`; added both `builtAt` values (21:29:51Z and 21:41:34Z) and the conclusion that they come from the same run — which points at the section about splitting the jobs — and the arm64 command now uses the new file name (`gh workflow run release-fork-windows.yml -f arch=arm64 -f first_run=true`). Why? The document is the only place that says what has already been shipped: after the evening runs both tags were from `c8dbb984f7`, and keeping `6075cf5da8` would make every later answer to "how far does the feed reach" wrong. The same-run note is also evidence that yesterday's workflow split was worth it, not just my claim. Verified Taken 09.10.2026 from the GitHub API (`releases?per_page=10`, owner `bahooo22`, repo `github_desktop`): exactly two releases are listed, `latest-win-x64` and `latest-linux-x64`, whose bodies carry `<!--fork-build-info {"sha":"c8dbb984f7…","version":"3.6.7-beta3","builtAt":…}-->` with builtAt 2026-10-08T21:29:51.446Z and 2026-10-08T21:41:34.510Z. `latest-win-arm64` is absent, so the 404 from task desktop#34 is confirmed again. I did not read the run logs — the conclusion comes from the release contents. Gates: `*.md` is in `.prettierignore` and no code is touched, so prettier, eslint, tsc and the tests were not run for this diff; the measurement is `git diff --numstat` (7/3, the file stays LF). Accepted remainder `published_at` of both releases is still 08.10 (the tag is reused, creation date does not move), so the text quotes no run creation date — only `builtAt` from the notes, which every run rewrites. Result The "where to get a build" section now describes the feed as the API sees it, and carries the arm64 command under the new workflow name.
…ктуры Прогон `arch=arm64` 09.10.2026 упал на `yarn build:prod` ещё до первого webpack-компилята: `Cannot find module '@koromix/koffi-win32-arm64'`, rc=2. В `jobs.windows` добавлен шаг, который досстанавливает платформенные пакеты цели. Что изменено? - `.github/workflows/release-fork-windows.yml` (+65/-0): новый шаг `Install target-architecture native runtimes` между `yarn install` и `Build production app`, `shell: bash`, `TARGET_ARCH` из входа `arch`. Функция `add_target_runtime(parent, prefix)` собирает имя `$prefix-<process.platform>-$TARGET_ARCH`, берёт версию из `optionalDependencies` уже установленного родителя и, если директории нет, зовёт `yarn add --optional --ignore-platform --ignore-scripts` — тот же приём, что в апстримном `.github/actions/setup-ci-environment/action.yml:41-53`. Родителя два: `koffi` (→ `@koromix/[email protected]`) и `@github/copilot-sdk` (→ `…[email protected]`). Отдельного отсутствующего ключа в `optionalDependencies` шаг не прощает: падает с `::error::` и названием цели. Финальная проверка разделена: `koffi` резолвится тем же `require.resolve(…, { paths: ['./app/node_modules'] })`, что делает сборка (`script/webpack-koffi.ts:12`), а пакет SDK проверяется наличием директории. Зачем? Yarn 1 выбирает `optionalDependencies` по машине, на которой запускается: он сверяется с `process.arch`, а не с `npm_config_arch`, поэтому на windows-раннере (x64) платформенный пакет для arm64 не появляется никогда — как раз тогда, когда `app/webpack.common.ts:72` просит `script/webpack-koffi.ts` собрать целевой `koffi`: там резолв сделан заранее и назван решением «отсутствующая цель должна ронять сборку, а не давать приложение без SDK». То есть arm64-фид (desktop#34) был недостижим не из-за отсутствия тега, а из-за setup'а зависимостей. Версии берутся из `optionalDependencies` родителей, поэтому состав `node_modules` не уезжает от `app/yarn.lock`, а `--ignore-scripts` не даёт нативным пакетам ничего собирать. Для `arch=x64` шаг — no-op: его пакет уже положен обычным install. Замеры? Сняты 09.10.2026 в `docker exec gdlab` (`/work` — это же рабочее дерево). Тело шага извлекалось из YAML (`js-yaml`), а не пересказывалось, и гонялось как есть: - `TARGET_ARCH=x64` → rc=0: `@koromix/[email protected] уже установлен этим install`, `@github/[email protected] уже установлен этим install`, `Целевые нативные пакеты для linux/x64 на месте.` - `TARGET_ARCH=s390x` (цели нет ни у одного родителя) → rc=1 с текстом `::error::В koffi нет optionalDependencies для @koromix/koffi-linux-s390x…` — падение до любой установки, ничего не дописано. - Находка по ходу замера: первая версия проверки резолвила оба пакета одинаково и на x64 дала rc=1 — у `@github/copilot-sdk-linux-x64` нет поля `main` (`node -p` по его package.json: `main= undefined`), то есть `require.resolve` на нём падает даже когда пакет на месте. Остаться такой проверка означало бы сломать уже рабочий x64-прогон; проверка разделена, и после раздела x64 снова rc=0. - `prettier --check .github/workflows/release-fork-windows.yml` — «All matched files use Prettier code style»; `js-yaml` разбирает файл, шагов в `jobs.windows` стало 11 (было 10). - Механика установки проверена на третьей цели (`linux-riscv64`): `yarn add` отработал (`Done in 38.44 s`) и записал `optionalDependencies` в `app/package.json` (+3 строки) — изменение откачено `git restore`, `app/yarn.lock` не тронут. Повторять эту ветку в bind-дереве нельзя, для неё нужен detached worktree. Принятый остаток? - Живого arm64-артефакта всё ещё нет: фикс доказан на извлечённом теле шага и на хостовой архитектуре, а досстановку `win32-arm64` может подтвердить только прогон на windows-раннере. До зелёного прогона `latest-win-arm64` не существует, и задача desktop#34 остаётся открытой. - `release-fork-linux.yml` не тронут: он собирается на x64-раннере, где цель совпадает с хостом, и шаг был бы там чистым расходом. - Шум `DEP0169`/`DEP0040` от `yarn add` в этом шаге не гасится: `NODE_OPTIONS` задан на шагах install и build, а шаг досстановки добавлен после них; если прогон покажет нечитаемый лог — флаг добавляется одной строкой. Итог Архитектура цели перестаёт зависеть от архитектуры раннера: `koffi` и пакет SDK досстанавливаются под неё до сборки, а падение покрывается проверкой, которая повторяет именно тот резолв, на котором сборка и вставала. --- EN: Windows build of the fork: installing the target architecture's native packages The `arch=arm64` run of 09.10.2026 died in `yarn build:prod` before the first webpack compilation: `Cannot find module '@koromix/koffi-win32-arm64'`, rc=2. A step was added to `jobs.windows` that installs the platform packages of the target. What changed? - `.github/workflows/release-fork-windows.yml` (+65/-0): a new step `Install target-architecture native runtimes` between `yarn install` and `Build production app`, `shell: bash`, `TARGET_ARCH` from the `arch` input. The `add_target_runtime(parent, prefix)` function builds `$prefix-<process.platform>-$TARGET_ARCH`, reads the version out of the `optionalDependencies` of the already-installed parent, and, if the directory is missing, runs `yarn add --optional --ignore-platform --ignore-scripts` — the same move as upstream's `.github/actions/setup-ci-environment/action.yml:41-53`. There are two parents: `koffi` (→ `@koromix/[email protected]`) and `@github/copilot-sdk` (→ `…[email protected]`). A missing key in `optionalDependencies` is not tolerated: the step fails with `::error::` and the target name. The final check is split: `koffi` is resolved with the very `require.resolve(…, { paths: ['./app/node_modules'] })` the build performs (`script/webpack-koffi.ts:12`), while the SDK package is checked by directory. Why? Yarn 1 picks `optionalDependencies` by the machine it runs on: it compares `process.arch`, not `npm_config_arch`, so on a windows runner (x64) the arm64 platform package never appears — exactly when `app/webpack.common.ts:72` asks `script/webpack-koffi.ts` to bundle the target `koffi`, which resolves eagerly and is documented as "a missing target must fail the build rather than ship an app without the SDK". The arm64 feed (desktop#34) was unreachable because of dependency setup, not because of a missing tag. Versions come from the parents' `optionalDependencies`, so `node_modules` does not drift from `app/yarn.lock`, and `--ignore-scripts` keeps the native packages from building anything. For `arch=x64` the step is a no-op: its package is already placed by the regular install. Verified Taken 09.10.2026 in `docker exec gdlab` (`/work` is this working tree). The step body was extracted from the YAML (`js-yaml`) rather than retold, then executed verbatim: - `TARGET_ARCH=x64` → rc=0: `@koromix/[email protected] уже установлен этим install`, `@github/[email protected] уже установлен этим install`, `Целевые нативные пакеты для linux/x64 на месте.` - `TARGET_ARCH=s390x` (neither parent knows the target) → rc=1 with `::error::В koffi нет optionalDependencies для @koromix/koffi-linux-s390x…` — failing before any install, nothing written. - Finding during the measurement: the first version of the check resolved both packages the same way and returned rc=1 on x64 — `@github/copilot-sdk-linux-x64` has no `main` field (`node -p` on its package.json: `main= undefined`), so `require.resolve` fails on it even when the package is present. Leaving the check shared would have broken the already working x64 run; it is now split, and x64 returns rc=0 again. - `prettier --check .github/workflows/release-fork-windows.yml` — "All matched files use Prettier code style"; `js-yaml` parses the file and `jobs.windows` has 11 steps (was 10). - The install mechanics were checked on a third target (`linux-riscv64`): `yarn add` worked (`Done in 38.44 s`) and wrote `optionalDependencies` into `app/package.json` (+3 lines) — reverted with `git restore`, `app/yarn.lock` untouched. That branch must not be repeated in the bind-mounted tree; it needs a detached worktree. Accepted remainder - There is still no live arm64 artifact: the fix is proven on the extracted step body and on the host architecture, and only a windows-runner run can confirm the `win32-arm64` installation. Until a green run, `latest-win-arm64` does not exist and task desktop#34 stays open. - `release-fork-linux.yml` is untouched: it builds on an x64 runner where target equals host, so the step there would be pure cost. - `DEP0169`/`DEP0040` noise from `yarn add` in this step is not suppressed: `NODE_OPTIONS` is set on the install and build steps, and this step sits after them; if the log turns out unreadable, the flag is one line to add. Result The target architecture stops depending on the runner's architecture: `koffi` and the SDK package are installed for the target before the build, and the failure is covered by a check that repeats exactly the resolution the build was dying on.
… фиду
Прогон, который не публикует ничего нового, теперь заканчивается на дешёвой
проверке со ссылкой на готовый релиз, а не через девять минут сборки.
Что изменено?
- `.github/actions/release-gate/action.yml` (+109/-0, новый composite action).
Читает notes целевого тега через `gh release view --json body --jq .body`,
вытаскивает `sha` из блока `<!--fork-build-info {…}-->` и сравнивает его с
`github.sha`. При совпадении пишет `::notice::`, кладёт в
`$GITHUB_STEP_SUMMARY` ссылку `https://github.com/<repo>/releases/tag/<tag>`
и дату той сборки, отдаёт output `run=false` — основная джоба не запускается.
Вторая проверка, только для windows и только при `first-run != true`: версия
из `app/package.json` уже лежит в RELEASES тега — падение с подсказкой
поднять version. Для linux ветка версии не выполняется, потому что Squirrel
на Linux нет и сравнивать не с чем. Отсутствие блока в notes (релизы до
появления build-info) и отсутствие sha в блоке — не ошибка, собираем.
- `.github/workflows/release-fork-windows.yml` (+45/-27). Добавлен job `gate`
(ubuntu-22.04, `timeout-minutes: 10`, `permissions: contents: read`,
checkout с `fetch-depth: 1` и `submodules: false` — из дерева нужен только
app/package.json). У `windows` появились `needs: gate` и
`if: needs.gate.outputs.run == 'true'`. Удалён шаг
`Guard the feed before packaging` (27 строк): его проверка ровно та же, но
стояла после `Build production app`. Добавлен
`concurrency: release-fork-windows-<arch>` с `cancel-in-progress: false`.
- `.github/workflows/release-fork-linux.yml` (+32/-0). Тот же job `gate` с
`platform: linux` (тег `latest-linux-x64`), `needs`/`if` у джобы `linux` и
`concurrency: release-fork-linux`.
Зачем?
- Первая причина — прямая постановка: не выполнять лишние действия. Прогон
того же коммита ничего не меняет в фиде: он перезаписывает ассеты теми же
байтами и тратит до 90 минут windows-раннера. Теперь это видно в
step summary со ссылкой на загрузку.
- Вторая — собственный комментарий удалённого шага обещал «падаем здесь, до
девяти минут сборки», а шаг физически шёл после сборки, то есть обещание не
выполнялось. Перенос в gate делает его истинным заодно с первой проверкой.
- Третья — concurrency: два прогона одной архитектуры писали один тег, а
RELEASES поднимается последним именно затем, чтобы окно «клиент уже видит
новую RELEASES, а её пакет ещё не долит» совпадало с фактом долития.
Параллельный прогон растягивал бы это окно.
Замеры?
- Ядро парсера sha — семь кейсов на живых notes обоих тегов фида
(`tmp/gate-parse-test.sh`): win-live и linux-live → `c8dbb984f7…`, notes
старого образца без блока → пусто, блок без поля sha → пусто, CRLF вокруг
блока → sha читается, пустое тело → пусто. Все семь ok.
- Всё тело шага исполнено в gdlab на стабе `gh`, девять веток
(`tmp/gate-sim.sh`, финал «ВСЕ ВЕТКИ gate ЗЕЛЁНЫЕ»): тот же sha →
`run=false` при rc=0; тот же кейс → в summary есть
`releases/tag/latest-win-x64`; новый sha и та же версия → rc=1 с текстом
«уже опубликована»; новый sha и другая версия → `run=true`; нет тега без
first_run (windows) → rc=1 «включи вход first_run»; first_run → `run=true`;
нет тега (linux) → `run=true`; linux с тем же sha → `run=false`; notes без
блока → `run=true`.
- Дефект приёмки: `description: 'true' — …` в plain-скаляре ломал YAML-разбор
(«bad indentation of a mapping entry (14:25)») — переведено в block scalar
`>-`, после чего js-yaml разбирает файл.
- Ещё один пойманный дефект: первая версия симулятора теряла код возврата
(`rc=$?` читался после `echo`), из-за чего ветки с падением выглядели
зелёными. Симулятор переписан: rc пишется в лог сразу за подоболочкой.
- js-yaml разбирает все три файла: `gate` по 2 шага в каждом workflow,
windows — 10 шагов (было 11, минус перенесённый Guard the feed), linux — 8
шагов (состав не менялся), `needs: gate` и `if:` на месте.
- prettier после `--write`: «All matched files use Prettier code style».
- `scan_leaks.py` по трём файлам: CLEAN.
Принятый остаток?
- Симуляция не подменяет живой прогон: реальные `gh release view/download` и
сам факт «вторая джоба помечена skipped» снимаются только на github.com
после пуша.
- Sha-проверка не различает «опубликован тот же коммит» и «опубликован тот же
коммит, но ассеты биты». Для второго случая этот workflow теперь не
запускается — обход: долить ассеты вручную через `gh release upload` либо
сделать любой новый коммит.
- `concurrency` относится к прогону файла, поэтому вызов из workflow-обёртки
(следующая задача) попадёт в группу самой обёртки, а не дочернего файла.
Итог: дешёвые проверки переехали до сборки, пустой прогон заканчивается за
минуту с ссылкой на релиз, а гонка за один тег фида закрыта concurrency.
---
RU translation of the subject: Fork release workflows: pre-build release gate
and feed-scoped concurrency
Changed
- `.github/actions/release-gate/action.yml` (+109, new composite action):
reads the target tag's release notes with `gh release view --json body`,
extracts `sha` from the `<!--fork-build-info {…}-->` block and compares it
with `github.sha`. On a match it emits `::notice::`, writes the download
link and that release's date into `$GITHUB_STEP_SUMMARY` and outputs
`run=false`, so the build job never starts. Second check, windows only and
only when `first-run != true`: the version in `app/package.json` is already
in the tag's RELEASES — fail with a hint to bump it. The version branch is
skipped for linux because there is no Squirrel there. A missing build-info
block, or a block without sha, is not an error — build anyway.
- `.github/workflows/release-fork-windows.yml` (+45/-27): new `gate` job
(ubuntu-22.04, 10 minute timeout, `contents: read`, checkout with
`fetch-depth: 1` and `submodules: false`); `windows` gains
`needs: gate` and `if: needs.gate.outputs.run == 'true'`; the
`Guard the feed before packaging` step (27 lines) is removed — same check,
but it used to run after `Build production app`; added
`concurrency: release-fork-windows-<arch>` with `cancel-in-progress: false`.
- `.github/workflows/release-fork-linux.yml` (+32): same `gate` job with
`platform: linux` (`latest-linux-x64`), `needs`/`if` on the `linux` job and
`concurrency: release-fork-linux`.
Why? A rerun of an already published commit changes nothing in the feed — it
reuploads the same bytes and burns up to 90 minutes of a Windows runner. The
removed step's own comment promised to fail "before nine minutes of build"
while the step physically ran after the build; moving it into the gate makes
that true. Concurrency closes the window where two runs of one architecture
rewrite the same tag while clients are still downloading from it.
Measured
- sha parser: 7 cases over the live notes of both feed tags
(`tmp/gate-parse-test.sh`) — all ok.
- Whole step body executed in gdlab against a `gh` stub, 9 branches
(`tmp/gate-sim.sh`, "ВСЕ ВЕТКИ gate ЗЕЛЁНЫЕ"): same sha → run=false rc=0 and
the release link in the summary; new sha + same version → rc=1; new sha +
other version → run=true; missing tag on windows without first_run → rc=1;
first_run → run=true; missing tag on linux → run=true; linux same sha →
run=false; notes without the block → run=true.
- Acceptance defects found and fixed: `description: 'true' — …` as a plain
scalar broke YAML parsing (moved to a `>-` block scalar), and the first
simulator read `$?` after an `echo`, which made failing branches look green.
- js-yaml parses all three files: gate has 2 steps per workflow, windows has
10 steps (was 11, minus the moved guard), linux still 8.
- prettier: "All matched files use Prettier code style"; `scan_leaks.py` CLEAN.
Accepted residue
- Live runs on github.com still have to confirm the real `gh` calls and that
the build job is reported as skipped.
- The sha check cannot tell "same commit already published" from "same commit
published with broken assets"; for the latter, upload assets manually or
make a new commit.
- `concurrency` binds to a workflow run, so a call from a wrapper workflow
(next task) lands in the wrapper's group, not the child file's.
…сборок
Публикация всех фидов одной кнопкой: появились Release Fork (All platforms) на
три сборки и Release Fork (Windows all arches) на обе Windows-архитектуры, а
вызываемые файлы перестали различать ручной запуск и вызов из другого workflow.
Что изменено?
- `.github/workflows/release-fork-windows.yml` (+51/-16):
- `on:` дополнен веткой `workflow_call` с входами `arch` (string, required) и
`first_run` (boolean, default false) — без неё `uses:` на этот файл не
запустился бы;
- оба входа свёрнуты в переменные прогона `ARCH` и `FIRST_RUN` в env-шапке, и
15 обращений к `github.event.inputs.*` переведены на них: восемь на
`${{ env.ARCH }}` (tag гейта, `TARGET_ARCH` досстановки нативов,
`npm_config_arch` и `TARGET_ARCH` сборки, `npm_config_arch` пакета,
`DESKTOP_UPDATES_URL`, путь к exe в pwsh-шаге, `BUILD_INFO_ARCH`), два на
`${{ env.FIRST_RUN }}` (вход гейта и `DESKTOP_SKIP_DELTA`), а три остались с
явным `inputs.arch || github.event.inputs.arch` — в `concurrency.group`,
в `name:` джобы и в самой env-шапке, где контекст `env` недоступен;
- в bash-телах `Zip portable bundle` и `Publish to GitHub Release` убраны
присваивания `ARCH="${{ … }}"`/`TAG="latest-win-${{ … }}"`: шаг берёт
`$ARCH` из окружения прогона и сам собирает тег.
- `.github/workflows/release-fork-linux.yml` (+3/-0): `on:` дополнен
`workflow_call:` без входов — обёртке передавать нечего, у платформы один тег
фида и одна архитектура.
- `.github/workflows/release-fork-windows-all.yml` (+49/-0, новый файл):
`name: Release Fork (Windows all arches)`, один job с
`strategy.matrix.arch: [x64, arm64]` и `fail-fast: false`,
`uses: ./.github/workflows/release-fork-windows.yml`,
`with: {arch: ${{ matrix.arch }}, first_run: ${{ inputs.first_run == true }}}`,
workflow-level `permissions: contents: write` и
`concurrency: release-fork-windows-all`.
- `.github/workflows/release-fork-all.yml` (+47/-0, новый файл):
`name: Release Fork (All platforms)` — тот же windows-job по матрице плюс
отдельный `linux`-job с `uses: ./.github/workflows/release-fork-linux.yml`;
вместе это три сборки за один прогон.
Зачем?
- Прогон всех фидов был тремя заходами в UI с выбором архитектуры; просили один
запуск на три сборки и отдельный на две Windows-арки.
- Нормализация входов через env нужна, чтобы тело прогона читалось одинаково
при dispatch и при вызове. Здесь была ловушка с типами:
`github.event.inputs.*` — всегда строки, а `inputs.*` при workflow_call —
boolean, и полагаться на приведение типа в `== 'true'` не стали. Поэтому
`FIRST_RUN` собирается положительным условием: `'true'` только если значение
истинно хотя бы в одном из двух представлений, иначе `'false'`.
- `permissions: contents: write` в обёртке обязательно: вызываемый workflow не
может расширить права прогона, и его собственный `contents: write` дал бы
меньше, чем нужно для публикации релиза.
- `fail-fast: false` — падение arm64 не должно отменять начатый x64: фиды
независимы, и половина работы стоит дороже целой.
Замеры?
- `tmp/wf-check.cjs` — локальная замена `gh workflow run --debug`, которой у
нас нет: разбирает YAML всех четырёх файлов и для каждого вызова сверяет
переданные `with:`-ключи с `on.workflow_call.inputs` цели (нет лишних,
обязательные переданы, boolean передаётся выражением `== true`), плюс
проверяет, что `github.event.inputs` остался только в шапке. Финал —
«СВЁРКА ОБЁРТОК ЗЕЛЁНАЯ»: `release-fork-windows-all/windows → windows.yml`
(with = arch, first_run; объявления `arch:string,required`,
`first_run:boolean`), то же у `release-fork-all/windows`, и
`release-fork-all/linux → linux.yml` (with = [], []).
- Пойманный меркой дефект самого чекера: пустой `workflow_call:` js-yaml
отдаёт как `null`, и первая версия считала это отсутствием объявления —
ложное падение на linux-вызове. Проверка переведена на
`'workflow_call' in on`; сама форма подтверждена доками GitHub, где
`on: workflow_call:` приводится без подсвойств.
- `bash -n` по всем извлечённым из YAML телам шагов обоих workflow: 13 шагов
ok; pwsh-шаг `Guard the shortcut name` под `bash -n` не проверяется (для
него синтаксис другой), правка в нём — только подстановка `env.ARCH`.
- Исполнение шага `Zip portable bundle` с `ARCH` из окружения: при x64 и arm64
шаг печатает `::error::Нет portable-бандла
dist/GitHubDesktopL10n-win32-x64` и `…-win32-arm64` — переменная доходит до
тела, тег и пути собираются из неё.
- prettier: после правок `--write` и `--check` по четырём файлам — «All
matched files use Prettier code style». Prettier перенёс значение `FIRST_RUN`
на вторую строку; фолдинг plain-скаляра вставляет пробелы между `&&` и
`'true'`, и внутри `${{ }}` это безопасно — в отличие от случая
`DESKTOP_UPDATES_URL`, где тот же фолдинг дал бы пробел внутри пути.
- `scan_leaks.py` по четырём файлам: CLEAN.
Принятый остаток?
- Живого прогона обёрток не снято: `uses:` на свой репозиторий, фактическая
передача boolean и состояние «gate прошёл, сборка skipped» видны только на
github.com после пуша.
- GitHub не позволяет параметризовать путь в `uses:`, поэтому job с матрицей
повторяется в двух обёртках десятью строками — это ограничение движка, а не
недосмотр.
- При вызове из обёртки `github.event` сохраняет payload родительского прогона,
то есть его `inputs.first_run` может быть истинным, даже когда обёртка
передала false. Разойтись этому негде: обе обёртки передают вход явно
(`${{ inputs.first_run == true }}`), а положительное условие FIRST_RUN даёт
то же значение в обоих случаях.
- Имена новых workflow и команды запуска в README и docs/fork-releases.md —
следующий коммит.
Итог: три сборки запускаются одним прогоном, обе Windows-архитектуры — вторым,
а тела прогонов больше не зависят от способа запуска.
---
RU translation of the subject: Fork release workflows: workflow_call support
and two wrapper workflows (all platforms / both Windows arches)
What changed
- `release-fork-windows.yml` (+51/-16): `on:` gained a `workflow_call` branch
declaring `arch` (string, required) and `first_run` (boolean, default false);
both inputs are folded into run-level `ARCH` and `FIRST_RUN` env variables and
the 15 `github.event.inputs.*` reads now use them — eight via
`${{ env.ARCH }}`, two via `${{ env.FIRST_RUN }}`, three keeping the explicit
`inputs.arch || github.event.inputs.arch` form where the `env` context is not
available (`concurrency.group`, the job `name:`, the env block itself). The
zip and publish steps no longer assign `ARCH`/`TAG` from expressions; they
read `$ARCH` from the run environment.
- `release-fork-linux.yml` (+3): `on:` gained `workflow_call:` with no inputs —
the wrapper has nothing to pass, the platform has one feed tag and one
architecture.
- `release-fork-windows-all.yml` (+49, new): "Release Fork (Windows all
arches)" — one job with `strategy.matrix.arch: [x64, arm64]`,
`fail-fast: false`, `uses: ./.github/workflows/release-fork-windows.yml`,
run-level `permissions: contents: write`, own concurrency group.
- `release-fork-all.yml` (+47, new): "Release Fork (All platforms)" — the same
matrix job plus a separate `linux` job calling `release-fork-linux.yml`, i.e.
three builds in one run.
Why
- Publishing every feed used to be three separate UI runs; the request was one
run for all three builds and another for both Windows architectures.
- Normalising inputs into env makes the job body identical for dispatch and for
a call. The trap: `github.event.inputs.*` are always strings while
`inputs.*` under workflow_call are booleans, so instead of relying on
coercion in `== 'true'`, `FIRST_RUN` is built with a positive condition and
yields 'true' only when the value is truthy in either representation.
- `permissions: contents: write` must be set on the wrapper: a called workflow
cannot widen the run's permissions.
- `fail-fast: false` keeps a published x64 feed from being cancelled because
arm64 failed.
Measured
- `tmp/wf-check.cjs`, a local stand-in for the unavailable
`gh workflow run --debug`: parses all four YAML files, matches each wrapper's
`with:` keys against the callee's `on.workflow_call.inputs` (no extra keys,
required ones passed, boolean passed as `== true`) and asserts
`github.event.inputs` survives only in the header. Result: "СВЁРКА ОБЁРТОК
ЗЕЛЁНАЯ" with windows-all/windows → windows.yml, all/windows → windows.yml
and all/linux → linux.yml (with = [], []).
- The check itself caught a bug: js-yaml yields `null` for an argument-less
`workflow_call:`, so the first version falsely failed the linux call; fixed
to test key presence, and the empty form is exactly what the GitHub docs show.
- `bash -n` over every step body extracted from the YAML: 13 steps ok; the pwsh
step is not covered by `bash -n` and only changed its `env.ARCH` insertion.
- Executing the zip step with `ARCH` in the environment prints
`dist/GitHubDesktopL10n-win32-x64` / `-arm64`, proving the variable reaches
the body.
- prettier after `--write`: "All matched files use Prettier code style" for all
four files. prettier wrapped the `FIRST_RUN` value onto a second line; the
plain-scalar folding inserts spaces around `&&`, which is harmless inside
`${{ }}` — unlike the `DESKTOP_UPDATES_URL` case where folding would have
put a space in the path.
- `scan_leaks.py` CLEAN over the four files.
Accepted residue
- No live wrapper run yet: `uses:` against this repository, real boolean
passing and the "gate ran, build skipped" state are only observable on
github.com after a push.
- `uses:` cannot be templated, so the matrix job is duplicated in both wrappers
(10 lines) — an engine limitation, not an oversight.
- Under a call, `github.event` still carries the parent run's inputs, so
`FIRST_RUN`'s fallback could in principle see a different value than the one
passed; both wrappers always pass the input explicitly, so the two agree.
- README and docs/fork-releases.md updates for the new names are a separate
commit.
…node
Прогон перестает скачивать заново то, что уже лежит в кеше: ключ считается по
всем lock-файлам дерева, а в кеш добавился ещё и архив Electron.
Что изменено?
- `.github/workflows/release-fork-windows.yml` (+39/-1):
- у шага `actions/setup-node@v6` убран `cache: yarn`;
- в job windows добавлен env: `YARN_CACHE_FOLDER` и `electron_config_cache` —
обе на `${{ runner.temp }}/caches/...`;
- перед setup-node встал шаг `Restore download caches`
(`actions/cache@v6`) с `path: ${{ runner.temp }}/caches`,
`key: <runner.os>-deps-<архитектура>-<hash трёх глобов по lock-файлам>` и
`restore-keys: <runner.os>-deps-<архитектура>-`.
- `.github/workflows/release-fork-linux.yml` (+20/-1): то же, только без
суффикса архитектуры — у linux одна архитектура и один фид.
Зачем?
- `cache: yarn` у setup-node хеширует только КОРНЕВОЙ yarn.lock, а тяжёлая
часть зависимостей лежит в app/yarn.lock: изменение app-лока при неизменном
корневом давало попадание в устаревший слот (и докачку дельты), а изменение
корневого — полный промах и скачивание всего заново. Новый ключ считается по
`yarn.lock`, `app/yarn.lock` и `vendor/**/yarn.lock`, то есть по всем пяти
lock-файлам, что есть в дереве.
- Архив Electron (порядка ста мегабайт за прогон) в yarn-кеш не попадает
вообще — он скачивается post-install'ом в свою директорию. Директория задана
явно, поэтому тот же шаг кеша закрывает и её.
- Суффикс архитектуры нужен из-за порядка записи: actions/cache пишет в слот
только первым прогоном, а arm64-прогон досстанавливает пакеты, которых в
x64-кеше нет (шаг Install target-architecture native runtimes). Без суффикса
x64 занял бы общий слот, и arm64-нативы не кэшировались бы никогда.
- `restore-keys` оставлен префиксом без хеша: смена одного lock-файла тогда
добирает недостающее, а не качает гигабайт заново.
Замеры?
- Почему директории заданы явно, а не «обычным путём»: `yarn cache dir` без
переменной в gdlab (09.10.2026, вендорённый yarn 1.21.1 из .yarnrc) даёт
`/usr/local/share/.cache/yarn/v6`, а не `~/.cache/yarn`. Кеш по угаданному
пути молча сохранял бы пустую папку. С переменной тот же вызов отдаёт
`/tmp/yc-probe/v6` — то есть `YARN_CACHE_FOLDER` вендорённая версия уважает.
- Для Electron мерка по коду: `node_modules/electron/install.js:44` передаёт
`cacheRoot: process.env.electron_config_cache` прямо в `downloadArtifact`.
- Glob'ы проверены по фактическому списку файлов: `git ls-files` даёт пять
lock-файлов (`yarn.lock`, `app/yarn.lock` и три в `vendor/*`), и перечисленные
в ключе шаблоны покрывают ровно 5 из 5, пропущенных нет (minimatch в gdlab).
От однообразного `**/yarn.lock` отказалась в пользу явного списка: матчить ли
`**/` файл в корне — поведение реализации glob в @actions/glob, а не
задокументированная гарантия, от которой зависит инвалидация кеша.
- Мерка против главной ловушки YAML: prettier переносит длинные значения, а
фолдинг plain-скаляра вставляет пробел на месте переноса — для `key` это
значило бы другое имя слота. Разбор js-yaml показывает, что в `path`, `key` и
`restore-keys` обоих файлов пробелы остались только внутри `${{ }}`
(«КЛЮЧИ И ГЛОБЫ ЧИСТЫЕ»), где они для выражения безвредны.
- prettier: «All matched files use Prettier code style»; `tmp/wf-check.cjs`
(сверка обёрток) — зелёный; `scan_leaks.py` по обоим файлам — CLEAN.
Принятый остаток?
- Экономию в секундах и мегабайтах локально не измерить: виден только живой
прогон — строки `Cache hit` / `Cache saved` в шаге кеша после пуша.
- Если вендорённый yarn когда-нибудь перестанет читать `YARN_CACHE_FOLDER`,
кеш станет пустым молча: сборка от этого не сломается (просто снова
скачает), а признак — размер кеша в post-шаге около нуля.
- Кеш — это хранилище архивов, а не готовые `node_modules`: yarn 1 всё равно
собирает дерево из кеша локально. Ускорение даёт отказ от сетевых скачиваний,
а не от распаковки.
- `cache: yarn` убран только в двух форк-файлах. Апстримные `ci.yml` и
`.github/actions/setup-ci-environment/action.yml` не тронуты, чтобы не
плодить конфликты при следующем мерже апстрима — там тот же дефект остаётся.
Итог: два релизных прогона делят кеш по чести (ключ зависит от всех lock-файлов
и от архитектуры), а Electron перестаёт качаться каждый раз.
---
RU translation of the subject: Fork release workflows: download caches instead
of setup-node's `cache: yarn`
What changed
- `release-fork-windows.yml` (+39/-1): dropped `cache: yarn` from
`actions/setup-node@v6`; added job env `YARN_CACHE_FOLDER` and
`electron_config_cache`, both under `${{ runner.temp }}/caches/...`; inserted
a `Restore download caches` step (`actions/cache@v6`) before setup-node with
`path: ${{ runner.temp }}/caches`, a key of
`<os>-deps-<arch>-<hash of the three lock globs>` and `restore-keys` down to
`<os>-deps-<arch>-`.
- `release-fork-linux.yml` (+20/-1): the same, without the architecture suffix
(one architecture, one feed).
Why
- setup-node's `cache: yarn` hashes only the ROOT yarn.lock while the heavy
dependencies live in app/yarn.lock: an app-lock change kept a stale slot, a
root-lock change threw the whole cache away. The new key covers all five lock
files tracked in the tree.
- The Electron archive (~100 MB per run) never enters the yarn cache; naming
its directory explicitly lets the same cache step cover it.
- The architecture suffix follows from write order: actions/cache only saves a
slot from the first run, and the arm64 run installs packages an x64 cache
never saw — without the suffix arm64 natives would never be cached.
- `restore-keys` stays a prefix without the hash, so changing one lock file
tops the cache up instead of re-downloading a gigabyte.
Measured
- Why the directories are explicit: `yarn cache dir` with no variable in gdlab
(vendored yarn 1.21.1 via .yarnrc, 09.10.2026) returns
`/usr/local/share/.cache/yarn/v6`, not `~/.cache/yarn` — guessing would have
silently cached an empty folder. With the variable the same call returns
`/tmp/yc-probe/v6`.
- Electron, read from the code: `node_modules/electron/install.js:44` passes
`cacheRoot: process.env.electron_config_cache` straight to `downloadArtifact`.
- Globs checked against the real file list: `git ls-files` yields five lock
files and the three patterns in the key cover 5/5, none missed (minimatch in
gdlab). The single `**/yarn.lock` was replaced by an explicit list because
whether `**/` matches a root file is @actions/glob implementation detail, not
a documented guarantee worth tying cache invalidation to.
- Guard against the main YAML trap: prettier wraps long values and plain-scalar
folding inserts a space at the break, which would silently change the cache
slot name. js-yaml shows `path`, `key` and `restore-keys` in both files
contain spaces only inside `${{ }}` ("КЛЮЧИ И ГЛОБЫ ЧИСТЫЕ"), where they are
harmless for the expression.
- prettier: "All matched files use Prettier code style"; the wrapper check
(`tmp/wf-check.cjs`) is green; `scan_leaks.py` CLEAN on both files.
Accepted residue
- Seconds and megabytes saved cannot be measured locally: only a live run shows
`Cache hit` / saved-cache lines after the push.
- Should the vendored yarn ever stop honouring `YARN_CACHE_FOLDER`, the cache
goes empty silently — the build still succeeds, it just downloads again, and
the symptom is a post-step cache size near zero.
- The cache stores archives, not finished `node_modules`: yarn 1 still lays out
the tree locally. The win is skipping network fetches, not extraction.
- `cache: yarn` was removed only in the two fork files. Upstream `ci.yml` and
`.github/actions/setup-ci-environment/action.yml` were left alone to avoid
extra merge conflicts on the next upstream sync — the same flaw stays there.
Тексты догнали код: в README и docs/fork-releases.md описаны обёртки, ранний
пропуск уже опубликованного коммита и шаг кеша вместо `cache: yarn`.
Что изменено?
- `docs/fork-releases.md` (+95/-8):
- в блоке запуска добавлены две команды — `release-fork-windows-all.yml` и
`release-fork-all.yml`;
- новый абзац про два способа запуска (`workflow_dispatch` и `workflow_call`)
и про три детали обёрток: `uses:` нельзя параметризовать выражением
(поэтому win-джоба с матрицей продублирована в обоих файлах), `fail-fast:
false`, workflow-level `permissions: contents: write` и своя группа
`concurrency`;
- отдельный абзац про `concurrency` одиночных прогонов: группа по архитектуре,
`cancel-in-progress` выключен;
- перечень «Что делает прогон» начинается с джобы `gate`: перечислены все её
исходы, включая `run=false` со ссылкой на готовый релиз в step summary и
`::notice::` в логе. Пункт про шаг `Guard the feed before packaging` удалён
из середины списка — тот шаг переехал в gate и в сборке его больше нет,
об этом теперь сказано прямо;
- новая секция «Кеши загрузок»: явные `YARN_CACHE_FOLDER` и
`electron_config_cache`, ключ по пяти lock-файлам, архитектура в ключе,
`restore-keys` префиксом, electron-архив, принятое решение не трогать
апстримные `ci.yml` и `setup-ci-environment/action.yml`;
- в «Где взять собранное» указан способ получить `latest-win-arm64` обёртками.
- `README.md` (+3/-1): строка «Релизы» таблицы «Что здесь своё» пересказана под
четыре workflow и gate; в таблице «Как собрать» две новые строки с командами
обёрток.
- `gdlab/release.sh` (+7/-0): в шапке и в подсказке запрещённой цели названы
обёртки, а локальная linux-сборка противопоставлена публикации в тег фида.
Зачем?
- Три коммита подряд (`588d489be9`, `8d9a0d3429`, `7755f4f38b`) меняли поведение
прогонов, а документация описывала старый порядок шагов: пункт про `Guard the
feed` стоял после сборки, хотя проверка давно происходит до неё, и ни слова не
было про пропуск уже опубликованного коммита. Для человека, который запускает
релиз вручную, расхождение текста с консолью прогона — это лишние девять минут
и один ненужный тег.
- Команды обёрток без таблицы «Как собрать» пришлось бы искать по
`.github/workflows/`, а смысл `first_run` в них (вход применяется к обеим
архитектурам сразу) из имён файлов не читается.
Замеры?
- `python tmp/scan_leaks.py README.md docs/fork-releases.md gdlab/release.sh` →
SCAN CLEAN (gdlab, 09.10.2026).
- `bash -n gdlab/release.sh` → OK: правки только в комментариях и в строках
`log`, синтаксис не задет.
- Markdown намеренно не выравнивался prettier'ом: в `.prettierignore` есть строка
`*.md`, поэтому `proseWrap: always` к этим файлам не применяется и
переформатирование не нужно (проверено по самому `.prettierignore`, а не по
памяти о прошлых прогонах).
- Длины строк меряла по символам, а не байтам (в awk `length` считает байты, и
кириллица даёт ложные 120-140): в файле уже есть строки 81-89 символов, мои
новые — не длиннее 81, то есть конвенцию переноса не ломают.
- Концовки строк: `.gitattributes` фиксирует `/gdlab/*.sh eol=lf`, а numstat
диффа мелкий (3/1, 95/8, 7/0) — значит ни один файл не переписан целиком из-за
CRLF, изменены только перечисленные строки.
Принятый остаток?
- Ни строки `Cache hit`, ни вид step summary после пропуска прогона ещё не
сняты живым запуском: описание gate и кешей выведено из кода
`.github/actions/release-gate/action.yml` и из workflow-файлов. Если живой
прогон покажет другое (например, разметку summary иначе), секции правятся
вторым коммитом.
- В README не перенесены команды запуска каждой отдельной архитектуры — они и
дальше живут в `docs/fork-releases.md`, таблица лишь ссылается на документ.
- Апстримная часть README (установка для разработки, структура проекта) не
тронута.
Итог: документация описывает прогон так, как он теперь выполняется, — gate до
сборки, две кнопки на все фиды и кеш, который не надо докачивать каждый раз.
---
RU translation of the subject: Release documentation: four workflows, the gate
skip and download caches
What changed
- `docs/fork-releases.md` (+95/-8): added the two wrapper commands to the run
block; a new paragraph on the two launch modes (`workflow_dispatch` and
`workflow_call`) and the three wrapper details (`uses:` cannot be
parameterized by an expression, which is why the matrix job is duplicated;
`fail-fast: false`; workflow-level `permissions: contents: write` plus its own
`concurrency` group); a paragraph on per-architecture `concurrency` with
`cancel-in-progress` off; the "what the run does" list now starts with the
`gate` job and every one of its outcomes, including `run=false` with the
release link in the step summary and the `::notice::` line — the
`Guard the feed before packaging` item was removed from the middle of the list
because that step moved into the gate and no longer exists in the build; a new
"Download caches" section covering the explicit `YARN_CACHE_FOLDER` and
`electron_config_cache`, the five-lock-file key, the architecture suffix,
prefix `restore-keys`, the Electron archive and the decision to leave upstream
`ci.yml` and `setup-ci-environment/action.yml` alone; the "where to get a
build" section now names the wrappers as a way to produce `latest-win-arm64`.
- `README.md` (+3/-1): the "Releases" row of the "what is ours" table rewritten
for four workflows plus the gate; two new rows with the wrapper commands in the
build table.
- `gdlab/release.sh` (+7/-0): the header and the message of the forbidden target
name the wrappers, and the local linux build is contrasted with publishing to
the feed tag.
Why
- Three commits (`588d489be9`, `8d9a0d3429`, `7755f4f38b`) changed run behavior
while the docs still described the old step order: the `Guard the feed` item
sat after the build although the check has long happened before it, and the
skip of an already published commit was not mentioned at all. For whoever
triggers a release by hand, text disagreeing with the run console costs nine
minutes and one pointless tag.
- Without the build table the wrapper commands would have to be found by reading
`.github/workflows/`, and the meaning of `first_run` there (one input applied
to both architectures at once) does not follow from the file names.
Measured
- `scan_leaks.py` over all three files → CLEAN (gdlab, 09.10.2026).
- `bash -n gdlab/release.sh` → OK: only comments and `log` lines changed.
- The markdown was deliberately not run through prettier: `.prettierignore`
contains `*.md`, so `proseWrap: always` does not apply and no reflow is needed
(checked against the ignore file itself, not remembered from earlier runs).
- Line lengths measured in characters rather than bytes — awk's `length` counts
bytes and Cyrillic inflates them to 120-140: the file already carries 81-89
character lines, none of mine exceeds 81.
- Line endings: `.gitattributes` pins `/gdlab/*.sh eol=lf`, and the diff numstat
is small (3/1, 95/8, 7/0), so no file was rewritten wholesale by a CRLF
conversion.
Accepted residue
- Neither a `Cache hit` line nor the rendered skip summary has been observed in
a live run yet: the gate and cache descriptions were derived from
`.github/actions/release-gate/action.yml` and the workflow files. If a live run
differs, these sections get a second commit.
- The README does not repeat per-architecture commands; they stay in
`docs/fork-releases.md`, the table only points at the document.
- The upstream half of the README (dev setup, project layout) is untouched.
…жобы
Что изменено?
В `.github/workflows/release-fork-windows.yml` и
`.github/workflows/release-fork-linux.yml` блок `env:` сборочной джобы, где
`YARN_CACHE_FOLDER` и `electron_config_cache` были собраны из `${{ runner.temp }}`,
заменён первым шагом «Point the download caches at the runner temp»: он делает
`mkdir -p "$RUNNER_TEMP/caches"` и кладёт обе переменные в `$GITHUB_ENV`. В
windows-шаге значения собраны через обратные слэши (`$RUNNER_TEMP\caches\yarn`),
в linux — через прямые; шаг явно объявлен `shell: bash`, потому что без
`defaults` на windows-раннере дефолтный shell — pwsh. Абзац «Кеши загрузок» в
`docs/fork-releases.md` переписан под новый механизм.
Зачем?
Вчера эти два файла были невалидны: GitHub отверг их на компиляции, и ни одна
джоба не стартовала. Доказательство — прогоны #1 от 2026-10-08T22:54Z
(runs 37856325394 и 37856326757, event push, conclusion failure) с пустым
массивом jobs и аннотацией «Invalid workflow file: .github/workflows/
release-fork-linux.yml — (Line: 60, Col: 26): Unrecognized named-value:
'runner'. Located at position 1 within expression: runner.temp» и тем же для
строки 61. Контекст `runner` существует только внутри шагов; в `jobs.<id>.env`
его нет. То есть вся партия кеширования (7755f4f) была нерабочей не
«косметически», а полностью — релизный прогон падал до первого `yarn install`.
Прежняя приёмка этого не поймала: `wf-check.cjs` сверял состав `with`/`inputs`
обёрток, `bash -n` — тела шагов, prettier — форматирование, и ни одна мерка не
смотрела на то, в каких полях какой контекст разрешён.
Замеры?
- `tmp/wf-contexts.cjs` — новая мерка: обходит YAML и для `env` верхнего уровня,
`concurrency.*`, `jobs.<id>.{name,if,runs-on,env,concurrency,permissions,
defaults,outputs,container,services,timeout-minutes}` сверяет каждый
идентификатор внутри `${{ }}` с таблицей доступных контекстов. На исправленных
пяти файлах (четыре workflow + composite action) — «OK: запрещённых контекстов
нет, файлов 5», rc=0. На версии тех же файлов из HEAD ловит ровно те четыре
позиции, что назвал GitHub (по две в каждом), — мерка проверена на контрольной
находке, а не на пустом месте.
- `tmp/wf-steps.cjs` — `bash -n` по всем bash-шагам: 12 шагов, 0 синтаксических
ошибок; контроль на синтетическом незакрытом `if` даёт BAD, то есть проверка
не холостая. Shell шага определяется как у GitHub: `step.shell`, иначе
`defaults`, иначе дефолт раннера (linux — bash, windows — pwsh); без этого
мерка молча пропускала все linux-шаги.
- Экранирование снято побайтово: `RUNNER_TEMP='D:\a\_temp'` и `echo` из шага
дают `D:\a\_temp\caches\yarn` (od -c показывает одиночные обратные слэши).
- `prettier --check` по четырём yml — чисто; `git diff --check` — пусто;
`scan_leaks.py` по трём файлам — SCAN CLEAN.
Принятый остаток?
Живого зелёного прогона после фикса нет: вывод подтверждён статически, а
фактически его проверит только следующий запуск релизного workflow (он же покажет
`Cache hit` и форму step summary). Одно разрешение в мерке шире документации —
`inputs` в `env` верхнего уровня: компилятор GitHub перечисляет все ошибки разом
(в аннотации их две, обе про `runner`), а про `inputs` он промолчал, поэтому
считаю его допустимым, а не жду следующего пуша ради подтверждения.
Итог: 3 файла — два workflow и документ о релизах.
---
RU: Fork release workflows: the cache directories are written by a step, not by the job's env
What changed? In both platform workflows the build job's `env:` block, which built
`YARN_CACHE_FOLDER` and `electron_config_cache` from `${{ runner.temp }}`, is
replaced by a first step that creates `$RUNNER_TEMP/caches` and exports both
variables through `$GITHUB_ENV` (backslashes on Windows, forward slashes on
Linux; the step declares `shell: bash` because without `defaults` the Windows
runner's default shell is pwsh). The "Download caches" section of
docs/fork-releases.md now describes that mechanism.
Why? Both files were invalid: GitHub rejected them at compile time and no job
ever started — run #1 of 2026-10-08T22:54Z (runs 37856325394, 37856326757, event
push, conclusion failure) has an empty jobs array and the annotation
"Unrecognized named-value: 'runner'" at lines 60 and 61. The `runner` context
only exists inside steps, never in `jobs.<id>.env`, so the whole caching batch
(7755f4f) was broken outright, not cosmetically. The previous acceptance
missed it because no check looked at which context is allowed in which field.
Measurements? New `tmp/wf-contexts.cjs` walks the YAML and validates every
`${{ }}` identifier in `env`, `concurrency.*` and the job-level fields against
the context availability table: clean on the five fixed files, and on the HEAD
version it reports exactly the four positions GitHub named — the measure is
proven against a known finding. `tmp/wf-steps.cjs` runs `bash -n` over 12 bash
steps with 0 errors and flags a synthetic unterminated `if`. The escaping was
read byte by byte (`od -c`), prettier and `git diff --check` are clean,
`scan_leaks.py` reports SCAN CLEAN.
Accepted residue? No live green run after the fix yet — only static evidence;
the next release workflow run will confirm caching and the step summary. The
measure allows `inputs` in the top-level `env`, which is wider than the
documentation, because the GitHub compiler lists all errors at once and stayed
silent about it.
Что изменено? - `AGENTS.md` (+34/-0): теперь англоязычный CI-свод форка — две строки о самом форке (локализационное ядро `app/src/lib/l10n` и каталоги `app/locales/en.json`, `ru.json`, `uk.json`), затем обязательные проверки по фактическим скриптам `package.json`: `yarn lint` (он же подхватывает `--rulesdir ./eslint-rules` через `yarn eslint`, поэтому отдельный bare-eslint вызов не предписан), `yarn test` с точечной формой `yarn test app/test/unit/<file>-test.ts`, `yarn test:script`, `yarn test:eslint`, четыре `yarn l10n:*`, `yarn check:eslint` и `yarn markdownlint`; дальше указатели на `.github/copilot-instructions.md`, `docs/contributing/setup.md`, `docs/contributing/styleguide.md` и `docs/fork-releases.md` и одна строка о том, что заметки агентов намеренно вне дерева. - Блок «Медленные Node-тесты» (17 строк старого файла) из `AGENTS.md` убран и перенесён дословно в `agents/instructions/node-tests.md` (1721 байт, игнорируется правилом `.gitignore:33`) — сверка `diff` строк 3-17 прежнего файла с этим документом дала пустой вывод. - `agents/instructions/commit-ritual.md` (16 строк, 1509 байт, вне git): правило единой поверхности тел коммита — только `.git/MSG_<slug>` на время прогона, затем `msg-<hash>.txt` в хранилище сессии; записаны фактические остатки 09.10: 27 файлов в `.git/MSG_*` и 13 в `tmp/MSG_*`. Зачем? Файл был в игноре, и сторонний контрибьютор или CI не могли узнать, какие проверки обязан пройти коммит в форке с собственным слоем переводов; при этом русские ритуалы агента не должны попадать в публичное дерево форка и в чужие диффы. Замеры? - `git check-ignore -v AGENTS.md` → пустой вывод, rc=1: файл больше не игнорируется. - `git diff HEAD --numstat -- .gitignore` → пусто: строка `AGENTS.md` не была в истории, её добавляло незакоммиченное рабочее дерево, поэтому правка вернула `.gitignore` к состоянию HEAD и в этот коммит он не входит. Снято 09.10 после последней правки файла. - `node_modules/.bin/markdownlint AGENTS.md --config .markdownlint.js --rules .markdownlint-rules.js` в контейнере `gdlab` (каталог `/work`) → rc=0, нарушений нет. - `node_modules/.bin/prettier --check AGENTS.md` там же → rc=0; дополнительно `.prettierignore:17` = `*.md`, то есть полный `yarn lint` на этот файл не влияет. - Перенос блока: `diff` строк 3-17 прежнего `AGENTS.md` против `agents/instructions/node-tests.md` → пустой вывод. - Не зелёное: `python agents/test_report_archive.py` на хосте (Python 3.14.5) печатает «Ran 0 tests in 0.000s» при rc=0 — самозапуск собирает только потомков `unittest.TestCase`, а классы в файле в pytest-стиле. Код навыка в этом коммите не меняется. Принятый остаток? - Расхождения SKILL.md с его реализацией (`agents/report_archive.py:40` ищет JSONL по относительному пути `subagents/`, обещанного `agent-report-<slug>-<id8>.md` в коде нет, кириллический slug вырезается фильтром `[^a-z0-9]+`) не чинятся: правка поведения модуля и его теста — отдельное решение пользователя. - Имена обёрток в панели Actions появятся только после первого прогона (задача desktop#34); пуш — за вами. Итог `AGENTS.md` теперь отслеживаемый и описывает только проверки, а ритуалы агента живут в `agents/instructions/` и доказанно не попадают в дерево (`.gitignore:33`, `git ls-files agents` пуст). --- EN: AGENTS.md — CI checks only, rituals moved to agents/instructions/ User decision from 09.10: bring the file back under version control, but keep in it exactly what anyone committing into this tree must run. Agent rituals moved out to the uncommitted `agents/` layer. What changed? - `AGENTS.md` (+34/-0): now an English CI summary of the fork — two lines about the fork itself (localization core `app/src/lib/l10n` and the `app/locales/en.json`, `ru.json`, `uk.json` catalogs), then the required checks taken from the actual `package.json` scripts: `yarn lint` (which already passes `--rulesdir ./eslint-rules` through `yarn eslint`, so no bare eslint invocation is prescribed), `yarn test` with the narrow form `yarn test app/test/unit/<file>-test.ts`, `yarn test:script`, `yarn test:eslint`, the four `yarn l10n:*` scripts, `yarn check:eslint` and `yarn markdownlint`; then pointers to `.github/copilot-instructions.md`, `docs/contributing/setup.md`, `docs/contributing/styleguide.md` and `docs/fork-releases.md`, plus one line stating that agent notes are deliberately kept out of the tree. - The "Slow Node tests" block (17 lines of the previous file) is removed from `AGENTS.md` and moved verbatim into `agents/instructions/node-tests.md` (1721 bytes, ignored by `.gitignore:33`) — diffing lines 3-17 of the old file against that document produced no output. - `agents/instructions/commit-ritual.md` (16 lines, 1509 bytes, outside git): the single-surface rule for commit bodies — only `.git/MSG_<slug>` for the duration of a run, then `msg-<hash>.txt` in the session store; records the measured leftovers of 09.10: 27 files in `.git/MSG_*` and 13 in `tmp/MSG_*`. Why? The file was ignored, so a third-party contributor or CI could not learn which checks a commit in a fork with its own translation layer must pass; at the same time the agent's Russian rituals must not enter the fork's public tree or unrelated diffs. Verified - `git check-ignore -v AGENTS.md` → no output, rc=1: the file is no longer ignored. - `git diff HEAD --numstat -- .gitignore` → empty: the `AGENTS.md` line was never in history, an uncommitted working tree had added it, so the edit returned `.gitignore` to its HEAD state and the file is not part of this commit. Measured on 09.10 after the last edit. - `node_modules/.bin/markdownlint AGENTS.md --config .markdownlint.js --rules .markdownlint-rules.js` inside the `gdlab` container (`/work`) → rc=0, no violations. - `node_modules/.bin/prettier --check AGENTS.md` there → rc=0; additionally `.prettierignore:17` = `*.md`, so the full `yarn lint` does not touch this file. - Block move: diffing lines 3-17 of the previous `AGENTS.md` against `agents/instructions/node-tests.md` → no output. - Not green: `python agents/test_report_archive.py` on the host (Python 3.14.5) prints "Ran 0 tests in 0.000s" while returning rc=0 — the self-runner collects only `unittest.TestCase` descendants and the classes in the file are written pytest-style. The skill's code is unchanged here. Accepted remainder - The mismatches between the skill's SKILL.md and its implementation (`agents/report_archive.py:40` looks up JSONL under the relative path `subagents/`, the promised `agent-report-<slug>-<id8>.md` name is not in the code, and a Cyrillic slug is stripped by the `[^a-z0-9]+` filter) are not fixed: changing the module's behavior and its test is a separate user decision. - Wrapper names in the Actions panel appear only after the first run (task desktop#34); the push is yours. Result `AGENTS.md` is tracked again and describes only the checks, while agent rituals live in `agents/instructions/` and are proven to stay out of the tree (`.gitignore:33`, `git ls-files agents` is empty).
Comment on lines
+910
to
+912
| return text | ||
| .replace(/ ?<[^>]*\/>/g, '') | ||
| .replace(/<\/?[^>]*>/g, '') |
Comment on lines
+910
to
+911
| return text | ||
| .replace(/ ?<[^>]*\/>/g, '') |
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.
41 коммит (9 из них — мержи апстрима), 106 файлов, +3802/−1313 против
development.Что внутри
Локализация UI. Собственное ядро l10n в
app/src/lib/l10n(t/Trans), каталогиapp/locales/{en,ru,uk}.jsonс платформенными квалификаторами (@darwin/@win32/@linux/@other) иславянскими плюралами (
_one/_few/_other). Переведён интерфейс целиком; к нему — редакторпереводов (
app/src/ui/preferences: пример берётся из языка-цели, разметка не попадает вподсказку) и кнопка отзыва о переводе в диалоге «О программе».
Мерж апстрима и тулчейн.
upstream/developmentвлит; адаптация под TypeScript 6.0.3(
913cbcb40a,ed42bf6280,1e288ac10f), webpack 5.111.0, Dexie 4.4.6, вендорные нативныемодули; после мержа пересняты ссылки и
yarn.lock(d458452518).Релизные workflow форка. Один
release-fork.ymlразделён на четыре файла:release-fork-windows.yml(входarch: x64|arm64),release-fork-linux.yml,release-fork-windows-all.ymlиrelease-fork-all.yml(обе виндовс и linux черезworkflow_call).Перед сборкой — дешёвый gate (составное действие
.github/actions/release-gate): если релиз изтекущего коммита уже опубликован, прогон сообщает ссылку на загрузку и не занимает раннер. Кеши
загрузок — явный шаг
actions/cache@v6с ключом по всем пятиyarn.lockвместоcache: yarnуsetup-node, который хеширует только корневой лок-файл. Описание —docs/fork-releases.md.Инфраструктура форка. CLI-трамплин ставится как
github-l10nи убирает свой старыйgithub(
11a0cf6941), ярлык Windows разведён с апстримным (8f8fdd4b23), сборка отказывается подписыватьсяна апстримный фид обновлений (
a8ae1b1be5), примечания к выпуску ведут и апстримные релизы, иизменения форка (
ba2db685d5), README и docs приведены к текущему состоянию,AGENTS.mdсодержиттолько CI-проверки (
c8f6ed2730).Гейты
Unit-набор, типы и l10n-чекер снимались в стенде
gdlab08.10.2026: 2275 тестов(2273 pass / 0 fail / 2 skipped),
tsc --noEmitбез ошибок,l10n:parity— 1692 leaf-ключа накаждый каталог. Валидность релизных workflow после фикса
19cc9db00aподтверждена статически,меркой контекстов GitHub Actions по всем пяти файлам:
OK: запрещённых контекстов нет, файлов 5(
rc=0). Живого прогона этих четырёх workflow ещё не было: единственный прогон linux (#1 на6a5cdea) упал на компиляции файла, и он же — причина аннотацииUnrecognized named-value: 'runner', которую чинит19cc9db00a.Принятый остаток
yarn l10n:bundles— после мержа.latest-win-arm64ещё нет (404), поэтому первый arm64-релиз требуетfirst_run=true.js/build-artifact-leakприняты как риск и задокументированы.release-fork.yml; после мержа отобразятся «Release Fork (Windows)», «(Linux)»,«(Windows all arches)», «(All platforms)».
41 commits (9 of them upstream merges), 106 files, +3802/-1313 against
development.What is inside
UI localization. A dedicated l10n core in
app/src/lib/l10n(t/Trans) with catalogsapp/locales/{en,ru,uk}.json, platform qualifiers (@darwin/@win32/@linux/@other) and Slavic pluralforms (
_one/_few/_other). The whole interface is translated, plus a translation editor(
app/src/ui/preferences: examples come from the target language, markup stays out of the hint) and atranslation feedback entry in the About dialog.
Upstream merge and toolchain.
upstream/developmentis merged in; the codebase is adapted toTypeScript 6.0.3 (
913cbcb40a,ed42bf6280,1e288ac10f), webpack 5.111.0, Dexie 4.4.6 and thevendored native modules; links and
yarn.lockwere re-captured after the merge (d458452518).Release workflows of the fork. The single
release-fork.ymlis split into four files:release-fork-windows.yml(inputarch: x64|arm64),release-fork-linux.yml,release-fork-windows-all.ymlandrelease-fork-all.yml(both Windows arches plus Linux throughworkflow_call). A cheap gate runs before any build (composite action.github/actions/release-gate): if a release for the current commit is already published, the runreports the download link instead of occupying a runner. Download caches moved to an explicit
actions/cache@v6step keyed on all fiveyarn.lockfiles, replacingcache: yarnonsetup-node,which hashes only the root lock file. Documented in
docs/fork-releases.md.Fork infrastructure. The CLI trampoline installs as
github-l10nand removes its own legacygithub(11a0cf6941), the Windows shortcut no longer collides with the upstream one (8f8fdd4b23),the build refuses to subscribe to the upstream update feed (
a8ae1b1be5), release notes now carry bothupstream releases and fork changes (
ba2db685d5), README and docs match the current state, andAGENTS.mdkeeps CI checks only (c8f6ed2730).Gates
The unit suite, type check and l10n checker were captured in the
gdlablab on 2026-10-08: 2275 tests(2273 pass / 0 fail / 2 skipped),
tsc --noEmitclean,l10n:parityat 1692 leaf keys per catalog.Workflow validity after fix
19cc9db00ais proven statically with a GitHub Actions context measure overall five files:
OK: no forbidden contexts, files 5(rc=0). There is no live run of these fourworkflows yet: the only Linux run (#1 on
6a5cdea) failed while compiling the file, and that failure isexactly what
19cc9db00afixes.Accepted remainder
yarn l10n:bundlesafterthe merge.
latest-win-arm64tag does not exist yet (404), so the first arm64 release needsfirst_run=true.js/build-artifact-leakalerts are accepted as risk and documented.release-fork.yml; after this merge the names "Release Fork (Windows)", "(Linux)","(Windows all arches)" and "(All platforms)" will render properly.