@colony2/cortex 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ when you need job execution.
|
|
|
88
88
|
| --- | --- |
|
|
89
89
|
| `server/cmd/cortex` | Production API and embedded UI |
|
|
90
90
|
| `server/cmd/api` | Development API using remote JobDB |
|
|
91
|
-
| `server/cmd/uitestserver` | In-memory test API and HTTP test JobDB |
|
|
91
|
+
| `server/cmd/uitestserver` | In-memory test API and HTTP test JobDB; `--jobdb-only --sqlite` uses temporary SQLite storage |
|
|
92
92
|
| `server/internal/cortex` | Routes, tenant/cell mapping, and c2j integration |
|
|
93
93
|
| `server/internal/webdist` | Embedded production web assets |
|
|
94
94
|
| `web/app` | React application |
|
|
@@ -103,14 +103,34 @@ pnpm test:api # Go tests, including remote JobDB integration
|
|
|
103
103
|
pnpm typecheck:web
|
|
104
104
|
pnpm test:web
|
|
105
105
|
pnpm test:e2e # Browser tests against development and embedded production UI
|
|
106
|
+
pnpm --filter @colony2/app test:e2e --project=production recipe-input.spec.ts
|
|
106
107
|
node --test npm/cortex/test/*.test.cjs
|
|
107
108
|
```
|
|
108
109
|
|
|
109
110
|
Playwright installs Chromium if missing. On a fresh Linux host, first run
|
|
110
111
|
`pnpm --filter @colony2/app exec playwright install-deps chromium`.
|
|
111
|
-
The suite manages its own servers on ports 15173 and 18081–18083
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
The suite manages its own servers on ports 15173 and 18081–18083. It covers
|
|
113
|
+
submission, stories, tenants, cells, and input events. The production tests use
|
|
114
|
+
HTTP JobDB backed by temporary SQLite storage.
|
|
115
|
+
|
|
116
|
+
The recipe-input tests build the pinned c2j command and execute real Git-backed
|
|
117
|
+
recipes with single-question and multi-field input requests. They submit jobs
|
|
118
|
+
through the browser, observe pending requests in a second tab over SSE, check
|
|
119
|
+
required fields and page reloads, submit answers while the worker is stopped,
|
|
120
|
+
and restart it to verify the exact recipe output and completed story. They also
|
|
121
|
+
cover cancellation from another client, rejected late answers, and consecutive
|
|
122
|
+
prompts in one job without reloading either tab. Each test has a separate tenant
|
|
123
|
+
and temporary Git repository; the fixture cell's Git URL
|
|
124
|
+
is mapped to that repository in the worker's environment. No API or EventSource
|
|
125
|
+
mocks are used in these tests. Worker logs and recipe outcomes are attached to
|
|
126
|
+
the Playwright report in `web/app/playwright-report`.
|
|
127
|
+
|
|
128
|
+
The timeout regression also runs against the real worker. It currently records
|
|
129
|
+
an **expected failure**: with c2j v0.0.53 / JobDB v0.0.19, an unanswered external
|
|
130
|
+
input task remains pending past its recipe deadline. Step deadlines have the
|
|
131
|
+
same limitation. The test first verifies that the prompt appears, then marks
|
|
132
|
+
only a confirmed still-pending outcome after the deadline as expected; setup
|
|
133
|
+
and other failures still fail CI. Timeout handling needs an upstream JobDB fix.
|
|
114
134
|
|
|
115
135
|
## Releases
|
|
116
136
|
|