release: verify 2.2.0 packages and clarify alpha training limitations
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Release notes / update (push) Waiting to run

This commit is contained in:
vrubelroman 2026-11-06 00:43:39 +03:00
parent 7654f7342a
commit 9ba3628751
6 changed files with 96 additions and 6 deletions

52
.github/workflows/release-notes.yml vendored Normal file
View file

@ -0,0 +1,52 @@
name: Release notes
# Corrections to the changelog must also reach an already published release,
# without moving its tag or rebuilding the signed packages.
on:
push:
branches: [main]
paths: [CHANGELOG.md]
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- name: Update the current release notes if it has been published
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
python3 - <<'PY'
import json, os, pathlib, tomllib, urllib.error, urllib.request
version = tomllib.loads(pathlib.Path('Cargo.toml').read_text())['workspace']['package']['version']
heading = f'## [{version}]'
lines = pathlib.Path('CHANGELOG.md').read_text().splitlines()
start = next(i for i, line in enumerate(lines) if line.startswith(heading)) + 1
end = next((i for i in range(start, len(lines)) if lines[i].startswith('## [')), len(lines))
body = '\n'.join(lines[start:end]).strip()
assert body, 'Release notes must not be empty'
api = f'https://api.github.com/repos/{os.environ["GH_REPO"]}/releases'
headers = {'Authorization': f'Bearer {os.environ["GH_TOKEN"]}',
'Accept': 'application/vnd.github+json', 'User-Agent': 'ChessPenguin-release-notes'}
try:
with urllib.request.urlopen(urllib.request.Request(f'{api}/tags/v{version}', headers=headers), timeout=30) as response:
release = json.load(response)
except urllib.error.HTTPError as error:
if error.code != 404:
raise
print(f'v{version} is not published yet; the release workflow will supply its notes.')
else:
data = json.dumps({'body': body}).encode()
request = urllib.request.Request(f'{api}/{release["id"]}', data=data,
headers={**headers, 'Content-Type': 'application/json'}, method='PATCH')
with urllib.request.urlopen(request, timeout=30) as response:
updated = json.load(response)
assert updated['body'].strip() == body
print(f'Updated notes for v{version}: {updated["html_url"]}')
PY

View file

@ -24,7 +24,8 @@ All notable changes are listed here. Versions follow [Semantic Versioning](https
a scope without changing PGN or learning state. Full-line
statistics preserve shared moves on each actual PGN line while the global total deduplicates
them. The library table keeps ECO codes, opening names and the actual number of variations;
the training board has no move list and keeps PGN badges, arrows and circles.
the training board has no move list. PGN annotations are preserved, but the new alpha
training screen does not yet display move badges, PGN arrows or marked squares.
- Training follows the main application's layout: clearer progress labels and settings,
consistent buttons, compact session controls and board rotation in the bottom toolbar.
The selected repertoire is ready to train on entry; its saved colour and mode are restored.

View file

@ -263,6 +263,12 @@
- **Исправление:** онлайн-партии доступны с первого кадра; завершение проверки сети и рост счётчика скачивания не меняют геометрию панели. Постоянные ID устраняют наследование неактивного стиля соседнего разделителя. В диалоге онлайн-партий объясняются проверка соединения и недоступность сервисов, доступен повтор.
- **Проверка:** три реальные записи запуска — 1400×900, 960×600 при 200%, компактные 960×550; скачков не обнаружено. Пять целевых регрессий, полный desktop: 220 passed, 4 ignored; build, Clippy, fmt успешны. Отчёт: `docs/qa/library-startup-2026-11-06.md`.
### 40. Показывать PGN-разметку при прохождении тренировки (2026-11-06)
- **Статус:** подтверждённый пробел α-версии, исправление не начато.
- **Источник:** вопрос владельца о PGN Найдорфа с `!!`, `!`, `?`, `[%cal]` и `[%csl]` во время выпуска 2.2.0.
- **Факт:** PGN и его аннотации сохраняются; новый `learning_training.rs` передаёт доске `badge: None`, пустые circles и только стрелку собственной подсказки. Прежнее утверждение CHANGELOG о показе этих аннотаций в новом экране исправлено.
- **Отдельное правило:** обучение использует один основной свой ответ в позиции и разные ответы соперника. Все собственные альтернативы PGN сохраняются, но не становятся равноправными заданиями автоматически; это текущее правило модели, а не потеря веток при импорте.
## Сделано
(пусто)

31
docs/qa/release-2.2.0.md Normal file
View file

@ -0,0 +1,31 @@
# Выпуск 2.2.0 — 06.11.2026
- Ветка `feature/opening-repertoire-training` слита в `main`: Forgejo commit
`7654f7342a4ed3979b36253da1524d7f14aa746c`, новый тег `v2.2.0`.
- Публичная история отправлена штатным фильтром без force: GitHub commit
`781417db807e00faccab6a9877acdc53035b987d`. Внутреннее ТЗ тренажёра исключено;
прежние теги не переписаны. Файл владельца `backlog_from_vrubel` не включался.
- Локально: 681 passed / 0 failed / 17 ignored; workspace Clippy, fmt, wasm check,
desktop build успешны. Сайт: 4 теста, Clippy и независимый визуальный просмотр
RU/EN desktop и RU mobile приняты.
- [GitHub Release](https://github.com/vrubelroman/chessPenguin/releases/tag/v2.2.0)
опубликован [workflow 42112937340](https://github.com/vrubelroman/chessPenguin/actions/runs/42112937340).
Все сборочные задания успешны: Linux, Windows, macOS, Flatpak, Android.
- Проверены 12 загруженных файлов: 10 пакетов, архив исходников Stockfish и
SHA256SUMS.txt. Все 11 сумм совпадают с digest файлов GitHub. Linux tar.gz
дополнительно скачан и хеширован локально:
`65dce5012845747c0200ff20f00f2aa46ea5e9fe1fb3a42cce1b3a657fdc1bd8`.
На этот реальный архив обновлены PKGBUILD и .SRCINFO в репозитории;
отдельная публикация в AUR в эту задачу не входит.
- Сайт развёрнут штатным `website/deploy/deploy.sh` из commit `7654f7342a4e`,
health check успешен. Production `/api/release` возвращает 2.2.0 и все платформы;
девять языковых страниц содержат новый блок и ссылку на v2.2.0.
- Вопрос владельца выявил неточное обещание в CHANGELOG: новый α-экран пока не
показывает PGN badges/arrows/circles. Описание исправлено отдельно от неизменного
тега; workflow Release notes синхронизирует только body уже опубликованного
выпуска. Функциональное исправление и обучение собственным альтернативам
владелец поручил выполнить после 2.2.0.
Установка всех пакетов на физических целевых ОС здесь не проверялась. Проверки
подписи/выравнивания APK выполняет release script. Живой GUI относится к Linux;
публикация assets не подменяет проверку поведения на каждой ОС.

View file

@ -1,6 +1,6 @@
pkgbase = chesspenguin-bin
pkgdesc = Chess database: view, enter and analyse PGN and ChessBase games; Stockfish on request
pkgver = 2.1.5
pkgver = 2.2.0
pkgrel = 1
url = https://github.com/vrubelroman/chessPenguin
arch = x86_64
@ -17,7 +17,7 @@ pkgbase = chesspenguin-bin
provides = chesspenguin
conflicts = chesspenguin
options = !debug
source = https://github.com/vrubelroman/chessPenguin/releases/download/v2.1.5/ChessPenguin-2.1.5-linux-x86_64.tar.gz
sha256sums = a6fae3923ea1678b51e761db8014ce9914cd8ca5649efc13d608899607df8908
source = https://github.com/vrubelroman/chessPenguin/releases/download/v2.2.0/ChessPenguin-2.2.0-linux-x86_64.tar.gz
sha256sums = 65dce5012845747c0200ff20f00f2aa46ea5e9fe1fb3a42cce1b3a657fdc1bd8
pkgname = chesspenguin-bin

View file

@ -1,7 +1,7 @@
# Maintainer: vrubelroman <vrubelroman@gmail.com>
pkgname=chesspenguin-bin
_appid=io.github.vrubelroman.chessPenguin
pkgver=2.1.5
pkgver=2.2.0
pkgrel=1
pkgdesc="Chess database: view, enter and analyse PGN and ChessBase games; Stockfish on request"
arch=('x86_64')
@ -14,7 +14,7 @@ provides=('chesspenguin')
conflicts=('chesspenguin')
options=('!debug')
source=("${url}/releases/download/v${pkgver}/ChessPenguin-${pkgver}-linux-x86_64.tar.gz")
sha256sums=('a6fae3923ea1678b51e761db8014ce9914cd8ca5649efc13d608899607df8908')
sha256sums=('65dce5012845747c0200ff20f00f2aa46ea5e9fe1fb3a42cce1b3a657fdc1bd8')
package() {
cd "ChessPenguin-${pkgver}-linux-x86_64"