5d1cdf9da012248b9620c89e1b6d64fc67f3f3bf
164
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
9980663f83 |
CI: retry npm audit on registry errors only
CI / Lint (eslint) (pull_request) Successful in 21s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m48s
CI / Test (jest) (push) Successful in 16s
CI / Security (npm audit) (push) Successful in 8s
CI / Deploy worker (pull_request) Skipped
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Integration (api) (pull_request) Successful in 1m23s
CI / UI screenshots (before/after) (pull_request) Successful in 6s
CI / UI (playwright) (pull_request) Successful in 2m5s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Integration (api) (push) Successful in 1m23s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m53s
CI / UI (playwright) (push) Successful in 1m43s
CI / Notify (push) Skipped
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (pull_request) Successful in 17s
CI / Security (npm audit) (pull_request) Successful in 7s
CI / Lint (eslint) (push) Successful in 19s
The registry's audit endpoint returned a spurious 400 ('Invalid package
tree') on an unchanged lockfile; the same commit passed minutes later.
Real advisories still fail at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
||
|
|
41480bf30a |
Deploy worker: trigger on worker/ or the lockfile, not package.json scripts
CI / Test (jest) (push) Successful in 16s
CI / Security (npm audit) (push) Failing after 36s
CI / Lint (eslint) (pull_request) Successful in 17s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m13s
CI / Deploy worker (pull_request) Canceled after 0s
CI / Integration (api) (push) Successful in 1m48s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m46s
CI / UI (playwright) (push) Successful in 1m46s
CI / UI (playwright) (pull_request) Successful in 1m34s
CI / UI screenshots (before/after) (pull_request) Successful in 5s
CI / Integration (api) (pull_request) Canceled after 7m16s
CI / Deploy (pull_request) Canceled after 0s
CI / Notify (pull_request) Canceled after 0s
CI / UI screenshots (before/after) (push) Skipped
CI / Lint (eslint) (push) Successful in 15s
CI / Test (jest) (pull_request) Successful in 15s
CI / Security (npm audit) (pull_request) Successful in 8s
A lint script change in package.json restarted the worker for nothing. Every dependency change also changes package-lock.json, so that is enough. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
57a6cf72ce |
Merge pull request 'CI phase 5: stricter eslint, design system integrity check, PR screenshots' (#56) from ci-phase5 into main
CI / Test (jest) (push) Successful in 16s
CI / Security (npm audit) (push) Successful in 13s
CI / Deploy (push) Successful in 14s
CI / Deploy worker (push) Successful in 25s
CI / Integration (api) (push) Successful in 1m25s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m43s
CI / UI (playwright) (push) Successful in 1m32s
CI / Notify (push) Successful in 3s
CI / UI screenshots (before/after) (push) Skipped
CI / Lint (eslint) (push) Successful in 18s
|
||
|
|
74eb525413 |
CI phase 5: stricter eslint, design system integrity check, PR screenshots
CI / Security (npm audit) (push) Successful in 42s
CI / Test (jest) (push) Successful in 45s
CI / Lint (eslint) (pull_request) Successful in 14s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m1s
CI / Deploy worker (pull_request) Skipped
CI / Integration (api) (push) Successful in 2m21s
CI / Scan (secrets, workflows, shell) (push) Successful in 2m35s
CI / UI (playwright) (push) Successful in 2m20s
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 1m45s
CI / UI screenshots (before/after) (pull_request) Successful in 13s
CI / UI (playwright) (pull_request) Successful in 1m52s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (push) Skipped
CI / Lint (eslint) (push) Successful in 20s
CI / Test (jest) (pull_request) Successful in 24s
CI / Security (npm audit) (pull_request) Successful in 25s
- eslint: errors for ==, unused or shadowed variables, eval and friends, prefer-const, curly, throw literals, useless catch/escape, constant conditions (loops allowed), unused expressions (short-circuit allowed); --max-warnings 0. Fixed the few violations (two unused requires in server.js, a shadowed mock argument in a test). - Scan job: scripts/ci/check-web-template.sh fails if public/web_template differs from upstream at the commit in its VERSION (change it upstream, then scripts/sync-web-template.sh). - New job UI screenshots (before/after), PRs only, when public/, views/ or the render/nav code changed: runs the base branch and the PR side by side with the same seeded data and uploads one before/after image per page, desktop and phone (scripts/ci/screenshots.js). Not required. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ad2e5313ea |
Merge pull request 'Resync the vendored design system (dash-free) and check it too' (#55) from resync-web-template into main
CI / Test (jest) (push) Successful in 25s
CI / Security (npm audit) (push) Successful in 13s
CI / Deploy (push) Successful in 13s
CI / Deploy worker (push) Successful in 4s
CI / Integration (api) (push) Successful in 1m28s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m47s
CI / UI (playwright) (push) Successful in 1m37s
CI / Notify (push) Successful in 3s
CI / Lint (eslint) (push) Successful in 27s
|
||
|
|
16a127a6fd |
UI test: build the dash pattern from char codes so the file passes the dash check
CI / Test (jest) (push) Successful in 27s
CI / Security (npm audit) (push) Successful in 11s
CI / Lint (eslint) (pull_request) Successful in 16s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m41s
CI / Deploy worker (pull_request) Skipped
CI / Integration (api) (push) Successful in 1m13s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m30s
CI / UI (playwright) (push) Successful in 1m57s
CI / Integration (api) (pull_request) Successful in 1m14s
CI / UI (playwright) (pull_request) Successful in 1m42s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 28s
CI / Test (jest) (pull_request) Successful in 21s
CI / Security (npm audit) (pull_request) Successful in 8s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
599a62f010 |
Resync the vendored design system (dash-free upstream) and check it too
CI / Test (jest) (push) Successful in 24s
CI / Security (npm audit) (push) Successful in 7s
CI / Lint (eslint) (pull_request) Failing after 18s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m19s
CI / Deploy worker (pull_request) Skipped
CI / Integration (api) (push) Successful in 1m13s
CI / Scan (secrets, workflows, shell) (push) Successful in 2m21s
CI / UI (playwright) (push) Successful in 2m9s
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 2m23s
CI / UI (playwright) (pull_request) Successful in 1m34s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Failing after 44s
CI / Test (jest) (pull_request) Successful in 18s
CI / Security (npm audit) (pull_request) Successful in 29s
public/web_template is now web_template 8286bb2, which removed every em and en dash (web_template#3, approved with screenshots). Pulse's copy was byte-identical to the previous upstream bbec859, so the only changes are upstream's: hyphens in comments, '-' for empty values in lt.fmt, and 'ALL SYSTEMS NOMINAL: PULSE' / offline banner and toast rewording. - The CI dash check no longer excludes public/web_template. - UI tests: no page renders an em or en dash; the boot screen reads 'ALL SYSTEMS NOMINAL: PULSE'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
e167e2f3b8 |
Merge pull request 'Worker deploys from CI, with version reporting' (#54) from worker-deploy into main
CI / Test (jest) (push) Successful in 53s
CI / Security (npm audit) (push) Successful in 53s
CI / Deploy (push) Successful in 25s
CI / Deploy worker (push) Successful in 31s
CI / Integration (api) (push) Successful in 1m46s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m50s
CI / UI (playwright) (push) Successful in 2m4s
CI / Notify (push) Successful in 4s
CI / Lint (eslint) (push) Successful in 40s
|
||
|
|
ea939d4430 |
Worker deploys from CI, with version reporting (#40)
CI / Test (jest) (push) Successful in 18s
CI / Security (npm audit) (push) Successful in 12s
CI / Lint (eslint) (pull_request) Successful in 19s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m20s
CI / Deploy worker (pull_request) Skipped
CI / Integration (api) (push) Successful in 1m14s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m29s
CI / UI (playwright) (push) Successful in 1m43s
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 1m51s
CI / UI (playwright) (pull_request) Successful in 1m37s
CI / Deploy (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 14s
CI / Test (jest) (pull_request) Successful in 13s
CI / Security (npm audit) (pull_request) Successful in 7s
CI / Notify (pull_request) Skipped
- The worker reports its commit (VERSION file, or git rev-parse in a checkout) in worker_connect and heartbeat metadata. The server keeps it per live socket and /healthz lists worker_versions. - deploy/pulse_worker_deploy.sh <sha> <ts>, for the webhook on a worker host: replay and age checks, commit must be on main, installs worker.js and the npm manifests from exactly that commit, writes VERSION, npm ci, restarts, waits until /healthz lists the sha, else restores the previous files. Sandbox tests cover deploy, replay, stale and malformed input, off-main commits, no-op redeploys and rollback. - New CI job Deploy worker after Deploy: only when worker/ or the npm manifests changed since the commit the workers report, so unrelated merges don't restart the worker; then waits for the worker to reconnect on the new commit. - README: Worker deploys (install, hook definition, adding a worker host). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
4f6672a7ef |
Merge pull request 'CI: semgrep in the scan job' (#53) from ci-semgrep into main
CI / Test (jest) (push) Successful in 22s
CI / Security (npm audit) (push) Successful in 14s
CI / Deploy (push) Successful in 14s
CI / Integration (api) (push) Successful in 1m23s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m41s
CI / UI (playwright) (push) Successful in 1m42s
CI / Notify (push) Successful in 3s
CI / Lint (eslint) (push) Successful in 22s
|
||
|
|
d96b2ad4cf |
CI: semgrep in the scan job
CI / Test (jest) (push) Successful in 17s
CI / Security (npm audit) (push) Successful in 9s
CI / Lint (eslint) (pull_request) Successful in 16s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m27s
CI / Deploy (push) Skipped
CI / Integration (api) (push) Successful in 2m49s
CI / UI (playwright) (push) Successful in 3m4s
CI / Integration (api) (pull_request) Successful in 1m59s
CI / UI (playwright) (pull_request) Successful in 1m54s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Scan (secrets, workflows, shell) (push) Successful in 1m28s
CI / Notify (push) Skipped
CI / Lint (eslint) (push) Successful in 17s
CI / Test (jest) (pull_request) Successful in 15s
CI / Security (npm audit) (pull_request) Successful in 9s
JavaScript, Node.js, Express, secrets and security-audit rule packs, with --error so findings fail the check. Dry run on main: no findings from the first four packs; security-audit flagged one false positive (the demo seed script's urlopen of a fixed loopback URL), suppressed on that line with the reason. Part of #45 phase 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
1474b0aa3f |
Merge pull request 'Worker unit tests, coverage floors, and an SBOM per main build' (#52) from ci-sbom-worker-tests into main
CI / Test (jest) (push) Successful in 49s
CI / Security (npm audit) (push) Successful in 32s
CI / Deploy (push) Successful in 14s
CI / Notify (push) Successful in 3s
CI / Scan (secrets, workflows, shell) (push) Successful in 24s
CI / Integration (api) (push) Successful in 1m40s
CI / UI (playwright) (push) Successful in 1m38s
CI / Lint (eslint) (push) Successful in 56s
|
||
|
|
67a9e1c009 |
Integration tests: wait for a worker's WebSocket, not just its heartbeat
CI / Security (npm audit) (push) Successful in 21s
CI / Test (jest) (push) Successful in 23s
CI / Lint (eslint) (pull_request) Successful in 44s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 11s
CI / Deploy (push) Skipped
CI / Scan (secrets, workflows, shell) (push) Successful in 14s
CI / Integration (api) (push) Successful in 1m58s
CI / UI (playwright) (push) Successful in 3m9s
CI / Integration (api) (pull_request) Successful in 1m44s
CI / Notify (push) Skipped
CI / UI (playwright) (pull_request) Successful in 1m45s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Test (jest) (pull_request) Successful in 42s
CI / Security (npm audit) (pull_request) Successful in 30s
CI / Lint (eslint) (push) Successful in 13s
Under load a new worker's first heartbeat marked it online before its WebSocket had connected, so a test's first command was refused, and the cleanup in finally then threw its own error and hid the real one. startWorker now waits until the server accepts a probe command for the worker, and cleanup never throws (offline status has its own test). Reproduced 1 in 6 under UI-test load before; 0 in 10 after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
394665e88a |
CI: build the SBOM from the lockfile (the audit job has no node_modules)
CI / Test (jest) (push) Successful in 18s
CI / Security (npm audit) (push) Successful in 12s
CI / Lint (eslint) (pull_request) Successful in 31s
CI / Deploy (push) Skipped
CI / Notify (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 14s
CI / Scan (secrets, workflows, shell) (push) Successful in 12s
CI / Integration (api) (push) Failing after 1m25s
CI / UI (playwright) (push) Successful in 2m17s
CI / Integration (api) (pull_request) Successful in 1m19s
CI / UI (playwright) (pull_request) Successful in 1m39s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 17s
CI / Test (jest) (pull_request) Successful in 17s
CI / Security (npm audit) (pull_request) Successful in 18s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
38a6d1158d |
Worker unit tests, coverage floors, and an SBOM per main build
CI / Test (jest) (push) Successful in 18s
CI / Security (npm audit) (push) Failing after 12s
CI / Lint (eslint) (pull_request) Successful in 24s
CI / Deploy (push) Skipped
CI / Notify (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 15s
CI / Scan (secrets, workflows, shell) (push) Successful in 18s
CI / Integration (api) (push) Successful in 2m58s
CI / UI (playwright) (push) Successful in 3m11s
CI / Integration (api) (pull_request) Successful in 1m18s
CI / UI (playwright) (pull_request) Successful in 1m31s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 17s
CI / Test (jest) (pull_request) Successful in 15s
CI / Security (npm audit) (pull_request) Failing after 12s
- worker/worker.js exports PulseWorker and starts only when run directly (no behaviour change for the service; CT 153 needs no redeploy). - tests/worker.test.js: success, exit code and stderr, timeout kill, capacity rejection, slot release after failure, ping/pong, no sends while disconnected. - jest coverage floors (ratchet at today's levels): lib/ 90% lines and statements, 80% branches and functions; worker/ 40%. - The audit job writes a CycloneDX SBOM of production dependencies and keeps it 90 days for each main build. Part of #45 phases 3 and 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
15f8ec4c9b |
Merge pull request 'CI: scan job for secrets, workflows and shell scripts' (#51) from ci-scan into main
CI / Test (jest) (push) Successful in 21s
CI / Security (npm audit) (push) Successful in 14s
CI / Deploy (push) Successful in 14s
CI / Notify (push) Successful in 9s
CI / Scan (secrets, workflows, shell) (push) Successful in 21s
CI / Integration (api) (push) Successful in 1m22s
CI / UI (playwright) (push) Successful in 1m32s
CI / Lint (eslint) (push) Successful in 26s
|
||
|
|
1f75a4a63a |
CI: scan job for secrets (gitleaks), workflows (actionlint) and shell (shellcheck)
CI / Test (jest) (push) Successful in 16s
CI / Security (npm audit) (push) Successful in 10s
CI / Lint (eslint) (pull_request) Successful in 13s
CI / Deploy (push) Skipped
CI / Notify (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 18s
CI / Scan (secrets, workflows, shell) (push) Successful in 13s
CI / Integration (api) (push) Successful in 1m28s
CI / UI (playwright) (push) Successful in 1m43s
CI / Integration (api) (pull_request) Successful in 1m30s
CI / UI (playwright) (pull_request) Successful in 1m48s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 17s
CI / Test (jest) (pull_request) Successful in 19s
CI / Security (npm audit) (pull_request) Successful in 8s
All three pass on main today: gitleaks found no leaks in 88 commits, and actionlint's one warning (an unused loop variable in the deploy health check) is fixed here. Tool downloads are pinned to a version and verified by SHA-256. Deploy now also waits for the scan. Part of #45 phase 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
4f32bd1363 |
Merge pull request 'Integration tests (Gandalf contract, auth, reliability); fix worker offline status' (#50) from ci-integration into main
CI / Test (jest) (push) Successful in 23s
CI / Security (npm audit) (push) Successful in 12s
CI / Deploy (push) Successful in 14s
CI / Integration (api) (push) Successful in 1m29s
CI / UI (playwright) (push) Successful in 1m47s
CI / Notify (push) Successful in 5s
CI / Lint (eslint) (push) Successful in 30s
|
||
|
|
def926d41e |
Integration tests for the Gandalf contract, auth and reliability; fix worker offline status
CI / Security (npm audit) (push) Successful in 26s
CI / Test (jest) (push) Successful in 13s
CI / Deploy (push) Skipped
CI / Lint (eslint) (pull_request) Successful in 15s
CI / Integration (api) (push) Successful in 1m31s
CI / UI (playwright) (push) Successful in 2m31s
CI / Integration (api) (pull_request) Successful in 1m58s
CI / Notify (push) Skipped
CI / UI (playwright) (pull_request) Successful in 2m16s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 46s
CI / Test (jest) (pull_request) Successful in 50s
CI / Security (npm audit) (pull_request) Successful in 15s
New CI job `Integration (api)` (#45 phase 3) runs the real server and three workers on Node 20 against MariaDB and tests them as a black box over HTTP and WebSocket (20 tests, about 12 s): - Gandalf contract: submit and poll, stdout from command_result, failures with exit code and stderr, 401 for wrong or missing key, 400 for missing fields or an unknown worker, 404 for an unknown execution - Auth: SSO identity, 401/403, heartbeat key, /healthz exposes only status; WebSocket upgrade refused without credentials, with a wrong key or a wrong group; live events reach a signed-in browser; a browser socket cannot forge a command result - Reliability: a worker killed mid-command fails the execution at once; a worker at capacity answers with a failure; an aborted execution stays failed when the late result arrives; a disconnected worker shows offline The last test found a bug from #42: the close handler deleted the worker's runtime-id entry before checking whether the socket was still live under its database id, and the two ids are normally the same key. So a disconnected worker was never marked offline and showed 'online' until the stale heartbeat sweep. Gandalf was unaffected (it checks live sockets). MariaDB setup for CI moves to scripts/ci/mariadb.sh, shared by both jobs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
1d5b8cdd53 |
Merge pull request 'CI: Playwright UI tests against a real server, workers and MariaDB' (#49) from ci-ui-tests into main
CI / Test (jest) (push) Successful in 22s
CI / Security (npm audit) (push) Successful in 11s
CI / Deploy (push) Successful in 18s
CI / Notify (push) Successful in 3s
CI / UI (playwright) (push) Successful in 1m24s
CI / Lint (eslint) (push) Successful in 23s
|
||
|
|
8b93c88f0f |
CI: run MariaDB inside the UI job; take Node from job images, not setup-node
CI / Test (jest) (push) Successful in 23s
CI / Security (npm audit) (push) Successful in 14s
CI / Lint (eslint) (pull_request) Successful in 24s
CI / Deploy (push) Skipped
CI / UI (playwright) (push) Successful in 1m38s
CI / Notify (push) Skipped
CI / UI (playwright) (pull_request) Successful in 1m33s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 27s
CI / Test (jest) (pull_request) Successful in 14s
CI / Security (npm audit) (pull_request) Successful in 8s
The runner uses Docker's default bridge network, so the mariadb service hostname never resolved. It also shares one tool cache volume between concurrent jobs: parallel setup-node runs overwrote each other's Node (the earlier <nil> failure and today's missing npm package.json). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
5bca0cd87b |
CI: Playwright UI tests against a real server, workers and MariaDB
CI / Test (jest) (push) Failing after 57s
CI / Security (npm audit) (push) Successful in 10s
CI / Lint (eslint) (pull_request) Successful in 28s
CI / Deploy (push) Skipped
CI / UI (playwright) (push) Failing after 2m25s
CI / Notify (push) Skipped
CI / UI (playwright) (pull_request) Failing after 1m21s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 59s
CI / Test (jest) (pull_request) Successful in 17s
CI / Security (npm audit) (pull_request) Successful in 12s
New required-to-be job `UI (playwright)` (#45 phase 5): the official Playwright image with a MariaDB service container. scripts/ci/ui-stack.sh starts the real server and three workers (WORKER_AUTH_ENFORCE=1), then tests/ui/ runs 30 tests on desktop and a phone viewport: - every page loads with no page errors, console errors or failed requests (enforced by a shared fixture for every test) - quick commands run on a worker and their output and status show in Executions; multi-worker mode; failing commands show as failed - workflows are created and run from the UI and complete on all workers - Executions updates live over the authenticated browser WebSocket - no SSO identity: 401 page and API; wrong group: 403 - every page fits a phone screen External requests are blocked in tests so SSO headers never leave the machine. Deploy now also waits for the UI job. The API and execution rate limits can be raised with PULSE_API_RATE_MAX / PULSE_EXEC_RATE_MAX for test stacks; production defaults are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
f97dcc7b2a |
Merge pull request 'Declare the supported Node version in package.json' (#48) from node-engines into main
|
||
|
|
e3d09020cc |
Declare the supported Node version (>=20) in package.json
CI / Test (jest) (push) Successful in 28s
CI / Lint (eslint) (pull_request) Successful in 13s
CI / Security (npm audit) (push) Successful in 15s
CI / Deploy (push) Skipped
CI / Notify (push) Skipped
CI / Deploy (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 27s
CI / Security (npm audit) (pull_request) Successful in 20s
CI / Test (jest) (pull_request) Successful in 21s
CI / Notify (pull_request) Skipped
CI (setup-node), production (CT 122) and the worker (CT 153) all run Node 20. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
be6eaad1e9 |
Merge pull request 'Deploys: exact sha, replay protection, health check and automatic rollback' (#47) from ci-phase2 into main
|
||
|
|
cb12fec28c |
Deploys: exact sha, replay protection, health check and automatic rollback
CI / Test (jest) (push) Successful in 47s
CI / Security (npm audit) (push) Successful in 17s
CI / Deploy (push) Skipped
CI / Lint (eslint) (pull_request) Successful in 14s
CI / Notify (push) Skipped
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 52s
CI / Test (jest) (pull_request) Failing after 12s
CI / Security (npm audit) (pull_request) Successful in 11s
#45 phase 2. - GET /healthz (unauthenticated): running git sha, version, database reachability, connected workers, uptime. 503 when the database is down. - deploy/pulse_deploy.sh, versioned for the first time (it only existed as a hand-edited file on CT 122). It takes <sha> <ts> from the signed webhook payload and: - refuses requests older than 5 minutes, or not newer than the last accepted one (replays); - refuses commits that aren't on main; - checks out exactly that sha (before, it deployed whatever main was); - runs npm ci --omit=dev (before, npm install --production) and restarts; - waits for /healthz to report the sha with a working database, and otherwise rolls back to the previous commit. - tests/deploy-script.test.js runs the script in a sandbox (temporary git origin, fake systemctl/npm/curl): exact-sha deploy with .env kept, replay, stale request, off-main commit, malformed input, and rollback of an unhealthy build. - CI's deploy job now succeeds only once production reports the tested sha as healthy, before tagging. Before, it only checked that the server answered. - README: CI/CD and deploy documentation, including installing the script and the hooks.json arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
b10ea154dd |
Merge pull request 'CI phase 1: one pipeline, deploy gated on lint, test and audit' (#46) from ci-phase1 into main
|
||
|
|
6da2d15397 |
CI: fix dash check matching itself; npm audit fix for production advisories
CI / Test (jest) (push) Successful in 20s
CI / Security (npm audit) (push) Successful in 10s
CI / Deploy (push) Skipped
CI / Lint (eslint) (pull_request) Successful in 21s
CI / Notify (push) Skipped
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / Lint (eslint) (push) Successful in 21s
CI / Test (jest) (pull_request) Successful in 21s
CI / Security (npm audit) (pull_request) Successful in 7s
- The dash check's own pattern contained the literal entities it searches for. Use &[mn]dash; so the check doesn't flag itself. - npm audit fix (lockfile only, no major bumps): proxy-addr 2.0.8 (critical), body-parser 2.4.0 (high), follow-redirects 1.16.3 (high, used by the worker through axios), qs 6.17.1, ip-address. The remaining glob/minimatch advisories are moderate, dev-only (jest) and need a breaking upgrade, so they stay below the high threshold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
fde2c49eca |
CI: one pipeline, deploy gated on lint, test and audit
The deploy job lived in lint.yml and needed only eslint, while jest and npm audit ran in separate workflows. A merge that failed its tests still deployed to production. (#45 phase 1) - Combine everything into .gitea/workflows/ci.yml with jobs lint, test, audit, deploy and notify. Deploy needs all three checks and runs only on push to main. - Builds are reproducible: npm ci everywhere, eslint from the lockfile (new `npm run lint`), and setup-node pinned to Node 20 (production). - Actions are pinned to full commit SHAs, with the version in a comment, following tinker_tickets. - Workflow permissions default to contents: read; only deploy can write (for its tag). A deploy-production concurrency group queues deploys instead of running two at once. Superseded branch runs are cancelled. - The deploy payload now carries the sha and a timestamp, so signatures differ per deploy (the server verifies them in phase 2). After the webhook, CI waits until Pulse is serving again before tagging. - The Matrix alert now fires for any failed job on main, for the weekly audit, and for every successful deploy. - New lint step: fail on em or en dashes in Pulse-owned files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
c6f6b3f842 |
Merge pull request 'Remove em and en dashes from UI text' (#44) from no-dashes-ui into main
|
||
|
|
027dce7fd5 |
Remove em and en dashes from UI text
Lint / JS (eslint) (push) Successful in 26s
Lint / Notify on failure (push) Skipped
Security / JS Security (npm audit) (pull_request) Failing after 38s
Test / JS Tests (jest) (push) Successful in 31s
Security / JS Security (npm audit) (push) Failing after 23s
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 42s
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 28s
Lint / Notify on failure (pull_request) Skipped
Replace the remaining dashes users can see: - error page titles and headings, and the browser tab title: "|" or ":"; - the footer: "PULSE | TDS v1.2"; - the 401 message and two toasts: sentence breaks or a comma; - the quick-command history and success line: "|"; - empty table cells: "-"; - the compare hint: "2 to 5". No layout or behaviour changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
574e7ecc4f |
Merge pull request 'Remove em and en dashes from comments, logs, docs and CI' (#43) from no-dashes-internal into main
|
||
|
|
66d5240be0 |
Remove em and en dashes from comments, logs, docs and CI
Lint / JS (eslint) (push) Successful in 16s
Lint / Notify on failure (push) Skipped
Test / JS Tests (jest) (push) Successful in 15s
Security / JS Security (npm audit) (pull_request) Failing after 20s
Security / JS Security (npm audit) (push) Failing after 15s
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 13s
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 17s
Lint / Notify on failure (pull_request) Skipped
Replace every em dash and en dash outside user-visible UI text with a colon, comma, hyphen or "to". The UI strings and the vendored web_template are handled separately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
8e77c1af0a |
Merge pull request 'Fail stuck executions, keep worker error details, guard terminal status' (#42) from exec-reliability into main
|
||
|
|
071b4072c2 |
Fail stuck executions, keep worker error details, guard terminal status
Lint / JS (eslint) (push) Successful in 21s
Lint / Notify on failure (push) Skipped
Test / JS Tests (jest) (push) Successful in 18s
Security / JS Security (npm audit) (pull_request) Failing after 18s
Security / JS Security (npm audit) (push) Failing after 19s
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 13s
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 15s
Lint / Notify on failure (pull_request) Skipped
Quick, scheduled and Gandalf commands relied entirely on the worker sending a command_result. If the worker was at capacity, disconnected or restarted, the execution stayed 'running' forever (#7). Failed commands also lost the worker's error message (#14). - Direct commands now get a server-side timeout: the command timeout plus 30 s. When it expires, the execution fails with a command_result entry carrying the error, which the UI already renders and Gandalf treats as 'failed' and retries. - When a worker socket closes, every command sent over it fails at once. Pending workflow step waits resolve as failures, so the engine moves on. - Every 5 minutes, a backstop sweep fails 'running' executions past EXECUTION_MAX_MINUTES + 10 that nothing is tracking. - updateExecutionStatus only changes a 'running' execution and reports whether it did. A late result, or the engine finishing after an abort, can no longer flip a failed execution to completed or fire a second webhook. - Aborting a quick command clears its timeout. - command_result keeps error, exit_code, signal and timed_out in the log, the broadcast and the workflow step result. - The worker reports "at capacity" as a failed result instead of staying silent, and includes exit_code, signal and timed_out on failures. - Fix: after a worker reconnected, the old socket closing removed the new socket's mapping and marked the worker offline, so commands got "Worker not connected" until the next heartbeat. Closes #7 Closes #14 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
2e6467d388 |
Merge pull request 'Authenticate WebSocket connections and bind command results to their worker' (#41) from ws-auth into main
|
||
|
|
ac6c6c72c5 |
Authenticate WebSocket connections and bind command results to their worker
Lint / JS (eslint) (push) Successful in 18s
Lint / Notify on failure (push) Skipped
Test / JS Tests (jest) (push) Successful in 15s
Security / JS Security (npm audit) (pull_request) Failing after 17s
Security / JS Security (npm audit) (push) Failing after 16s
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 13s
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 15s
Lint / Notify on failure (pull_request) Skipped
Any client that could reach :8080 got a WebSocket connection. Every connection started as a browser client and received every broadcast. worker_connect accepted a missing api_key, so anyone could register under an existing worker's name and receive its commands. command_result was accepted from any connection, so execution logs could be forged. - Classify each upgrade in verifyClient (lib/wsauth.js). A request is: - browser: a trusted-proxy Authelia identity in an allowed group; - worker: Authorization: Bearer <WORKER_API_KEY>; - pending: neither, allowed only while WORKER_AUTH_ENFORCE is off; - rejected (401): everything else, and always for a wrong key. - Only browser connections receive broadcasts. A pending connection may send only worker_connect and is closed after 30 s if it doesn't identify. - worker_connect requires the key. A keyless worker is allowed with a warning until WORKER_AUTH_ENFORCE=1, so existing workers keep working until they are updated. - Record which worker each command was sent to. command_result is accepted only from that worker (matched by DB id, so a reconnect mid-command still works) and only once. pong no longer trusts a client-supplied id. - Worker, heartbeat and Gandalf keys use a constant-time compare. Log an error at startup if WORKER_API_KEY is unset. - The worker sends its key at the handshake and in worker_connect. Closes #38 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
b8a7b2c3b9 |
Merge pull request 'Only trust Authelia identity headers from TRUSTED_PROXIES' (#39) from trusted-proxy-auth into main
|
||
|
|
e302234187 |
Only trust Authelia identity headers from TRUSTED_PROXIES
Lint / JS (eslint) (push) Successful in 18s
Lint / Notify on failure (push) Skipped
Test / JS Tests (jest) (push) Successful in 20s
Security / JS Security (npm audit) (pull_request) Failing after 17s
Security / JS Security (npm audit) (push) Failing after 17s
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 18s
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 17s
Lint / Notify on failure (pull_request) Skipped
authenticateSSO and authenticatePage took the user and groups straight from the Remote-* headers, and the server listens on every interface, so any LAN host could connect directly, claim any user and group, and run commands on the workers. It could also write whatever it claimed into the users table. Add TRUSTED_PROXIES (addresses or CIDR ranges) and ignore the identity headers unless the TCP peer is on the list. The peer address is used rather than a forwarding header, which a client could forge. It fails closed: unset means no SSO login succeeds, with a startup warning. Rejected attempts are logged with their source. Worker and Gandalf API-key routes are unchanged. Closes #37 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
dc47e335aa |
Fix security job: clear npm audit advisories (jest 30, audit fix); tidy demo scripts
npm audit --audit-level=high now exits 0. The advisories were in dev-only dependencies (braces via jest 29).deploy-2026.10.03-73 |
||
|
|
3572d5ba35 |
README: add walkthrough GIF, architecture diagram and gallery; add demo seed and capture scripts
|
||
|
|
d9f3986198 | Declare axios dependency (required by worker/worker.js, was missing from package.json) | ||
|
|
68e7108831 |
Add MIT license
|
||
|
|
3edb2da174 |
Merge pull request 'fix: handle mysql2 >=3.23 returning JSON columns pre-parsed (Gandalf relay regression)' (#36) from hotfix/mysql2-json-columns into main
fix: handle mysql2 >=3.23 returning JSON columns pre-parsed (#36) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRpdeploy-2026.09.09-61 |
||
|
|
2173b5ab8f |
fix: handle mysql2 >=3.23 returning JSON columns pre-parsed
Security / JS Security (npm audit) (pull_request) Successful in 10s
Lint / JS (eslint) (push) Successful in 11s
Lint / Notify on failure (push) Skipped
Test / JS Tests (jest) (push) Successful in 11s
Lint / JS (eslint) (pull_request) Successful in 11s
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 10s
Lint / Deploy (push) Skipped
Security / JS Security (npm audit) (push) Successful in 11s
Lint / Notify on failure (pull_request) Skipped
mysql2 3.24 (pulled in by the audit fix in #35) returns MariaDB JSON columns as JS objects. GET /api/internal/executions/:id and GET /api/workflows/:id still called JSON.parse on the value, threw, and silently returned [] / {}. This broke Gandalf's relay checks (false 'PBS unreachable' ticket) and the workflow edit modal. Guard both sites with the same typeof check already used by GET /api/executions/:id. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |
||
|
|
e13bdd00d1 |
Merge pull request 'Redesign the Pulse UI onto the LotusGuild Terminal Design System' (#35) from feature/tds-redesign into main
Redesign the Pulse UI onto the LotusGuild Terminal Design System (#35) Closes #2 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRpdeploy-2026.09.09-52 |
||
|
|
1c3a2777c8 |
chore(deps): npm audit fix — ws 8.21.3, mysql2 3.24.4, qs 6.16.0 (0 vulnerabilities)
Lint / JS (eslint) (push) Successful in 10s
Lint / Notify on failure (push) Skipped
Test / JS Tests (jest) (push) Successful in 10s
Security / JS Security (npm audit) (pull_request) Successful in 10s
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 10s
Lint / Deploy (pull_request) Skipped
Security / JS Security (npm audit) (push) Successful in 10s
Test / JS Tests (jest) (pull_request) Successful in 11s
Lint / Notify on failure (pull_request) Skipped
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |
||
|
|
eca5cb45b1 |
feat(ui): TDS migration stage 3 — integration fixes, legacy removal, docs
Security / JS Security (npm audit) (pull_request) Failing after 10s
Lint / JS (eslint) (push) Successful in 11s
Lint / Notify on failure (push) Skipped
Test / JS Tests (jest) (push) Successful in 10s
Lint / JS (eslint) (pull_request) Successful in 10s
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 14s
Lint / Deploy (push) Skipped
Security / JS Security (npm audit) (push) Failing after 11s
Lint / Notify on failure (pull_request) Skipped
- Fix design-system class names that do not exist in base.css (.lt-alert--error, .lt-form-hint); add shared .lt-modal-lg, .lt-field-error and .is-invalid rules - Remove public/index.html and the public/base.js symlink - package.json: start script, correct main - README: vendored design system, Web UI section, new env vars, read-only dev mode Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |
||
|
|
68d0a906a6 |
feat(ui): TDS migration stage 2 — six page views and page modules
- Dashboard, Workers, Workflows, Executions, Quick Command, Scheduler pages on the shared layout, all behaviour via Pulse delegated actions (no inline handlers) - Executions: server-driven Manual/Automated views, compare mode, detail modal with all log types, ?open= deep link, cross-page re-run via sessionStorage - Workflows: run modal (dry-run available for every workflow), create modal pre-filled with the example definition - Fix EJS comment in page-header partial that broke rendering Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |
||
|
|
cbb91a306d |
feat(ui): TDS migration stage 1 — EJS layout, CSP, vendored design system, shared runtime
- Vendor web_template base.css/base.js (v1.2 bbec859) under public/web_template with sync script - Add views/layout.ejs (fixed upstream EJS comment delimiters, mobile drawer, cmd palette, keys help, WS status, theme toggle) and lib/render.js two-step renderer - Add page routes for /, /workers, /workflows, /executions, /quick, /scheduler (stub views) - helmet with strict nonce CSP (script-src-attr 'none'), /csp-report, report-only toggle - lib/pageauth.js: shared users upsert + HTML 401/403 for page routes - PULSE_DEV_READONLY guard disabling background writers for local testing - public/assets/app.js shared runtime (Pulse namespace, delegated actions, WS singleton, themed confirm modal) and app.css - eslint globals for browser files; ignore vendored assets Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |