test(mcp): the 2 s protocol-call deadline in the MCP test harness is flaky on slow Windows runners

Chiusa
#395 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #405 di @cristim — integrata

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
testing

Direzione di ricerca

Read src/mcp_tests/mod.rs around the deadline arm and inspect how the MCP harness starts protocol calls. Decide how the configured deadline is read once and how the short local default is preserved, then add the requested configuration test. Done means a configured value is honored and genuinely stalled calls still fail within the selected deadline.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

priority/p3 type/bug urgency/this-quarter

The MCP test harness gives each protocol call a fixed 2 s deadline (src/mcp_tests/mod.rs, the sleep_until(deadline) => panic!("protocol call did not complete") arm). On a slow or loaded runner a correct call can miss it, and the test panics with no assertion failure.

Observed: Check (windows-2025), run 42235641613, on PR #242 head 0840f9d. Two tests in official_client/files.rs panicked at src/mcp_tests/mod.rs:172 with "protocol call did not complete":

  • open_scene_failure_withholds_directory_and_file_names
  • native_sdk_saved_source_changed_is_an_acknowledged_write_and_blocks_discard

The commit under test touched neither file. The same message has also appeared locally under heavy machine load.

Proposed fix: make the deadline configurable, for example through an environment variable read once with a documented default, or longer on CI. Keep a short deadline locally, so a call that really hangs still fails fast. Add a test that the configured value is honoured.

Lingua principale
Rust
Stelle
4
Fork
2
Merge medio
1g 1h
PR unite (30g)
225

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cristim/AztecCraft

Tutte le issue di cristim/AztecCraft

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.