tools: install Codex into the worker executable path

Use a global npm install within the service user's prefix so the configured .local/bin launcher exists. Exercise npm with an offline synthetic package and check the installed launcher without contacting a provider.

Refs #19
This commit is contained in:
Florian Schmidt
2026-11-15 11:15:06 +01:00
parent 583f920307
commit e1488243e1
3 changed files with 58 additions and 1 deletions
+5
View File
@@ -232,6 +232,11 @@ of configuration/keys, partial setup, stopped services and activation rollback.
a real Proxmox create/update, Linux build, certificate issuance or provider login. No Proxmox
host/container was changed while developing this script.
One installer regression uses real Node.js/npm with an offline synthetic package to check the
configured Codex launcher and repeat installation. It skips explicitly when Node.js/npm are
unavailable. On Windows its fixture adapts npm's global-prefix layout to the guest's Linux `bin`
path; that checks npm install mode and actual files without claiming Linux execution.
Updater tests use real local Git repositories and Bash with a synthetic installer. They verify
two-version fast-forward deployment, no-change retry, dirty/diverged/ahead/detached refusal,
fetch failure, dry-run, exit status, ignored-state retention and ignored-file collisions. Advisory lock command results