CLI hangs if EPICS envvars are set

Aperta
#1,397 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

From the project root, source tests/system_tests/.env and run uv run blueapi with the IOCs stopped to reproduce the delay. Trace how the CLI handles the EPICS environment variables and compare the behavior with issue #1147 and its mock signal. Done means the command exits promptly when no IOC is available.

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

Descrizione

bug c: cli

If blueapi is used while the epics environment variables are set but the IOCs are not running (so nothing connects), the command hangs for ~30s before exiting.

From the root of the project

$ source tests/system_tests/.env
$ uv run blueapi
CAC: Unable to connect because "Connection refused"
Please invoke subcommand!
CAC TCP socket shutdown ERROR was Transport endpoint is not connected
$ 

The command does exit eventually but takes ~30s.

The variables set by the env file are

export EPICS_CA_NAME_SERVERS=127.0.0.1:9064
export EPICS_PVA_NAME_SERVERS=127.0.0.1:9075
export EPICS_CA_ADDR_LIST=127.0.0.1:9064

This feels like it's another occurrence of #1147 but not fixed by the mock signal created last time

Lingua principale
Python
Stelle
14
Fork
14
Merge medio
2g 23h
PR unite (30g)
27

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 DiamondLightSource/blueapi

Tutte le issue di DiamondLightSource/blueapi

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.