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
+31
-1
@@ -125,6 +125,8 @@ jobs:
|
||||
run: |
|
||||
python3 -m venv /tmp/zizmor && /tmp/zizmor/bin/pip install -q zizmor==1.32.0
|
||||
/tmp/zizmor/bin/zizmor --offline --format plain .gitea/workflows/*.yml
|
||||
- name: Vendored design system matches upstream
|
||||
run: scripts/ci/check-web-template.sh
|
||||
- name: Code patterns (semgrep)
|
||||
# Rule packs come from the semgrep registry. Fix new findings, or suppress one line
|
||||
# with `nosemgrep: <rule id>` and a reason.
|
||||
@@ -134,11 +136,39 @@ jobs:
|
||||
--config p/python --config p/flask --config p/secrets --config p/security-audit \
|
||||
--exclude tests
|
||||
|
||||
ui:
|
||||
name: UI (screenshots)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
# Chromium and its system libraries; the version must match the playwright pip pin.
|
||||
container: mcr.microsoft.com/playwright/python:v1.49.1-noble@sha256:42e251ec3238672c931be6c3565ff279690ae072c3e22058128d0412494f6866
|
||||
steps:
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Python dependencies
|
||||
run: python3 -m pip install --quiet --break-system-packages -r requirements.txt playwright==1.49.1
|
||||
- name: Every page renders with replay data (desktop and mobile, dark and light)
|
||||
run: |
|
||||
python3 scripts/ui_demo.py 8811 > /tmp/ui-demo.log 2>&1 &
|
||||
for _ in $(seq 1 60); do curl -fs -o /dev/null http://127.0.0.1:8811/ && break; sleep 1; done
|
||||
python3 scripts/screenshots.py http://127.0.0.1:8811 ui-screenshots
|
||||
- name: Demo server log
|
||||
if: always()
|
||||
run: tail -n 100 /tmp/ui-demo.log || true
|
||||
- name: Upload screenshots
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/upload-artifact@c6a3b2bd78b3985e4b2f15397fec357f0fd808de # v3.2.2-node20 (v4 is unsupported on Gitea)
|
||||
with:
|
||||
name: ui-screenshots
|
||||
path: ui-screenshots/
|
||||
retention-days: 30
|
||||
|
||||
deploy:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
needs: [lint, test, integration, security, scan]
|
||||
needs: [lint, test, integration, security, scan, ui]
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
concurrency:
|
||||
group: deploy-production
|
||||
|
||||
Reference in new issue
Block a user