Repository navigation
Conversation
This reverts commit 7c6ab32.
Contributor
Author
|
Well, it turns out the test runner isn't passing the exit code through, so failing tests appear to pass. I opened a PR to fix it: jprichardson/electron-mocha#60 Otherwise, this seems good to go. |
Merged
iAmWillShepherd
pushed a commit
that referenced
this pull request
Feb 1, 2018
wrap our prettier usage in a script
iAmWillShepherd
pushed a commit
that referenced
this pull request
Sep 19, 2018
Pull Desktop into Desktop Form
niik
pushed a commit
that referenced
this pull request
Nov 30, 2018
Closed
niik
pushed a commit
that referenced
this pull request
Aug 17, 2020
|
niik
pushed a commit
that referenced
this pull request
Dec 6, 2023
…inks-in-contributing-md Update issue template hyperlinks in CONTRIBUTING.md
Closed
garethedwards-tass
pushed a commit
to garethedwards-tass/desktop
that referenced
this pull request
Dec 29, 2025
[ImgBot] Optimize images
Closed
tidy-dev
added a commit
that referenced
this pull request
Jun 16, 2026
- Fix #1: Re-measure subheader overflow after collapsing via requestAnimationFrame so the toggle button persists correctly - Fix #2: Add noResolution state to avoid rendering SeamlessDiffSwitcher (perpetual spinner) when no Copilot resolution exists for a file - Fix #3: Remove duplicated doc line in getResolutionDiff JSDoc - Fix #4: Show 'No Copilot resolution available' in subheader when no resolution exists instead of misleading default text Co-authored-by: Copilot <[email protected]>
Closed
bahooo22
referenced
this pull request
in bahooo22/github_desktop
Oct 9, 2026
…жобы
Что изменено?
В `.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.
mxmvncnt
referenced
this pull request
in mxmvncnt/desktop-rs
Oct 22, 2026
This reverts commit efced6a.
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.
No description provided.