ACP test setup leaks session settings into the test process
I maintainer di solito rispondono entro 5 giorni
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
What happens
Starting an ACP test changes the test process's SYMPOSIUM_HOME, SYMPOSIUM_HOOK_TRACE, and PATH, even when the agent fails to launch. Other tests and child processes can then inherit settings meant for that session.
This affects opt-in ACP agent testing (SYMPOSIUM_ENABLE_AGENT_TESTING with an ACP backend selected), not simulation-only runs or the default Claude SDK backend. Three tests in tests/hook_agent.rs enter this path: two exercise ACP scenarios; the third starts a session before skipping its Claude-SDK-only assertions.
Steps to reproduce
- Give the test process a known
SYMPOSIUM_HOME. - Call
run_with_acp_sessionwith a nonexistent agent executable. - After the launch error, compare the process environment with its original values.
Actual result
The launch fails with:
The system cannot find the file specified. (os error 2)
The regression then fails with:
assertion `left == right` failed: ACP launch failure changed SYMPOSIUM_HOME in the test process
The value now points to the session's temporary directory instead of the original home.
Expected result
ACP setup should leave the test process's environment unchanged, whether the agent starts or fails.
Environment
- Symposium:
3516c051, with an uncommitted regression. - Agent: deliberately nonexistent executable; no account or network needed.
- OS: Windows.
Notes
Reproduced independently by both of us. The local regression is tests::acp_launch_failure_preserves_environment in symposium-testlib.
run_with_acp_session sets process-wide variables before spawning the agent. On Unix this also raises an environment-mutation safety concern; no memory corruption has been reproduced.
- Lingua principale
- Rust
- Stelle
- 247
- Fork
- 30
- Merge medio
- 4g 19h
- PR unite (30g)
- 44
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di symposium-dev/symposium
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
symposium-dev/symposium#530 ·
I maintainer di solito rispondono entro 5 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
symposium-dev/symposium#406 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
symposium-dev/symposium#369 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
symposium-dev/symposium#208 ·
I maintainer di solito rispondono entro 5 giorni
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
symposium-dev/symposium#531 ·
I maintainer di solito rispondono entro 5 giorni
Tutte le issue di symposium-dev/symposium
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
topgrade-rs/topgrade#2540 ·
I maintainer di solito rispondono entro 1 giorno
-
Invalid JSON options for ngram and edge_ngram silently use defaultsForse già presa @Tilendlesa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
noemaforge/vimanam#153 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 3 giorni