Files
houseplan-card/.github/workflows/release.yml
T
Codex 2d1e69b0c1
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (overlay) (push) Failing after 21m28s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (large-house) (push) Failing after 21m40s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (isometric) (push) Failing after 21m46s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (blend) (push) Failing after 22m15s
Проверка (CI) / Процесс: process.yml идентичен в main и dev (push) Successful in 1m36s
Проверка (CI) / Документация: гайды, ченджлоги, скриншот-индекс (push) Failing after 1m59s
Проверка (CI) / Провенанс коммитов: трейлеры и эталоны (push) Failing after 2m13s
Проверка (CI) / Классификация изменённых файлов (push) Successful in 1m24s
Проверка (CI) / Переиспользование: это дерево уже проверено (push) Successful in 1m40s
Проверка (CI) / Процессный гейт: диапазон, трейлеры, статусы issue (push) Failing after 5m45s
Полные бенчмарки производительности / Бенчмарки рендера и геометрии (plan-snap) (push) Failing after 7m33s
Проверка (CI) / HACS: валидация репозитория (push) Failing after 33s
Проверка (CI) / Hassfest: манифест интеграции (push) Failing after 34s
Проверка (CI) / Фронтенд: типы, юниты, мутанты, синхрон бандла (push) Successful in 12m36s
Проверка (CI) / Бэкенд: pytest в Home Assistant (push) Failing after 12m27s
Проверка (CI) / Смоки в браузере (шард 1 из 3) (push) Failing after 18m19s
Проверка (CI) / Смоки в браузере (шард 3 из 3) (push) Failing after 20m56s
Проверка (CI) / Golden-кадры против принятых эталонов (push) Failing after 14m27s
Проверка (CI) / Перф-смок: бюджет времени кадра (push) Failing after 11m40s
Проверка (CI) / Смоки в браузере (шард 2 из 3) (push) Failing after 28m52s
Проверка (CI) / Смоки: все шарды зелёные (push) Skipped
ci: the performance-workflow contract test follows the renamed labels
The test pins the literal workflow name and the release-gate label; both
moved to the Russian names of #327.

Issue: #327
User-Visible: no
(cherry picked from commit 6a3ac52258)
2026-08-27 18:50:04 +03:00

102 lines
4.2 KiB
YAML
Executable File

name: "Релиз: ассеты после зелёной проверки"
on:
release:
types: [published]
permissions:
contents: write
actions: read
jobs:
# AUD-159B7-02: publishing a GitHub Release used to BE the gate — this
# workflow only built and uploaded, so an asset shipped while both Validate
# runs for the very same commit were red. The asset now waits for a green
# Validate of the EXACT commit the tag points at, and is withheld otherwise.
#
# Needs a push with a token that has the `workflow` scope (the ordinary
# Personal Access Token used for `git push` refuses workflow file updates).
gate:
name: "Гейт: зелёная Проверка точного SHA тега"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name }}
fetch-depth: 0
- uses: actions/setup-node@v7
with: { node-version: 22 }
- name: Require a green Validate for this exact commit
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
TAG: ${{ github.event.release.tag_name }}
run: |
set -euo pipefail
# HEAD is the peeled commit even when TAG is annotated. Do not trust
# target_commitish (it may be a branch name) or an event-context SHA.
SHA=$(git rev-parse HEAD)
echo "release tag: $TAG; exact commit: $SHA"
node scripts/release-gate.mjs "$SHA"
- name: Require full performance for a stable release
if: ${{ !github.event.release.prerelease }}
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
run: |
set -euo pipefail
SHA=$(git rev-parse HEAD)
node scripts/release-gate.mjs "$SHA" --workflow=performance.yml --label="Полные бенчмарки производительности"
build:
name: Сборка бандла и загрузка ассетов
needs: gate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name }}
- uses: actions/setup-node@v7
with: { node-version: 22 }
- run: npm ci && npm run build
- name: Verify compositor frame continuity for a stable release
if: ${{ !github.event.release.prerelease }}
run: |
npx playwright install --with-deps chromium
node scripts/bundle-sync.mjs
npm run continuity:screencast
- name: Upload failed continuity frames
if: ${{ failure() && !github.event.release.prerelease }}
uses: actions/upload-artifact@v7
with:
name: continuity-screencast
path: artifacts/continuity-screencast
- run: cp dist/houseplan-card.js custom_components/houseplan/frontend/
- name: Attach card to release
uses: softprops/action-gh-release@v3
with:
files: dist/houseplan-card.js
hacs-discovery:
name: HACS-видимость пре-релиза (порядок бет)
# HACS 2.0.x takes the first prerelease in GitHub's response instead of
# sorting SemVer. A valid asset can therefore be invisible to beta users
# (beta.10 appeared after beta.9). Keep the release asset, but
# make that distribution failure impossible to miss in the release run.
if: ${{ github.event.release.prerelease }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Verify the published tag is the prerelease HACS will discover
uses: actions/github-script@v9
with:
script: |
const releases = await github.paginate(github.rest.repos.listReleases, {
owner: context.repo.owner,
repo: context.repo.repo,
per_page: 100,
});
const first = releases.find((r) => r.prerelease && !r.draft);
const expected = context.payload.release.tag_name;
if (first?.tag_name !== expected) {
core.setFailed(
`HACS prerelease discovery is stale: GitHub returns ${first?.tag_name ?? 'none'} before ${expected}. ` +
`Use an rc/new version line or correct the release ordering before announcing the update.`,
);
}