Repository navigation
Commit 0311189
committed
fix(step4): align async, budget and usage tests with the merged daemon frame
Jenkins release-tooling DeusData#61 ran the full suite on sync/upstream-step4 and 5
tests failed. All 5 were stale expectations left after step 2 merged into
step 4.
- daemon_application async tests (5271, 5321 and the cancelled-sync
reply). Daemon application responses are binary frames: an error-flag
byte followed by a length-delimited payload with no trailing NUL. The
step-4 helpers strdup'd that frame, which reads as "". Add
app_async_frame_to_wire(), which converts the frame into an operation
result wire so app_async_contains() decodes the payload and error flag.
The now-unused app_async_call_response() is removed.
- The cancelled-sync reply now asserts the CLI wording "--status" instead
of the MCP-style "status: true".
- daemon_application_over_budget_response_passes_through_without_recovery
asserts the frame's error flag is set and the payload names
over_memory_budget. The error travels in the flag, not in a payload key.
- cli activation-scope tests (2187, 2238): the kept-daemon notice tells the
user to run "codebase-memory-cli daemon stop". The test still expected the
upstream binary name.
- cli_usage_points_to_tool_format_json_issue2102: port upstream DeusData#2102 to
the CLI. CBM_CLI_USAGE now says that tools accepting format support
--format tree|json (default tree), and that --format json prints the tool
payload JSON. The fork's tools declare format in tool_catalog. The test
asserts that text and that the usage never mentions MCP. Upstream's
"outer --json prints the MCP envelope" line is not carried over.
Local runs: `scripts/test.sh --suites daemon_application` and
`scripts/test.sh --suites cli` both pass.1 parent c8320ce commit 0311189
3 files changed
Lines changed: 34 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2146 | 2146 | | |
2147 | 2147 | | |
2148 | 2148 | | |
2149 | | - | |
| 2149 | + | |
2150 | 2150 | | |
2151 | 2151 | | |
2152 | 2152 | | |
| |||
13140 | 13140 | | |
13141 | 13141 | | |
13142 | 13142 | | |
13143 | | - | |
13144 | | - | |
| 13143 | + | |
| 13144 | + | |
13145 | 13145 | | |
13146 | 13146 | | |
13147 | 13147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4974 | 4974 | | |
4975 | 4975 | | |
4976 | 4976 | | |
4977 | | - | |
4978 | | - | |
4979 | | - | |
| 4977 | + | |
| 4978 | + | |
| 4979 | + | |
4980 | 4980 | | |
4981 | | - | |
4982 | | - | |
4983 | | - | |
4984 | | - | |
| 4981 | + | |
| 4982 | + | |
4985 | 4983 | | |
4986 | 4984 | | |
4987 | 4985 | | |
| |||
5184 | 5182 | | |
5185 | 5183 | | |
5186 | 5184 | | |
5187 | | - | |
5188 | | - | |
5189 | | - | |
5190 | | - | |
5191 | 5185 | | |
5192 | 5186 | | |
5193 | 5187 | | |
| |||
5203 | 5197 | | |
5204 | 5198 | | |
5205 | 5199 | | |
| 5200 | + | |
| 5201 | + | |
| 5202 | + | |
| 5203 | + | |
| 5204 | + | |
| 5205 | + | |
| 5206 | + | |
| 5207 | + | |
| 5208 | + | |
| 5209 | + | |
| 5210 | + | |
| 5211 | + | |
| 5212 | + | |
| 5213 | + | |
| 5214 | + | |
| 5215 | + | |
| 5216 | + | |
| 5217 | + | |
5206 | 5218 | | |
5207 | 5219 | | |
5208 | 5220 | | |
| |||
5212 | 5224 | | |
5213 | 5225 | | |
5214 | 5226 | | |
5215 | | - | |
| 5227 | + | |
5216 | 5228 | | |
5217 | 5229 | | |
5218 | 5230 | | |
| |||
5441 | 5453 | | |
5442 | 5454 | | |
5443 | 5455 | | |
5444 | | - | |
| 5456 | + | |
| 5457 | + | |
| 5458 | + | |
5445 | 5459 | | |
5446 | 5460 | | |
5447 | 5461 | | |
| |||
5456 | 5470 | | |
5457 | 5471 | | |
5458 | 5472 | | |
5459 | | - | |
| 5473 | + | |
5460 | 5474 | | |
5461 | 5475 | | |
5462 | 5476 | | |
| |||
0 commit comments