[
https://issues.apache.org/jira/browse/DISPATCH-1384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16955977#comment-16955977
]
Jiri Daněk commented on DISPATCH-1384:
--------------------------------------
I can reproduce the utf-8 issue:
Use config for the system_tests_topology_disposition test
{noformat}
$ cd
/Applications/CLion.app/Contents/bin/system_test.dir/system_tests_topology_disposition/TopologyDispositionTests/setUpClass
{noformat}
When running normally (with routers B, C, and D present, so that router A has
somebody to talk to)
$ /Users/cloud-user/repos/qpid/py3venv/bin/python
"/Users/cloud-user/repos/qpid/qpid-dispatch/build/tests/run.py" -x qdrouterd -c
A.conf -I /Users/cloud-user/repos/qpid/qpid-dispatch/python
$ less A.log
2019-10-21 01:46:38.790093 -0700 SERVER (trace) [3]:0 <- @transfer(20)
[handle=1, delivery-id=0,
delivery-tag=bhugahugahugacaka"\x01\x00\x00\x00\x00\x00\x00\x00",
message-format=0, settled=true] (228)
"\x00Sp<D0>\x00\x00\x00\x05\x00\x00\x00\x01B\x00Sr<D1>\x00\x00\x00U\x00\x00\x00\x08<A3>\x0ex-opt-qd.trace<D0>\x00\x00\x00\x09\x00\x00\x00\x01<A1>\x030/B<A3>\x10x-opt-qd.ingress<A1>\x030/B<A3>\x09x-opt-qd.<A1>\x01X<A3>\x09x-opt-qd.<A1>\x01X\x00Ss<D0>\x00\x00\x00\x1f\x00\x00\x00\x06@@<A1>\x14amqp:/_local/qdhello@@@\x00St<D1>\x00\x00\x00\x13\x00\x00\x00\x02<A1>\x06opcode<A1>\x05HELLO\x00Sw<D1>\x00\x00\x000\x00\x00\x00\x0a<A1>\x02id<A1>\x01B<A1>\x02pvT\x01<A1>\x04area<A1>\x010<A1>\x08instanceq]<AD>pm<A1>\x04seenE"
(/Users/cloud-user/repos/qpid/qpid-dispatch/src/server.c:107)
{noformat}
If I run router A directly from command line, not under run.py, it prints
normally.
{noformat}
$ qdrouterd -c A.conf -I /Users/cloud-user/repos/qpid/qpid-dispatch/python
$ less A.log
2019-10-21 01:56:59.357946 -0700 SERVER (trace) [1]:0 <- @transfer(20)
[handle=1, delivery-id=0,
delivery-tag=bhugahugahugacaka"\xa4\x04\x00\x00\x00\x00\x00\x00",
message-format=0, settled=true] (228)
"\x00Sp\xd0\x00\x00\x00\x05\x00\x00\x00\x01B\x00Sr\xd1\x00\x00\x00U\x00\x00\x00\x08\xa3\x0ex-opt-qd.trace\xd0\x00\x00\x00\x09\x00\x00\x00\x01\xa1\x030/D\xa3\x10x-opt-qd.ingress\xa1\x030/D\xa3\x09x-opt-qd.\xa1\x01X\xa3\x09x-opt-qd.\xa1\x01X\x00Ss\xd0\x00\x00\x00\x1f\x00\x00\x00\x06@@\xa1\x14amqp:/_local/qdhello@@@\x00St\xd1\x00\x00\x00\x13\x00\x00\x00\x02\xa1\x06opcode\xa1\x05HELLO\x00Sw\xd1\x00\x00\x000\x00\x00\x00\x0a\xa1\x02id\xa1\x01D\xa1\x02pvT\x01\xa1\x04area\xa1\x010\xa1\x08instanceq]\xadps\xa1\x04seenE"
(/Users/cloud-user/repos/qpid/qpid-dispatch/src/server.c:107)
{noformat}
(Please ignore "bhugahugahugacaka", I put it into proton when looking for log
statement.)
I still don't know whats the problematic thing run.py does. It is _not_ about
locales, because that does not change
{noformat}
(py3venv) Clouds-iMac:setUpClass cloud-user$
/Users/cloud-user/repos/qpid/py3venv/bin/python
"/Users/cloud-user/repos/qpid/qpid-dispatch/build/tests/run.py" -x python -c
'import subprocess; print(subprocess.check_output("locale"))'
b'LANG=\nLC_COLLATE="C"\nLC_CTYPE="UTF-8"\nLC_MESSAGES="C"\nLC_MONETARY="C"\nLC_NUMERIC="C"\nLC_TIME="C"\nLC_ALL=\n'
(py3venv) Clouds-iMac:setUpClass cloud-user$ python -c 'import subprocess;
print(subprocess.check_output("locale"))'b'LANG=\nLC_COLLATE="C"\nLC_CTYPE="UTF-8"\nLC_MESSAGES="C"\nLC_MONETARY="C"\nLC_NUMERIC="C"\nLC_TIME="C"\nLC_ALL=\n'
{noformat}
> Fix tests in Travis CI on macOS
> -------------------------------
>
> Key: DISPATCH-1384
> URL: https://issues.apache.org/jira/browse/DISPATCH-1384
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Tests
> Reporter: Jiri Daněk
> Assignee: Jiri Daněk
> Priority: Major
> Labels: macOS
>
> {noformat}
> The following tests FAILED:
> 9 - unit_tests (SEGFAULT)
> 23 - system_tests_policy (Timeout)
> 28 - system_tests_sasl_plain (Failed)
> 38 - system_tests_auth_service_plugin (Failed)
> 39 - system_tests_authz_service_plugin (Failed)
> 48 - system_tests_bad_configuration (Failed)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]