[
https://issues.apache.org/jira/browse/QPID-8606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17709861#comment-17709861
]
ASF subversion and git services commented on QPID-8606:
-------------------------------------------------------
Commit da9e2200f0e6b0e7e04ed41a015051341b3502f8 in qpid-cpp's branch
refs/heads/main from Jiri Daněk
[ https://gitbox.apache.org/repos/asf?p=qpid-cpp.git;h=da9e2200f ]
QPID-8610: add GitHub Actions workflow to build project and run ctest (#34)
Github Actions don't run on the PR, so I am monitoring it on my fork,
https://github.com/jiridanek/qpid-cpp/actions/runs/4644235028
Using Focal (`runs-on: ubuntu-20.04`) for now, as it has the old requirements
we need. Travis used to run Xenial, that worked even better, without
workarounds for swig and ruby.
Python 2.7 is required
([QPID-8516](https://issues.apache.org/jira/browse/QPID-8516),
[QPID-4982](https://issues.apache.org/jira/browse/QPID-4982),
[QPID-8517](https://issues.apache.org/jira/browse/QPID-8517))
Linux environment requires swig3.0 and ruby2.6 to compile and work
([QPID-8606](https://issues.apache.org/jira/browse/QPID-8606),
https://github.com/swig/swig/issues/1689)
The vcpkg version of Boost requires some changes to how dependencies are
linked. What's in the PR now works on both Appveyor and Github Actions.
Caching is very important. Both installing boost with vcpkg on Windows and
compiling the broker code takes a lot of time without cache. With cache, vcpkg
is nearly instantaneous and broker compile takes only a few minutes on Linux,
and few more on Windows. When using sccache, make or ninja CMake generators
have to be used. MSBuild is not supported for `-DCMAKE_C_COMPILER_LAUNCHER`
CMake option. This can be workarounded in the future by the usual trick of
renaming `sccache.exe` to `cl.exe`.
Tests run very long. I am afraid to run them in parallel as part of this PR. I
want to leave that for later. But it is going to be necessary, because the CI
just takes way too much time otherwise.
Broker tests don't run on Windows and AFAIK they did not run there for a very
long time.
> Tests fails with Swig 4 due to missing `__swig_getmethods__`
> ------------------------------------------------------------
>
> Key: QPID-8606
> URL: https://issues.apache.org/jira/browse/QPID-8606
> Project: Qpid
> Issue Type: Bug
> Components: C++ Client, C++ Tests
> Affects Versions: qpid-cpp-1.40.0
> Reporter: Jiri Daněk
> Priority: Major
>
> https://github.com/NanoComp/meep/issues/965
> https://github.com/jiridanek/qpid-cpp/actions/runs/3308257602/jobs/5460505689#step:13:1414
> {noformat}
> 10: run_python_tests: Calling 'qpid-python-test --broker localhost:34529
> --time -m qpid.tests.messaging.message -m qpid_tests.broker_0_10.priority -m
> qpid_tests.broker_0_10.lvq -m qpid_tests.broker_0_10.new_api -I
> /home/runner/work/qpid-cpp/qpid-cpp/BLD/src/tests/failing-amqp0-10-python-tests'
> 10: Traceback (most recent call last):
> 10: File "/opt/hostedtoolcache/Python/2.7.18/x64/bin/qpid-python-test",
> line 563, in <module>
> 10: m = __import__(name, None, None, ["dummy"])
> 10: File
> "/opt/hostedtoolcache/Python/2.7.18/x64/lib/python2.7/site-packages/qpid/tests/__init__.py",
> line 31, in <module>
> 10: import qpid.tests.messaging
> 10: File
> "/opt/hostedtoolcache/Python/2.7.18/x64/lib/python2.7/site-packages/qpid/tests/messaging/__init__.py",
> line 23, in <module>
> 10: from qpid.tests.messaging.implementation import *
> 10: File
> "/opt/hostedtoolcache/Python/2.7.18/x64/lib/python2.7/site-packages/qpid/tests/messaging/implementation.py",
> line 22, in <module>
> 10: from qpid_messaging import *
> 10: File
> "/home/runner/work/qpid-cpp/qpid-cpp/BLD/bindings/qpid/python/qpid_messaging.py",
> line 202, in <module>
> 10: class Message(object):
> 10: File
> "/home/runner/work/qpid-cpp/qpid-cpp/BLD/bindings/qpid/python/qpid_messaging.py",
> line 395, in Message
> 10: __swig_getmethods__["content"] = _get_content
> 10: NameError: name '__swig_getmethods__' is not defined
> 10: Traceback (most recent call last):
> 10: File "run_python_tests", line 52, in <module>
> 10: "-I {0}".format(failing_tests))
> 10: File "/home/runner/work/qpid-cpp/qpid-cpp/BLD/src/tests/common.py",
> line 292, in run_broker_tests
> 10: call(" ".join(command))
> 10: File "/home/runner/work/qpid-cpp/qpid-cpp/BLD/src/tests/plano.py", line
> 418, in call
> 10: _subprocess.check_call(command, **kwargs)
> 10: File
> "/opt/hostedtoolcache/Python/2.7.18/x64/lib/python2.7/subprocess.py", line
> 190, in check_call
> 10: raise CalledProcessError(retcode, cmd)
> 10: subprocess.CalledProcessError: Command 'qpid-python-test --broker
> localhost:34529 --time -m qpid.tests.messaging.message -m
> qpid_tests.broker_0_10.priority -m qpid_tests.broker_0_10.lvq -m
> qpid_tests.broker_0_10.new_api -I
> /home/runner/work/qpid-cpp/qpid-cpp/BLD/src/tests/failing-amqp0-10-python-tests'
> returned non-zero exit status 1
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]