Search chaos probe expects the wrong rebuild status #561

Open
opened 2026-10-01 00:44:54 +00:00 by kayg · 1 comment
Owner

During the real-server adversarial pass at HEAD 29b261a60, POST /api/v1/admin/search/rebuild returned HTTP 202 with a JobTriggerReceipt containing job_id and inserted. The route documents HTTP 202 in crates/calternal-server/src/wire.rs; tests/adversarial/search_chaos.py expects HTTP 200 and reports FAIL search chaos: admin staged rebuild. Keep the route contract and update the probe to accept 202 before it polls the integrity endpoint.

During the real-server adversarial pass at HEAD `29b261a60`, `POST /api/v1/admin/search/rebuild` returned HTTP 202 with a `JobTriggerReceipt` containing `job_id` and `inserted`. The route documents HTTP 202 in `crates/calternal-server/src/wire.rs`; `tests/adversarial/search_chaos.py` expects HTTP 200 and reports `FAIL search chaos: admin staged rebuild`. Keep the route contract and update the probe to accept 202 before it polls the integrity endpoint.
Author
Owner

Duplicate of #520: both report tests/adversarial/search_chaos.py expecting HTTP 200 from POST /api/v1/admin/search/rebuild while the route returns its documented HTTP 202 JobTriggerReceipt. Recommend keeping #561 as the tracking issue because it states the probe correction, and linking #520 as repeated evidence.

Duplicate of #520: both report tests/adversarial/search_chaos.py expecting HTTP 200 from POST /api/v1/admin/search/rebuild while the route returns its documented HTTP 202 JobTriggerReceipt. Recommend keeping #561 as the tracking issue because it states the probe correction, and linking #520 as repeated evidence.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#561
No description provided.