I installed a new machine and it has Python 3.7.2. I'm seeing a bunch
of test failures all of the same form, for tests 2139 2141 2143 2145
2147 2149 2153. Here's the log for 2139. Can anyone advise? Unicode
in Python is *so* perilous.
# -*- compilation -*-
2139. ovsdb-idl.at:456: testing simple idl, writing via IDL with unicode -
Python3 ...
../../tests/ovsdb-idl.at:456: ovsdb_start_idltest
../../tests/ovsdb-idl.at:456: ovsdb-client transact unix:socket '["idltest",
{"op": "insert",
"table": "simple",
"row": {"s": "(╯°□°)╯︵ ┻━┻"}}]'
stderr:
stdout:
[{"uuid":["uuid","4709eb9f-f097-417e-aa72-ed8272408d7f"]}]
../../tests/ovsdb-idl.at:456: $PYTHON3 $srcdir/test-ovsdb.py -t10 idl
$srcdir/idltest.ovsschema unix:socket 'set 0 b 1, insert 1, set 1 s "¯\_(ツ)_/¯"'
stderr:
2019-01-15T05:48:59Z | 0 | reconnect | DBG | unix:socket: entering BACKOFF
2019-01-15T05:48:59Z | 1 | reconnect | INFO | unix:socket: connecting...
2019-01-15T05:48:59Z | 2 | reconnect | DBG | unix:socket: entering CONNECTING
2019-01-15T05:48:59Z | 3 | poller | DBG | [POLLOUT] on fd 4
2019-01-15T05:48:59Z | 4 | reconnect | INFO | unix:socket: connected
2019-01-15T05:48:59Z | 5 | reconnect | DBG | unix:socket: entering ACTIVE
2019-01-15T05:48:59Z | 6 | jsonrpc | DBG | unix:socket: send request,
method="monitor_cond",
params=["idltest","41507454-1889-11e9-afda-34e12ddfbbd2",{"link1":[{"columns":["i","k","ka","l2"]}],"link2":[{"columns":["i","l1"]}],"simple":[{"columns":["b","ba","i","ia","r","ra","s","sa","u","ua"]}],"simple2":[{"columns":["name","smap","imap"]}],"simple3":[{"columns":["name","uset","uref"]}],"simple4":[{"columns":["name"]}],"singleton":[{"columns":["name"]}]}],
id=0
2019-01-15T05:48:59Z | 7 | poller | DBG | [POLLIN] on fd 4
Traceback (most recent call last):
File "/usr/lib/python3.7/sre_parse.py", line 1021, in parse_template
this = chr(ESCAPES[this][1])
KeyError: '\\u'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "../../../../tests/test-ovsdb.py", line 897, in <module>
main(sys.argv)
File "../../../../tests/test-ovsdb.py", line 892, in main
func(*args)
File "../../../../tests/test-ovsdb.py", line 652, in do_idl
while idl.change_seqno == seqno and not idl.run():
File "/home/blp/nicira/ovs/python/ovs/db/idl.py", line 230, in run
msg = self._session.recv()
File "/home/blp/nicira/ovs/python/ovs/jsonrpc.py", line 570, in recv
error, msg = self.rpc.recv()
File "/home/blp/nicira/ovs/python/ovs/jsonrpc.py", line 303, in recv
msg = self.__process_msg()
File "/home/blp/nicira/ovs/python/ovs/jsonrpc.py", line 353, in __process_msg
self.__log_msg("received", msg)
File "/home/blp/nicira/ovs/python/ovs/jsonrpc.py", line 234, in __log_msg
vlog.dbg("%s: %s %s" % (self.name, title, msg))
File "/home/blp/nicira/ovs/python/ovs/vlog.py", line 184, in dbg
self.__log("DBG", message, **kwargs)
File "/home/blp/nicira/ovs/python/ovs/vlog.py", line 87, in __log
msg = self._build_message(message, f, level, msg_num)
File "/home/blp/nicira/ovs/python/ovs/vlog.py", line 103, in _build_message
tmp = self._format_field(tmp, m, message)
File "/home/blp/nicira/ovs/python/ovs/vlog.py", line 142, in _format_field
return re.sub(match, replace, tmp)
File "/usr/lib/python3.7/re.py", line 192, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/lib/python3.7/re.py", line 309, in _subx
template = _compile_repl(template, pattern)
File "/usr/lib/python3.7/re.py", line 300, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "/usr/lib/python3.7/sre_parse.py", line 1024, in parse_template
raise s.error('bad escape %s' % this, len(this))
re.error: bad escape \u at position 105
stdout:
../../tests/ovsdb-idl.at:456: exit code was 1, expected 0
2139. ovsdb-idl.at:456: 2139. simple idl, writing via IDL with unicode -
Python3 (ovsdb-idl.at:456): FAILED (ovsdb-idl.at:456)
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev