test failure: test_2_library_instances
- 2020-06-16: https://gitlab.esrf.fr/bliss/bliss/-/jobs/112220
- 2020-05: https://gitlab.esrf.fr/bliss/bliss/-/jobs/99559
- 2020-05-26:: https://gitlab.esrf.fr/bliss/bliss/-/jobs/105712
___________________________ test_2_library_instances ___________________________
bliss_tango_server = ('tango://localhost:39813/id00/bliss/test',
<DeviceProxy at 0x7f031c4ea140 wrapping Bliss(id00/bliss/test) at
0x7f031c...evice_proxy at 0x7f0398c88710>, green_mode=tango._tango.GreenMode.Gevent),
'tango://localhost:39813/id00/bliss/test')>)
s1hg = <bliss.common.axis.Axis object at 0x7f031c3f4cd0>
s1f = <bliss.common.axis.Axis object at 0x7f031c3c5310>
s1b = <bliss.common.axis.Axis object at 0x7f031c2f1ad0>
ports = Ports(redis_port=54526, tango_port=39813, beacon_port=47866, cfgapp_port=58797)
def test_2_library_instances(bliss_tango_server, s1hg, s1f, s1b, ports):
s1hg.dial = 1
s1hg.position = 1
assert s1f.position == 0.5
assert s1b.position == 0.5
assert s1hg.position == 1
dev_name, proxy = bliss_tango_server
tango_s1hg = DeviceProxy(
"tango://localhost:{}/id00/bliss_test/s1hg".format(ports.tango_port)
)
assert tango_s1hg.read_attribute("position").value == 1
assert tango_s1hg.read_attribute("offset").value == 0
t0 = time.time()
s1f.velocity = 1
s1b.velocity = 1
eval_id = proxy.eval("(s1f.velocity, s1b.velocity)")
res = proxy.get_result(eval_id)
> assert decode_tango_eval(res) == (1, 1)
tests/motors/test_tango_axis.py:42:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = ''
def decode_tango_eval(x):
> return pickle.loads(base64.b64decode(x))
E EOFError: Ran out of input
tests/motors/test_tango_axis.py:18: EOFError
- 2020-06-23: https://gitlab.esrf.fr/bliss/bliss/-/jobs/114403 Not the same error ?
__________________ ERROR at setup of test_2_library_instances __________________
ports = Ports(redis_port=52709, tango_port=55598, beacon_port=55882, cfgapp_port=44234)
beacon = <bliss.config.static.Config object at 0x7f26088d5650>
@pytest.fixture
def bliss_tango_server(ports, beacon):
db = Database()
device_name = "id00/bliss/test"
fqdn_prefix = f"tango://{os.environ['TANGO_HOST']}"
device_fqdn = f"{fqdn_prefix}/{device_name}"
admin_device_fqdn = f"{fqdn_prefix}/dserver/bliss/test"
bliss_ds = [sys.executable, "-u", "-m", "bliss.tango.servers.bliss_ds"]
p = subprocess.Popen(bliss_ds + ["test"])
dev_proxy = DeviceProxy(device_fqdn)
adm_dev_proxy = DeviceProxy(admin_device_fqdn)
with gevent.Timeout(10, RuntimeError("Bliss tango server is not running")):
while True:
# wait for admin device to be ready
# it is ready last, according to Tango experts
try:
adm_dev_proxy.ping()
except DevFailed as e:
> gevent.sleep(0.5)
tests/conftest.py:311:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/conda/envs/testenv/lib/python3.7/site-packages/gevent/hub.py:159: in sleep
hub.wait(t)
src/gevent/_hub_primitives.py:46: in gevent.__hub_primitives.WaitOperationsGreenlet.wait
???
src/gevent/_hub_primitives.py:55: in gevent.__hub_primitives.WaitOperationsGreenlet.wait
???
src/gevent/_waiter.py:151: in gevent.__waiter.Waiter.get
???
src/gevent/_greenlet_primitives.py:60: in gevent.__greenlet_primitives.SwitchOutGreenletWithLoop.switch
???
src/gevent/_greenlet_primitives.py:60: in gevent.__greenlet_primitives.SwitchOutGreenletWithLoop.switch
???
src/gevent/_greenlet_primitives.py:64: in gevent.__greenlet_primitives.SwitchOutGreenletWithLoop.switch
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E RuntimeError: Bliss tango server is not running
Edited by Matias Guijarro