Files
leleka/scripts/e2e/codex/tasks/nestng-crm/reference/NOTES.md
T

1.9 KiB

Reference solution notes (never installed on the server)

overlay/ holds the files that, copied over seed/, make accept.py pass 56/56: the whole backend (src/, test/crm.e2e-spec.ts; 15 unit and 15 e2e tests) and the frontend (src/app/*, proxy.conf.json, angular.json with proxyConfig). It only adds or replaces files: the seed has no file that would have to be deleted.

Running selftest.py nestng-crm (no edit of selftest.py is needed)

selftest.py builds the workspace from seed/ (+ reference/overlay/) WITHOUT node_modules, so accept.py needs NESTNG_NM_ROOT, a directory that holds backend/node_modules and frontend/node_modules (made with npm ci from the two seed lockfiles; on the laptop it was .../scratchpad/nestng-dev/ci):

NESTNG_NM_ROOT=/path/to/nm-root python3 scripts/e2e/codex/tasks/selftest.py nestng-crm
# nestng-crm         seed: ok rc=1 79.1s                seed+overlay: ok rc=0 21.6s
# selftest: all good

On the server add NESTNG_NODE_BIN=<dir of node and npm> if node is not on PATH. selftest compares workspace_lines before and after the acceptance run: unchanged.

What the main session has to add for the real runner (not in this task directory)

  1. cell.py: after copy_tree(seed, ws) and the SEEDTREE check, hard-link the shared backend/node_modules and frontend/node_modules into ws (cp -al-style, no data copy); exclude node_modules, dist, .angular from the final workspace.sha256 and from any digest of the workspace.
  2. MANIFEST.sha256: python3 scripts/e2e/codex/tasks/freeze.py (this task is picked up by taskfile.task_ids); read-only install on the server like the other tasks.
  3. Node on PATH in the Codex shell and for accept.py (NESTNG_NODE_BIN); the allowed acceptance run time of this task is up to 300 s (README says < 120 s for the others).
  4. Server npm ci of the shared trees: see ../NOTES.md.