UI and API: Needs attention, incident pages, known conditions, /covering for Gandalf and hwmonDaemon
CI / Lint (flake8, house style) (pull_request) Successful in 56s
CI / Test (pytest) (pull_request) Successful in 53s
CI / Security (bandit, pip-audit) (pull_request) Successful in 1m8s
CI / Integration (MariaDB) (pull_request) Successful in 1m49s
CI / UI (screenshots) (pull_request) Failing after 1m7s
CI / Scan (secrets, workflows, shell, patterns) (pull_request) Successful in 1m58s
CI / Deploy (pull_request) Skipped
CI / Lint (flake8, house style) (pull_request) Successful in 56s
CI / Test (pytest) (pull_request) Successful in 53s
CI / Security (bandit, pip-audit) (pull_request) Successful in 1m8s
CI / Integration (MariaDB) (pull_request) Successful in 1m49s
CI / UI (screenshots) (pull_request) Failing after 1m7s
CI / Scan (secrets, workflows, shell, patterns) (pull_request) Successful in 1m58s
CI / Deploy (pull_request) Skipped
- thor/web/api.py: /api/incidents/covering (thor#1 pre-check), /api/incidents, /api/incident/<key>, machine keys by SHA-256 with optional source CIDRs, like Gandalf's (gandalf#68); 503 when the database is away so callers fail open. covered=true only when there is a ticket to comment on; shadow incidents are listed but never cover. - thor/web/ui.py + templates: Needs attention (incidents, Thor itself, timeline-only, known conditions seen again, unexplained symptoms), incident page (what happened, also seen, what Thor sent or would have sent, ticket text), known conditions. Read-only; CSP with nonces; Authelia identity shown only when it comes from NPM. Mobile nav drawer. - web_template v1.2 (8286bb2) vendored and checked against upstream in CI. - docs/contract.md: the /covering contract for the Gandalf and hwmonDaemon sessions. - scripts/ui_demo.py + scripts/screenshots.py, and a CI job that renders every page with replay data (desktop, mobile, dark, light) and uploads the screenshots. - Fix: systemd-escaped cpusets (system-ceph\x2dosd.slice) were not recognised as Ceph; four of the 11-23 kills came from the OSD slice. Found while reviewing the screenshots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6c2328c2b1
commit
ab4b20d15f
23 files changed
+9946
-9
No files matched your search
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
# Fails if thor/web/static/web_template/{base.css,base.js} differ from LotusGuild/web_template at
|
||||
# the commit recorded in thor/web/static/web_template/VERSION. Change the design system upstream,
|
||||
# then vendor it with a new download (see thor/web/static/web_template/VERSION); never edit the copies here.
|
||||
set -euo pipefail
|
||||
|
||||
ROOT=$(cd "$(dirname "$0")/../.." && pwd)
|
||||
DEST="$ROOT/thor/web/static/web_template"
|
||||
UPSTREAM=${WEB_TEMPLATE_RAW_URL:-https://code.lotusguild.org/LotusGuild/web_template/raw/commit}
|
||||
|
||||
sha=$(awk '{print $2}' "$DEST/VERSION")
|
||||
[[ "$sha" =~ ^[0-9a-f]{7,40}$ ]] || { echo "::error::thor/web/static/web_template/VERSION has no commit sha"; exit 1; }
|
||||
|
||||
tmp=$(mktemp -d)
|
||||
trap 'rm -rf "$tmp"' EXIT
|
||||
status=0
|
||||
for f in base.css base.js; do
|
||||
curl -fsS --retry 2 --max-time 30 -o "$tmp/$f" "$UPSTREAM/$sha/$f"
|
||||
if cmp -s "$tmp/$f" "$DEST/$f"; then
|
||||
echo "$f matches web_template@$sha"
|
||||
else
|
||||
echo "::error::thor/web/static/web_template/$f differs from web_template@$sha. Change it upstream and resync with a new download (see thor/web/static/web_template/VERSION)."
|
||||
diff -u "$tmp/$f" "$DEST/$f" | head -40 || true
|
||||
status=1
|
||||
fi
|
||||
done
|
||||
exit $status
|
||||
Reference in new issue
Block a user