Skip to content
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

test_hidden_services broken #6352

Closed
qstokkink opened this issue Sep 24, 2021 · 15 comments · Fixed by #6512
Closed

test_hidden_services broken #6352

qstokkink opened this issue Sep 24, 2021 · 15 comments · Fixed by #6512
Assignees

Comments

@qstokkink
Copy link
Contributor

@pytest.mark.skip("Broken after moving SOCK5 in a separate component. Also, always failed on some machine even before")
@pytest.mark.tunneltest
@pytest.mark.asyncio
@pytest.mark.timeout(60)
async def test_hidden_services(proxy_factory, hidden_seeder_comm, video_tdef, logger):

This test is key in delivering #3. It should be fixed and "unskipped".

@ichorid
Copy link
Contributor

ichorid commented Sep 24, 2021

BIG FAT WARNING:
this test is extremly flaky, and dependent on the combination of Libtorrent version, Python version, operating system family, CPU speed, other tests running in the background and phase of the Moon.

👻 BEWARE 👻

@ichorid ichorid self-assigned this Sep 27, 2021
@ichorid
Copy link
Contributor

ichorid commented Oct 2, 2021

Gentlemen! 🚬
After two evenings of fun with Wireshark, debug info formatting and, last but not least, manual decoding of BT-uTP packets, I've got some good news and bad news for you:

  1. Good news: @egbertbouman 's hidden seeding works, e.g. data is going back and forth correctly through the tunnels
  2. Bad news: Libtorrent (at least my 1.2.14) seems to have a bug that prevents it from correctly recognizing incoming uTP connections when it is behind a SOCKS proxy.

This is most probably related to arvidn/libtorrent#3542 and thus requires Arvid's attention.
See also qbittorrent/qBittorrent#13073

The investigation continues.

@synctext
Copy link
Member

synctext commented Oct 2, 2021

Great stuff! Hopefully we get a reproducible bug trigger script or pull request upstream to Arvid.

@ichorid
Copy link
Contributor

ichorid commented Oct 2, 2021

Managed to capture the uTP log (had to modify Libtorrent source a bit 😉 ). The log does not look normal at all:

uTP log
[000000000000] 0x7f150000ce60: initializing MTU to: 1005 [548, 1462]
[000000000065] 0x7f150000ce60: send_syn seq_nr:24134 id:13379 target:238.97.87.177:1024
[000000000168] 0x7f150000ce60: state:SYN_SENT
[000000006519] 0x7f1518012c40: initializing MTU to: 1005 [548, 1462]
[000000006556] 0x7f1518012c40: their_delay::add_sample:6434 prev_base:0 new_base:6434
[000000006560] 0x7f1518012c40: incoming packet reply_micro:6434 base_change:0
[000000006564] 0x7f1518012c40: updating timeout to: now + 3000
[000000006568] 0x7f1518012c40: incoming packet seq_nr:24134 ack_nr:0 type:ST_SYN id:13379 size:0 timestampdiff:0 timestamp:2151945736 our ack_nr:0 our seq_nr:0 our acked_seq_nr:0 our state:NONE
[000000006579] 0x7f1518012c40: received ST_SYN state:CONNECTED seq_nr:2247 ack_nr:24134
[000000006582] 0x7f1518012c40: defer ack
[000000006590] 0x7f1518012c40: utp_stream destructed
[000000006593] 0x7f1518012c40: destroy state:CONNECTED (close-reason: 0)
[000000006636] 0x7f1518012c40: sending packet seq_nr:2247 ack_nr:24134 type:ST_FIN id:13379 target:219.166.218.76:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:0 in-flight:0 mtu:1005 timestamp:2151952298 time_diff:6434 mtu_probe:0 extension:0
[000000006729] 0x7f1518012c40: state:FIN_SENT
[000000006735] 0x7f1518012c40: detach()
[000000006766] 0x7f1518012c40: sending packet seq_nr:2247 ack_nr:24134 type:ST_STATE id:13379 target:219.166.218.76:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:0 in-flight:0 mtu:1005 timestamp:2151952441 time_diff:6434 mtu_probe:0 extension:0
[000000013791] 0x7f150000ce60: their_delay::add_sample:7168 prev_base:0 new_base:7168
[000000013803] 0x7f150000ce60: incoming packet reply_micro:7168 base_change:0
[000000013810] 0x7f150000ce60: updating timeout to: now + 500
[000000013820] 0x7f150000ce60: acked packet 24134 (0 bytes) (rtt:13)
[000000013828] 0x7f150000ce60: incoming packet seq_nr:2247 ack_nr:24134 type:ST_FIN id:13379 size:0 timestampdiff:6434 timestamp:2151952298 our ack_nr:0 our seq_nr:24135 our acked_seq_nr:24134 our state:SYN_SENT
[000000013836] 0x7f150000ce60: state:CONNECTED
[000000013838] 0x7f150000ce60: calling connect handler
[000000013845] 0x7f150000ce60: calling connect handler ec:Success shutdown:0
[000000013885] 0x7f150000ce60: skipping send (no payload and no force) seq_nr:24135 ack_nr:2246 id:13380 target:238.97.87.177:1024 header_size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005
[000000013893] 0x7f150000ce60: defer ack
[000000013895] 0x7f150000ce60: subscribe drained
[000000013900] 0x7f150000ce60: incoming stream consumed
[000000013915] 0x7f150000ce60: sending packet seq_nr:24135 ack_nr:2246 type:ST_FIN id:13380 target:238.97.87.177:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005 timestamp:2151959593 time_diff:7168 mtu_probe:0 extension:0
[000000013990] 0x7f150000ce60: state:FIN_SENT
[000000014020] 0x7f150000ce60: sending packet seq_nr:24135 ack_nr:2246 type:ST_STATE id:13380 target:238.97.87.177:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005 timestamp:2151959696 time_diff:7168 mtu_probe:0 extension:0
[000000022617] 0x7f1518012c40: their_delay::add_sample:8702 prev_base:6434 new_base:6434
[000000022628] 0x7f1518012c40: incoming packet reply_micro:8702 base_change:0
[000000022636] 0x7f1518012c40: updating timeout to: now + 500
[000000022641] 0x7f1518012c40: incoming packet seq_nr:24135 ack_nr:2246 type:ST_FIN id:13380 size:0 timestampdiff:7168 timestamp:2151959593 our ack_nr:24134 our seq_nr:2247 our acked_seq_nr:2246 our state:FIN_SENT
[000000022649] 0x7f1518012c40: FIN received in order
[000000022674] 0x7f1518012c40: sending packet seq_nr:2247 ack_nr:24135 type:ST_STATE id:13379 target:219.166.218.76:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005 timestamp:2151968343 time_diff:8702 mtu_probe:0 extension:0
[000000025080] 0x7f1518012c40: their_delay::add_sample:11063 prev_base:6434 new_base:6434
[000000025092] 0x7f1518012c40: incoming packet reply_micro:11063 base_change:0
[000000025173] 0x7f1518012c40: updating timeout to: now + 500
[000000025178] 0x7f1518012c40: incoming packet seq_nr:24135 ack_nr:2246 type:ST_STATE id:13380 size:0 timestampdiff:7168 timestamp:2151959696 our ack_nr:24135 our seq_nr:2247 our acked_seq_nr:2246 our state:FIN_SENT
[000000045777] 0x7f150000ce60: add_read_buffer 104 bytes
[000000045786] 0x7f150000ce60: new read handler. 0 bytes in buffer
[000000045795] 0x7f150000ce60: add_write_buffer 283 bytes
[000000045800] 0x7f150000ce60: new write handler. 283 bytes to write
[000000045817] 0x7f150000ce60: sending packet seq_nr:24135 ack_nr:2246 type:ST_DATA id:13380 target:238.97.87.177:1024 size:303 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005 timestamp:2151991492 time_diff:7168 mtu_probe:0 extension:0
[000000045861] 0x7f150000ce60: calling write handler written:283
[000000045864] 0x7f150000ce60: calling write handler written:283 ec:Success shutdown:0
[000000045925] 0x7f150000ce60: their_delay::add_sample:39166 prev_base:7168 new_base:7168
[000000045928] 0x7f150000ce60: incoming packet reply_micro:39166 base_change:0
[000000045931] 0x7f150000ce60: updating timeout to: now + 500
[000000045934] 0x7f150000ce60: incoming packet seq_nr:2247 ack_nr:24134 type:ST_STATE id:13379 size:0 timestampdiff:6434 timestamp:2151952441 our ack_nr:2246 our seq_nr:24136 our acked_seq_nr:24134 our state:FIN_SENT
[000000045947] 0x7f150000ce60: their_delay::add_sample:23288 prev_base:7168 new_base:7168
[000000045948] 0x7f150000ce60: incoming packet reply_micro:23288 base_change:0
[000000045950] 0x7f150000ce60: updating timeout to: now + 500
[000000045955] 0x7f150000ce60: acked packet 24135 (283 bytes) (rtt:0)
[000000045959] 0x7f150000ce60: incoming packet seq_nr:2247 ack_nr:24135 type:ST_STATE id:13379 size:0 timestampdiff:8702 timestamp:2151968343 our ack_nr:2246 our seq_nr:24136 our acked_seq_nr:24135 our state:FIN_SENT
[000000049485] 0x7f1518012c40: their_delay::add_sample:3674 prev_base:6434 new_base:3674
[000000049493] 0x7f1518012c40: incoming packet reply_micro:3674 base_change:-2760
[000000049496] 0x7f1518012c40: ERROR: incoming packet type: ST_DATA seq_nr:24135 eof_seq_nr:24135 (ignored)
[000000486809] 0x7f1518012c40: tick:FIN_SENT r: 0 (no handler) w: 0 (no handler)
[000000499903] 0x7f150000ce60: tick:FIN_SENT r: 0 (handler) w: 0 (no handler)
[000000987212] 0x7f1518012c40: tick:FIN_SENT r: 0 (no handler) w: 0 (no handler)
[000000987229] 0x7f1518012c40: timeout num-timeouts: 0 max-resends: 3 confirmed: 0  acked-seq-num: 2246 mtu-seq: 0
[000000987236] 0x7f1518012c40: resetting cwnd:1005
[000000987239] 0x7f1518012c40: slow_start -> 1
[000000987247] 0x7f1518012c40: state:ERROR error:End of file
[000001000235] 0x7f150000ce60: tick:FIN_SENT r: 0 (handler) w: 0 (no handler)
[000001000254] 0x7f150000ce60: timeout num-timeouts: 0 max-resends: 3 confirmed: 1  acked-seq-num: 24135 mtu-seq: 0
[000001000260] 0x7f150000ce60: resetting cwnd:1005
[000001000263] 0x7f150000ce60: slow_start -> 1
[000001000272] 0x7f150000ce60: state:ERROR error:End of file
[000001000277] 0x7f150000ce60: calling read handler read:0 ec:End of file shutdown:1
[000001000288] 0x7f150000ce60: detach()
[000001000291] 0x7f150000ce60: state:DELETE
[000001487591] 0x7f1518012c40: should_delete() = true
[000001487606] 0x7f1518012c40: destroying utp socket state
[000001500623] 0x7f150000ce60: should_delete() = true
[000001500638] 0x7f150000ce60: destroying utp socket state
[000002001188] 0x7f150000ce60: initializing MTU to: 1005 [548, 1462]
[000002001216] 0x7f150000ce60: send_syn seq_nr:44045 id:11949 target:238.97.87.177:1024
[000002001296] 0x7f150000ce60: state:SYN_SENT
[000002005491] 0x7f1518012c40: initializing MTU to: 1005 [548, 1462]
[000002005505] 0x7f1518012c40: their_delay::add_sample:4262 prev_base:0 new_base:4262
[000002005508] 0x7f1518012c40: incoming packet reply_micro:4262 base_change:0
[000002005510] 0x7f1518012c40: updating timeout to: now + 3000
[000002005513] 0x7f1518012c40: incoming packet seq_nr:44045 ack_nr:0 type:ST_SYN id:11949 size:0 timestampdiff:0 timestamp:2153946891 our ack_nr:0 our seq_nr:0 our acked_seq_nr:0 our state:NONE
[000002005582] 0x7f1518012c40: received ST_SYN state:CONNECTED seq_nr:11464 ack_nr:44045
[000002005586] 0x7f1518012c40: defer ack
[000002005593] 0x7f1518012c40: utp_stream destructed
[000002005595] 0x7f1518012c40: destroy state:CONNECTED (close-reason: 0)
[000002005617] 0x7f1518012c40: sending packet seq_nr:11464 ack_nr:44045 type:ST_FIN id:11949 target:219.166.218.76:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:0 in-flight:0 mtu:1005 timestamp:2153951288 time_diff:4262 mtu_probe:0 extension:0
[000002005703] 0x7f1518012c40: state:FIN_SENT
[000002005712] 0x7f1518012c40: detach()
[000002005748] 0x7f1518012c40: sending packet seq_nr:11464 ack_nr:44045 type:ST_STATE id:11949 target:219.166.218.76:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:0 in-flight:0 mtu:1005 timestamp:2153951420 time_diff:4262 mtu_probe:0 extension:0
[000002007537] 0x7f150000ce60: their_delay::add_sample:1932 prev_base:0 new_base:1932
[000002007539] 0x7f150000ce60: incoming packet reply_micro:1932 base_change:0
[000002007541] 0x7f150000ce60: updating timeout to: now + 500
[000002007542] 0x7f150000ce60: acked packet 44045 (0 bytes) (rtt:6)
[000002007544] 0x7f150000ce60: incoming packet seq_nr:11464 ack_nr:44045 type:ST_FIN id:11949 size:0 timestampdiff:4262 timestamp:2153951288 our ack_nr:0 our seq_nr:44046 our acked_seq_nr:44045 our state:SYN_SENT
[000002007545] 0x7f150000ce60: state:CONNECTED
[000002007546] 0x7f150000ce60: calling connect handler
[000002007547] 0x7f150000ce60: calling connect handler ec:Success shutdown:0
[000002007552] 0x7f150000ce60: skipping send (no payload and no force) seq_nr:44046 ack_nr:11463 id:11950 target:238.97.87.177:1024 header_size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005
[000002007554] 0x7f150000ce60: defer ack
[000002007555] 0x7f150000ce60: subscribe drained
[000002007555] 0x7f150000ce60: incoming stream consumed
[000002007558] 0x7f150000ce60: sending packet seq_nr:44046 ack_nr:11463 type:ST_FIN id:11950 target:238.97.87.177:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005 timestamp:2153953242 time_diff:1932 mtu_probe:0 extension:0
[000002007575] 0x7f150000ce60: state:FIN_SENT
[000002007580] 0x7f150000ce60: sending packet seq_nr:44046 ack_nr:11463 type:ST_STATE id:11950 target:238.97.87.177:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005 timestamp:2153953264 time_diff:1932 mtu_probe:0 extension:0
[000002007610] 0x7f150000ce60: add_read_buffer 104 bytes
[000002007613] 0x7f150000ce60: new read handler. 0 bytes in buffer
[000002007616] 0x7f150000ce60: add_write_buffer 68 bytes
[000002007617] 0x7f150000ce60: new write handler. 68 bytes to write
[000002007621] 0x7f150000ce60: sending packet seq_nr:44046 ack_nr:11463 type:ST_DATA id:11950 target:238.97.87.177:1024 size:88 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005 timestamp:2153953304 time_diff:1932 mtu_probe:0 extension:0
[000002007630] 0x7f150000ce60: calling write handler written:68
[000002007631] 0x7f150000ce60: calling write handler written:68 ec:Success shutdown:0
[000002008686] 0x7f150000ce60: their_delay::add_sample:2949 prev_base:1932 new_base:1932
[000002008689] 0x7f150000ce60: incoming packet reply_micro:2949 base_change:0
[000002008691] 0x7f150000ce60: updating timeout to: now + 500
[000002008692] 0x7f150000ce60: incoming packet seq_nr:11464 ack_nr:44045 type:ST_STATE id:11949 size:0 timestampdiff:4262 timestamp:2153951420 our ack_nr:11463 our seq_nr:44047 our acked_seq_nr:44045 our state:FIN_SENT
[000002010330] 0x7f1518012c40: their_delay::add_sample:2772 prev_base:4262 new_base:2772
[000002010332] 0x7f1518012c40: incoming packet reply_micro:2772 base_change:-1490
[000002010334] 0x7f1518012c40: updating timeout to: now + 500
[000002010335] 0x7f1518012c40: incoming packet seq_nr:44046 ack_nr:11463 type:ST_FIN id:11950 size:0 timestampdiff:1932 timestamp:2153953242 our ack_nr:44045 our seq_nr:11464 our acked_seq_nr:11463 our state:FIN_SENT
[000002010350] 0x7f1518012c40: FIN received in order
[000002010356] 0x7f1518012c40: sending packet seq_nr:11464 ack_nr:44046 type:ST_STATE id:11949 target:219.166.218.76:1024 size:20 error:Success send_buffer_size:0 cwnd:1500 adv_wnd:1048576 in-flight:0 mtu:1005 timestamp:2153956037 time_diff:2772 mtu_probe:0 extension:0
[000002010966] 0x7f1518012c40: their_delay::add_sample:3386 prev_base:2772 new_base:2772
[000002010968] 0x7f1518012c40: incoming packet reply_micro:3386 base_change:0
[000002010969] 0x7f1518012c40: updating timeout to: now + 500
[000002010970] 0x7f1518012c40: incoming packet seq_nr:44046 ack_nr:11463 type:ST_STATE id:11950 size:0 timestampdiff:1932 timestamp:2153953264 our ack_nr:44046 our seq_nr:11464 our acked_seq_nr:11463 our state:FIN_SENT
[000002011716] 0x7f1518012c40: their_delay::add_sample:4096 prev_base:2772 new_base:2772
[000002011718] 0x7f1518012c40: incoming packet reply_micro:4096 base_change:0
[000002011719] 0x7f1518012c40: ERROR: incoming packet type: ST_DATA seq_nr:44046 eof_seq_nr:44046 (ignored)
[000002012270] 0x7f150000ce60: their_delay::add_sample:1917 prev_base:1932 new_base:1917
[000002012272] 0x7f150000ce60: incoming packet reply_micro:1917 base_change:-15
[000002012274] 0x7f150000ce60: updating timeout to: now + 500
[000002012275] 0x7f150000ce60: acked packet 44046 (68 bytes) (rtt:4)
[000002012277] 0x7f150000ce60: incoming packet seq_nr:11464 ack_nr:44046 type:ST_STATE id:11949 size:0 timestampdiff:2772 timestamp:2153956037 our ack_nr:11463 our seq_nr:44047 our acked_seq_nr:44046 our state:FIN_SENT
[000002488098] 0x7f1518012c40: tick:FIN_SENT r: 0 (no handler) w: 0 (no handler)
[000002501345] 0x7f150000ce60: tick:FIN_SENT r: 0 (handler) w: 0 (no handler)
[000002988448] 0x7f1518012c40: tick:FIN_SENT r: 0 (no handler) w: 0 (no handler)
[000002988466] 0x7f1518012c40: timeout num-timeouts: 0 max-resends: 3 confirmed: 0  acked-seq-num: 11463 mtu-seq: 0
[000002988473] 0x7f1518012c40: resetting cwnd:1005
[000002988476] 0x7f1518012c40: slow_start -> 1
[000002988484] 0x7f1518012c40: state:ERROR error:End of file
[000003001466] 0x7f150000ce60: tick:FIN_SENT r: 0 (handler) w: 0 (no handler)
[000003001483] 0x7f150000ce60: timeout num-timeouts: 0 max-resends: 3 confirmed: 1  acked-seq-num: 44046 mtu-seq: 0
[000003001490] 0x7f150000ce60: resetting cwnd:1005
[000003001493] 0x7f150000ce60: slow_start -> 1
[000003001502] 0x7f150000ce60: state:ERROR error:End of file
[000003001506] 0x7f150000ce60: calling read handler read:0 ec:End of file shutdown:1
[000003001518] 0x7f150000ce60: detach()
[000003001521] 0x7f150000ce60: state:DELETE
[000003488485] 0x7f1518012c40: should_delete() = true
[000003488488] 0x7f1518012c40: destroying utp socket state
[000003501495] 0x7f150000ce60: should_delete() = true
[000003501497] 0x7f150000ce60: destroying utp socket state

The log is for two Libtorrent sessions exchanging uTP data locally through Tribler SOCKS5 connections on both sides. This is 100% reproducible, although it will be hard to reproduce outside of Tribler (e.g. via some random SOCKS server), because of all the dynamic port assignments, etc. Also, there seem to be almost to SOCKS5 servers that support UDP association.

The interesting part of the log is:

...
[000000006579] 0x7f1518012c40: received ST_SYN state:CONNECTED seq_nr:2247 ack_nr:24134
[000000006582] 0x7f1518012c40: defer ack
[000000006590] 0x7f1518012c40: utp_stream destructed
[000000006593] 0x7f1518012c40: destroy state:CONNECTED (close-reason: 0)
...
[000000049496] 0x7f1518012c40: ERROR: incoming packet type: ST_DATA seq_nr:24135 eof_seq_nr:24135 (ignored)

Seems like the seeder acknowledges the connection and then immediately destroys the uTP stream object for some mysterious reason 💥

(p.s. the "normal" exchange in the "passing" anonymous download test features some packet loss, which is maybe(?) expected for a local transfer?)

@ichorid ichorid changed the title test_hidden_services skipped test_hidden_services broken Oct 3, 2021
@qstokkink
Copy link
Contributor Author

[Cross-ref] Fix mentioned here: #6481 (comment)

@qstokkink
Copy link
Contributor Author

@ichorid since you're assigned, could you take care of clicking "Create pull request" on main...egbertbouman:fix_hs_test ? Then we can finally close this issue.

@drew2a
Copy link
Contributor

drew2a commented Oct 28, 2021

BTW I can do this if @ichorid does not have time.

@ichorid
Copy link
Contributor

ichorid commented Oct 28, 2021

@ichorid since you're assigned, could you take care of clicking "Create pull request" on main...egbertbouman:fix_hs_test ? Then we can finally close this issue.

@egbertbouman 's patch does not fix the test for me on Libtorrent 1.2.14. I'm currently testing Arvid's patch. Unfortunately, that one is for Libtorrent 2.0, which complicates things further.

@egbertbouman
Copy link
Member

egbertbouman commented Oct 28, 2021

@ichorid As explained in #6481 (comment), you need both the patch and libtorrent <1.2.13.

I'm not sure which version the testers are running, but if they're using <1.2.13 the patch would allow you to re-enable the hidden seeding test.

@ichorid
Copy link
Contributor

ichorid commented Oct 28, 2021

@ichorid As explained in #6481 (comment), you need both the patch and libtorrent <1.2.13.

Exactly! Just wanted to add this comment. So, we have two options here:

  1. downgrade to 1.2.12
  2. wait for Arvid to test out and backport his patch from RC_2_0 to 1.2.x branch, then use a custom build of 1.2.14+

In the current circumstances, I'd say the safer option is the downgrade (because God knows how long will it take to backport the patch, and then maintain it for all developers...)

@ichorid
Copy link
Contributor

ichorid commented Oct 28, 2021

@xoriole , how hard would it be to downgrade our builders and testers to 1.2.12?

@xoriole
Copy link
Contributor

xoriole commented Oct 28, 2021

@ichorid

I'm not sure which version the testers are running, but if they're using <1.2.13 the patch would allow you to re-enable the hidden seeding test.

Only Linux builder has libtorrent 1.2.13 and the rest use < 1.2.10, so it is only one builder, which should be quick.

@ichorid
Copy link
Contributor

ichorid commented Oct 28, 2021

I've tested @egbertbouman 's and Arvid's solutions. Here is the result:

no changes Egbert Arvid Egbert+Arvid
1.2.12 🚫 🟢 🚫 🟢
1.2.14 🚫 🚫 🚫 🟢

Conclusion: the Egbert's fix is a prerequisite for the test to work at all. Thanks, @egbertbouman , you saved us again 👍 🎉 👏

So, the best strategy is to first update/downgrade all of our machines to 1.2.12, then apply Egbert's fix, and skip 1.2.14 altogether.
In the future we should either ensure that 1.2.15 gets the backport for Arivd's fix, or just switch to Libtorrent 2.0.

@ichorid
Copy link
Contributor

ichorid commented Oct 28, 2021

@egbertbouman , would you care to open a PR for your fix, or should I apply it myself?

@egbertbouman
Copy link
Member

@ichorid Sure, I'll open the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

6 participants