Repository navigation
fix: keep webhook runtime and monitor coherent - #333
Conversation
Ensure package runtime changes reload webhook ingress, resolve the monitor CLI from the active environment, and propagate monitor failures to systemd. Refs #299 Co-authored-by: Eduard Carreras <ecarreras@gisce.net>
Make dashboard and webhook runtime freshness directly auditable after deployment. Refs #299 Co-authored-by: Eduard Carreras <ecarreras@gisce.net>
pilipilisbot
left a comment
There was a problem hiding this comment.
Request changes: the new monitor CLI default breaks the installation path documented by this repository.
src/github_agent_bridge/monitor_alert.py:20 derives the CLI from sys.executable. With the documented python3 -m pip install --user ... (docs/installation.md), the monitor entry point runs under /usr/bin/python3, but the github-agent-bridge entry point is installed under the user scripts directory (~/.local/bin), not /usr/bin. I confirmed this environment resolves the proposed default to /usr/bin/github-agent-bridge while sysconfig.get_path("scripts", scheme="posix_user") is /home/openclaw/.local/bin. The timer would fail to execute the monitor instead of gaining same-runtime coherence. Please resolve the companion CLI from the installation's scripts location (with an explicit override still honored), and cover the documented user-install case as well as the venv case.
The broader webhook reload classification and health-version additions look coherent. I checked the full PR diff, service units and installation guidance, and ran PYTHONPATH=src .../python -m pytest -q -p no:cacheprovider tests/test_autoupdate.py tests/test_monitor_alert.py tests/test_backend.py tests/test_webhook.py: 197 passed. CI dashboard and Python 3.11/3.12 are green. No repository files were changed.
|
Confirmed: this is a merge blocker on the current head 05eeb88. The 19 existing monitor-alert tests pass, but they encode the broken assumption: under the documented pip --user install, the default resolves to /usr/bin/github-agent-bridge while the installed companion entrypoint is /home/openclaw/.local/bin/github-agent-bridge. The monitor timer would fail at runtime.\n\nFor the next revision, derive the companion CLI from the actual monitor entrypoint directory and keep GITHUB_AGENT_BRIDGE_BIN as the explicit override. That is safer than selecting a sysconfig scheme heuristically and naturally covers both user-site and venv installs; add direct regressions for both entrypoint layouts. I did not modify the branch under this review-only run. |
|
@giscebot què carai penses fer per arreglar el que diu @pilipilisbot ? |
|
Resposta curta: en aquest torn no puc tocar la branca perquè ha entrat explícitament com a El canvi concret que ha de portar la següent revisió és:
Ho he tornat a reproduir sobre |
|
@giscebot implementa-ho |
Use the monitor console script location for both user-site and virtualenv installs while preserving the explicit binary override.\n\nCo-authored-by: ecarreras <ecarreras@users.noreply.github.com>
|
Implementat i pujat a
Validació:
El bloqueig tècnic de la review queda corregit; l'estat |
|
@pilipilisbot revisa aquesta pull-request |
pilipilisbot
left a comment
There was a problem hiding this comment.
Approved on c414a23faa78ffe20b65c133004278fbd041261a. The earlier blocker is resolved: the monitor now derives the companion CLI from the invoked monitor entrypoint (including a PATH lookup), while GITHUB_AGENT_BRIDGE_BIN remains the explicit override. The user-install and virtualenv layouts have direct regressions. I also checked the local symlinked user entrypoint: it resolves to a virtualenv containing the companion CLI.
Read-only validation: 199 focused tests passed (test_autoupdate, test_monitor_alert, test_backend, test_webhook); git diff --check passed and the worktree is clean. GitHub dashboard and Python 3.11/3.12 checks are green on this head. The two agent status checks were still pending when I submitted this review, so this approval does not assert that every required check is complete.
|
He revisat el cap actual Però hi ha un bloqueig nou al classificador d'autoupdate: [P1] No classifiqueu tot el paquet com a El test nou no detecta la regressió perquè injecta manualment No he modificat la branca. Amb aquest punt, la PR encara no és segura per merge. |
|
Post-merge sync completada.
PR: #333 |
|
Post-merge verificat: la PR #333 és Risc pendent per al proper release: el P1 d'autoupdate ja assenyalat continua al |
|
Revalidat contra el La reiniciada coordinada descrita a #333 cobreix aquest desplegament concret, però no fa segura una actualització futura de mòduls compartits. Com que la PR ja està fusionada i aquest torn és |
TASK-85718
Refs #299
What changed
GITHUB_AGENT_BRIDGE_BINas the explicit overrideValidation
pytest -q tests/test_monitor_alert.py— 21 passedpytest -q— 680 passedc414a23Rollout
No webhook mode change. After merge/release, restart webhook, dashboard, executor and monitor; verify both health endpoints report the released version.