Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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)
cell.py: aftercopy_tree(seed, ws)and the SEEDTREE check, hard-link the sharedbackend/node_modulesandfrontend/node_modulesintows(cp -al-style, no data copy); excludenode_modules,dist,.angularfrom the finalworkspace.sha256and from any digest of the workspace.MANIFEST.sha256:python3 scripts/e2e/codex/tasks/freeze.py(this task is picked up bytaskfile.task_ids); read-only install on the server like the other tasks.- 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). - Server
npm ciof the shared trees: see../NOTES.md.