Skip to content

Commit fdc8e28

Browse files
committed
test: align merged regressions with JSON and daemon diagnostics contracts
Request format=json in incremental search pagination coverage because the assertion examines the JSON groups field. Request cli --verbose in both cold-start guidance checks, matching the integration base informational logging policy. Grow POSIX and Windows busy-index fixtures from 2,000 to 20,000 real files so indexing spans status/stop CLI startup and executable hashing. The smaller fixture was observed completing between committed-client status and stop, allowing a correct stop and producing a false failure. Document the bounded workload ceiling and admission-barrier upgrade path. The complete isolated POSIX lifecycle smoke passes; native Windows execution remains unavailable on this Linux host.
1 parent cbda1b1 commit fdc8e28

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎tests/test_daemon_smoke.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def create_repo(root):
134134

135135
def create_busy_repo(root):
136136
root.mkdir()
137-
for index in range(2000):
137+
# ponytail: bounded workload; use an admission barrier if indexing outruns CLI startup.
138+
for index in range(20000):
138139
(root / ("module_{:04d}.py".format(index))).write_text(
139140
"def value_{}():\n return {}\n".format(index, index), encoding="utf-8"
140141
)
@@ -252,7 +253,7 @@ def main():
252253
"daemon status did not report an absent daemon",
253254
)
254255

255-
cold = run_cli(binary, cache, ["projects", "--json"])
256+
cold = run_cli(binary, cache, ["cli", "--verbose", "list_projects", "--json"])
256257
require_json(cold, "cold projects")
257258
check(
258259
"daemon start" in output_text(cold),
@@ -329,7 +330,7 @@ def projects_call(index):
329330
"stale daemon state did not clear after SIGKILL",
330331
)
331332

332-
post_crash = run_cli(binary, cache, ["projects", "--json"])
333+
post_crash = run_cli(binary, cache, ["cli", "--verbose", "list_projects", "--json"])
333334
require_json(post_crash, "post-crash cold projects")
334335
check(
335336
"daemon start" in output_text(post_crash),

‎tests/test_incremental.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ TEST(tool_sg_offset) {
13751375
double ms;
13761376
char *r = call_tool_timed("search_graph", &ms,
13771377
"{\"project\":\"%s\",\"label\":\"Function\","
1378-
"\"limit\":5,\"offset\":10}",
1378+
"\"limit\":5,\"offset\":10,\"format\":\"json\"}",
13791379
g_project);
13801380
TOOL_OK(r, ms);
13811381
ASSERT(resp_has_key(r, "groups"));

‎tests/windows/test_daemon_stability.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ def make_busy_repo(work):
245245
"""Many tiny source files keep a real foreground index client attached."""
246246
repo = os.path.join(work, "busy-repo")
247247
os.makedirs(repo, exist_ok=True)
248-
for index in range(2000):
248+
# ponytail: bounded workload; use an admission barrier if indexing outruns CLI startup.
249+
for index in range(20000):
249250
with open(os.path.join(repo, "module_%04d.py" % index), "w",
250251
encoding="utf-8") as handle:
251252
handle.write("def value_%d():\n return %d\n" % (index, index))

0 commit comments

Comments
 (0)