mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 22:19:02 +01:00
* feat(ci): render sweep - painted layout defects on every live site, ratcheted scripts/ci/render-sweep.mjs renders home + key pages of every served site (loki apps.conf + extraSites; pages in render-sweep.pages.json) at 390/834/1440 and counts per site: nav contract rules 3/7/8 (reusing ui-defect-audit's MEASURE - openButtonMenus is now exported for it), other controls crossing the viewport, fixed/sticky controls on top of each other (incl. the Loki launcher, clip-aware), empty headings and orphan caps labels, numbers split across lines in cells/stats, and uncaught page errors (console errors counted, not ratcheted). Markdown + JSON report. render-sweep.baseline is a ratchet (site x check may fall, never rise), seeded from the first full run 2026-09-25 with substrata at 0 after bitbaum/substrata#112. Public GET pages only: DENY refuses api/admin/auth/cron/job paths before any request; auth walls are reported as not measured. No AI calls. test-render-sweep.mjs pins every check firing AND silent (48 assertions); each core condition was mutated out and failed its fixture. It runs before the sweep in render-sweep.yml (weekly + dispatch). SHARED.md: new section with the sweep and the widget's host contract. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> * ci(org-drift): baseline bip-kit README's link to Solon (a reference, not a door claim) bip-kit#40 (merged 14:57 today) links https://solon.orangecat.ch as where bitbaum products take votes; the door check reads any README mention of another app's host as a claim to be it, which turned fleet main's CI red for every open PR. Baselined with the reason, per the audit's own instruction. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> --------- Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
78 lines
2.5 KiB
YAML
78 lines
2.5 KiB
YAML
# Rendered layout defects on every live site, ratcheted.
|
|
#
|
|
# Renders home + key pages of every served site (loki's apps.conf + the
|
|
# handcrafted services in render-sweep.pages.json) at 390 / 834 / 1440 and
|
|
# counts: nav-contract rules 3/7/8, controls crossing the viewport, fixed or
|
|
# sticky controls on top of each other (incl. the Loki launcher), empty
|
|
# headings, numbers split across lines in cells/stats, and uncaught page
|
|
# errors. A site x check count above scripts/ci/render-sweep.baseline fails
|
|
# the run — a count may fall, never rise.
|
|
#
|
|
# Public GET pages only. The script refuses api/admin/auth/cron/job paths
|
|
# before requesting them and never makes an AI call.
|
|
name: Render sweep
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '17 5 * * 1'
|
|
workflow_dispatch:
|
|
inputs:
|
|
sites:
|
|
description: 'Comma-separated site names from apps.conf (default: all served)'
|
|
type: string
|
|
default: ''
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
sweep:
|
|
runs-on: ubuntu-latest
|
|
# ~24 sites x ~3 pages x 3 widths with a 4s settle each.
|
|
timeout-minutes: 45
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 22
|
|
|
|
# No package.json here on purpose; same scratch install as ui-defects.yml.
|
|
- name: Install playwright
|
|
run: |
|
|
mkdir -p "$RUNNER_TEMP/pw" && cd "$RUNNER_TEMP/pw"
|
|
npm init -y >/dev/null
|
|
npm i --no-audit --no-fund playwright >/dev/null
|
|
npx playwright install --with-deps chromium >/dev/null
|
|
|
|
# Before the sweep, deliberately: a detector that silently stopped firing
|
|
# reports a clean fleet. Every check is pinned firing AND silent.
|
|
- name: Self-test the sweep
|
|
env:
|
|
PLAYWRIGHT_FROM: ${{ runner.temp }}/pw
|
|
run: node scripts/ci/test-render-sweep.mjs
|
|
|
|
- name: Sweep the fleet
|
|
env:
|
|
PLAYWRIGHT_FROM: ${{ runner.temp }}/pw
|
|
GH_TOKEN: ${{ secrets.FLEET_PAT || secrets.GITHUB_TOKEN }}
|
|
SITES: ${{ inputs.sites }}
|
|
run: |
|
|
set -uo pipefail
|
|
set +e
|
|
node scripts/ci/render-sweep.mjs --out render-sweep-report
|
|
status=$?
|
|
set -e
|
|
if [ -f render-sweep-report/render-sweep.md ]; then
|
|
cat render-sweep-report/render-sweep.md >> "$GITHUB_STEP_SUMMARY"
|
|
fi
|
|
exit "$status"
|
|
|
|
- name: Keep the report
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: render-sweep-report
|
|
path: render-sweep-report/
|
|
if-no-files-found: ignore
|