Skip to content

Space - #1

Merged
joshaber merged 4 commits into
masterfrom
test-b
May 11, 2016
Merged

joshaber merged 4 commits into
masterfrom
test-b

Conversation

@joshaber

Copy link
Copy Markdown
Contributor

No description provided.

@joshaber

Copy link
Copy Markdown
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.

@joshaber
joshaber merged commit 1a8c20b into master May 11, 2016
@joshaber
joshaber deleted the test-b branch May 11, 2016 18:55
joshaber added a commit that referenced this pull request Nov 2, 2016
@niik niik mentioned this pull request Nov 7, 2016
@niik niik mentioned this pull request Sep 13, 2017
10 tasks done
iAmWillShepherd pushed a commit that referenced this pull request Feb 1, 2018
wrap our prettier usage in a script
shiftkey pushed a commit that referenced this pull request Apr 8, 2018
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
shiftkey pushed a commit that referenced this pull request Jan 25, 2019
@jihobbit jihobbit mentioned this pull request May 7, 2020
niik pushed a commit that referenced this pull request Aug 17, 2020
@toot-gerly

Copy link
Copy Markdown

Wow

sergiou87 pushed a commit that referenced this pull request Jan 20, 2021
@tidy-dev tidy-dev mentioned this pull request Dec 30, 2021
This was referenced Jul 22, 2023
niik pushed a commit that referenced this pull request Dec 6, 2023
…inks-in-contributing-md

Update issue template hyperlinks in CONTRIBUTING.md
sergiou87 pushed a commit that referenced this pull request Aug 6, 2024
@secretrooms secretrooms mentioned this pull request Mar 6, 2025
niik pushed a commit that referenced this pull request Apr 15, 2025
garethedwards-tass pushed a commit to garethedwards-tass/desktop that referenced this pull request Dec 29, 2025
@kwamaneb75-crypto kwamaneb75-crypto mentioned this pull request Apr 26, 2026
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]>
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.
mxmvncnt referenced this pull request in mxmvncnt/desktop-rs Oct 22, 2026
* attempt #1
* Revert "attempt #1"
* attempst 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants