-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various CI fixes #7688
Various CI fixes #7688
Conversation
84dc2e5
to
b3e81c8
Compare
@arvidn I managed to find a configuration that pleases the first 6 CI checks. Could you O.K. me for the following 8? |
|
b3e81c8
to
64685be
Compare
@arvidn sorry about that, that argument is Python 3.8+. I now switched to the old way of catching a As a side note: I'm not sure why |
I suppose it might be time to drop support for python 3.7 as well. I'm surprised any CI image is still using it. |
bca0a84
to
2d5c17a
Compare
That seems sensible. Upgrading to different Python 3.x series is not that bad for users (at least not as bad as the whole Python 2➡️3 switch 🙂) and Python 3.7 is no longer receiving security updates. On that topic, on your libtorrent/.github/workflows/python.yml Line 55 in 6f4b7b0
That aside, the two failures from the previous "full" run should be fixed now. Could you approve another run? |
it looks like the datachannel submodule was accidentally changed in your latest push |
oh, was that on purpose? |
@arvidn Yes, that was on purpose, in an attempt to solve this: https://github.com/arvidn/libtorrent/actions/runs/9661198749/job/26661959014 click me for excerpt[ 37%] Building C object usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_output.c.o
/Users/runner/work/libtorrent/libtorrent/deps/libdatachannel/deps/usrsctp/usrsctplib/netinet/sctp_indata.c:3323:6: error: variable 'tot_retrans' set but not used [-Werror,-Wunused-but-set-variable]
int tot_retrans = 0;
^
1 error generated.
make[3]: *** [usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_indata.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/Users/runner/work/libtorrent/libtorrent/deps/libdatachannel/deps/usrsctp/usrsctplib/netinet/sctp_output.c:10018:33: error: variable 'cnt_thru' set but not used [-Werror,-Wunused-but-set-variable]
int no_fragmentflg, bundle_at, cnt_thru;
^
1 error generated.
make[3]: *** [usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_output.c.o] Error 1
make[2]: *** [usrsctplib/CMakeFiles/usrsctp.dir/all] Error 2
make[1]: *** [usrsctplib/CMakeFiles/usrsctp.dir/rule] Error 2
make: *** [usrsctp] Error 2
cp: /Users/runner/work/libtorrent/libtorrent/deps/libdatachannel/deps/usrsctp/build-debug-mode/usrsctplib/libusrsctp.a: No such file or directory
(cd /Users/runner/work/libtorrent/libtorrent/deps/libdatachannel/deps/usrsctp && mkdir -p build-debug-mode && cd build-debug-mode && cmake -DCMAKE_BUILD_TYPE=debug-mode -DCMAKE_C_FLAGS="-fPIC -Wno-unknown-warning-option -Wno-format-truncation" -Dsctp_build_shared_lib=0 -Dsctp_build_programs=0 -Dsctp_inet=0 -Dsctp_inet6=0 .. && make -j2 usrsctp)
cp /Users/runner/work/libtorrent/libtorrent/deps/libdatachannel/deps/usrsctp/build-debug-mode/usrsctplib/libusrsctp.a ../deps/libdatachannel/bin/libusrsctp.a
...failed Jamfile</Users/runner/work/libtorrent/libtorrent/deps/libdatachannel>.make_libusrsctp ../deps/libdatachannel/bin/libusrsctp.a...
The changelog of libdatachannel suggests that bumping up from 0.18.1 to EDIT: Hold on, I made a mistake. The issue was fixed in libdatachannel |
62fa23d
to
44118fa
Compare
I dropped the libdatachannel bump commit because it seems to have caused the Mac tests to fail (it may also be a random failure though). |
44118fa
to
7f6da29
Compare
Apart from the I think this is a good place to stop adding to this PR and I'll mark it as ready for review when the checks are done running. |
thanks! |
You're welcome. 👍 I would've liked to fix all of your problems in one fell swoop but I'm going on vacation next week, so I can't commit to that right now. Short term, I think it's a good idea to see if you can bump up |
This PR targets
master
because that is where the issue of missing wheel types occurs (the original target of this PR).There are a few layers of issues that have surfaced. This PR addresses the following:
continuous-integration/appveyor/pr
cannot find boost (c:\Libraries\boost_1_77_0
does not exist, onlyboost_1_83_0
,boost_1_84_0
,boost_1_85_0
exist on the image). Resolution: switched toboost_1_85_0
boost_1_83_0
(see below).Cirrus CI / Build macOS arm64 wheels
cannot find types. Resolution: fixed inmypy-tox.ini
.bindings/python/setup.py
.Test macOS arm64
"flaky test"test_privacy
fails withCputime limit exceeded: 24
. Does not work withboost_1_85_0
,boost_1_84_0
. Mitigation 1: downgraded toboost_1_83_0
. Mitigation 2: allow errors other thanconnection_refused
when waiting for Python to start during testing. Even so, this test is still unstable.continuous-integration/appveyor/pr
fails withEXIT STATUS: -1073741515
forvariant=release
. Resolution: included the OpenSSL bin directory in the path.Tests (webtorrent=on deprecated-functions=off)
failing withset but not used
errors. Resolution: wont fix. Bumping the version oflibdatachannel
to0.19.0
should fix this error but it seems to cause other issues.build dist (ubuntu-22.04)
failing due to missinginstall_data/libtorrent
in tarball. Resolution: added the typing files to the Makefile.