Ice/ami test failure in Swift
Got this from https://github.com/zeroc-ice/ice/actions/runs/10704266576/job/29676846839?pr=2710 (macos debug):
[ running client/server test - 09/04/24 16:22:39 ]
- Config: ssl,ipv6,mx,debug
(swift run -c debug --skip-build TestDriver Ice_ami Server --Ice.Default.Host=::1 --Test.BasePort=14000 --Ice.Warn.Connections=1 --Ice.Default.Protocol=ssl --Ice.IPv6=1 --Ice.PreferIPv6Address=1 --Ice.Admin.Endpoints="tcp -h \"::1\"" --Ice.Admin.InstanceName=Server --IceMX.Metrics.Debug.GroupBy=id --IceMX.Metrics.Parent.GroupBy=parent --IceMX.Metrics.All.GroupBy=none --IceSSL.*** --IceSSL.DefaultDir=/Users/runner/work/ice/ice/certs --IceSSL.CAs=cacert.pem --IceSSL.CertFile=server.p12 --IceSSL.KeychainPassword=password --IceSSL.Keychain=server.keychain --Ice.ThreadPool.Server.Size=1 --Ice.ThreadPool.Server.SizeMax=3 --Ice.ThreadPool.Server.SizeWarn=0 --Ice.PrintAdapterReady=1 --Ice.Trace.Network=2 --Ice.Trace.Retry=1 --Ice.Trace.Protocol=1 --Ice.LogFile=/Users/runner/work/ice/ice/swift/test/Ice/ami/server-090424-1622.log)
(swift run -c debug --skip-build TestDriver Ice_ami Client --Ice.Default.Host=::1 --Test.BasePort=14000 --Ice.Warn.Connections=1 --Ice.Default.Protocol=ssl --Ice.IPv6=1 --Ice.PreferIPv6Address=1 --Ice.Admin.Endpoints="tcp -h \"::1\"" --Ice.Admin.InstanceName=Client --IceMX.Metrics.Debug.GroupBy=id --IceMX.Metrics.Parent.GroupBy=parent --IceMX.Metrics.All.GroupBy=none --IceSSL.*** --IceSSL.DefaultDir=/Users/runner/work/ice/ice/certs --IceSSL.CAs=cacert.pem --IceSSL.CertFile=client.p12 --IceSSL.KeychainPassword=password --IceSSL.Keychain=client.keychain --Ice.Trace.Network=2 --Ice.Trace.Retry=1 --Ice.Trace.Protocol=1 --Ice.LogFile=/Users/runner/work/ice/ice/swift/test/Ice/ami/client-090424-1622.log)
testing async invocation...ok
testing local exceptions... ok
testing exceptions with async/await... ok
testing batch requests with proxy... ok
testing batch requests with connection... ok
testing batch requests with communicator... Test failed File: /Users/runner/work/ice/ice/swift/test/Ice/ami/AllTests.swift: Line: 189
0 TestDriver 0x0000000100ef9d54 async_MainTY2_ + 252
1 TestDriver 0x0000000100efa0c5 $sIetH_yts5Error_pIegHrzo_TRTQ0_ + 1
2 TestDriver 0x0000000100efa1ed $sIetH_yts5Error_pIegHrzo_TRTATQ0_ + 1
3 libswift_Concurrency.dylib 0x000000025a6ce0f9 _ZL23completeTaskWithClosurePN5swift12AsyncContextEPNS_10SwiftErrorE + 1
Error testFailed
saved /Users/runner/work/ice/ice/swift/test/Ice/ami/client-090424-1622.log
saved /Users/runner/work/ice/ice/swift/test/Ice/ami/server-090424-1622.log
test in Ice/ami failed:
Similar failure in https://github.com/zeroc-ice/ice/actions/runs/11076112806/job/30778517587:
[ running client/server test - 09/27/24 19:10:15 ]
- Config: ws,ipv6,mx,debug
(swift run -c debug --skip-build TestDriver Ice_ami Server --Ice.Default.Host=::1 --Test.BasePort=14200 --Ice.Warn.Connections=1 --Ice.Default.Protocol=ws --Ice.IPv6=1 --Ice.PreferIPv6Address=1 --Ice.Admin.Endpoints="tcp -h \"::1\"" --Ice.Admin.InstanceName=Server --IceMX.Metrics.Debug.GroupBy=id --IceMX.Metrics.Parent.GroupBy=parent --IceMX.Metrics.All.GroupBy=none --Ice.ThreadPool.Server.Size=1 --Ice.ThreadPool.Server.SizeMax=3 --Ice.ThreadPool.Server.SizeWarn=0 --Ice.PrintAdapterReady=1 --Ice.Trace.Network=2 --Ice.Trace.Retry=1 --Ice.Trace.Protocol=1 --Ice.LogFile=/Users/runner/work/ice/ice/swift/test/Ice/ami/server-092724-1910.log)
(swift run -c debug --skip-build TestDriver Ice_ami Client --Ice.Default.Host=::1 --Test.BasePort=14200 --Ice.Warn.Connections=1 --Ice.Default.Protocol=ws --Ice.IPv6=1 --Ice.PreferIPv6Address=1 --Ice.Admin.Endpoints="tcp -h \"::1\"" --Ice.Admin.InstanceName=Client --IceMX.Metrics.Debug.GroupBy=id --IceMX.Metrics.Parent.GroupBy=parent --IceMX.Metrics.All.GroupBy=none --Ice.Trace.Network=2 --Ice.Trace.Retry=1 --Ice.Trace.Protocol=1 --Ice.LogFile=/Users/runner/work/ice/ice/swift/test/Ice/ami/client-092724-1910.log)
Another instance of SwiftPM is already running using '/Users/runner/work/ice/ice/swift/test/.build', waiting until that process has finished execution...testing async invocation...ok
testing local exceptions... ok
testing exceptions with async/await... ok
testing batch requests with proxy... ok
testing batch requests with connection... ok
testing batch requests with communicator... ok
testing connection close... 0 TestDriver 0x0000000104f98b18 async_MainTY2_ + 156
1 TestDriver 0x0000000104f98ec5 $sIetH_yts5Error_pIegHrzo_TRTQ0_ + 1
2 TestDriver 0x0000000104f98fed $sIetH_yts5Error_pIegHrzo_TRTATQ0_ + 1
3 libswift_Concurrency.dylib 0x0000000260b51035 _ZL23completeTaskWithClosurePN5swift12AsyncContextEPNS_10SwiftErrorE + 1
Error src/Ice/StreamSocket.cpp:304 ::Ice::ConnectionLostException connection lost: Broken pipe
stack trace:
0 Ice::Exception::Exception(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>) in TestDriver
1 Ice::LocalException::LocalException(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>) in TestDriver
2 Ice::SyscallException::SyscallException(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, int, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> (int)>) in TestDriver
3 Ice::SocketException::SocketException(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, int, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> (int)>) in TestDriver
4 Ice::ConnectionLostException::ConnectionLostException(char const*, int, int) in TestDriver
5 Ice::ConnectionLostException::ConnectionLostException(char const*, int, int) in TestDriver
6 IceInternal::StreamSocket::write(char const*, unsigned long) in TestDriver
7 IceInternal::StreamSocket::write(IceInternal::Buffer&) in TestDriver
8 IceInternal::TcpTransceiver::write(IceInternal::Buffer&) in TestDriver
9 IceInternal::WSTransceiver::write(IceInternal::Buffer&) in TestDriver
10 IceInternal::IdleTimeoutTransceiverDecorator::write(IceInternal::Buffer&) in TestDriver
11 Ice::ConnectionI::write(IceInternal::Buffer&) in TestDriver
12 Ice::ConnectionI::sendMessage(Ice::ConnectionI::OutgoingMessage&) in TestDriver
13 Ice::ConnectionI::sendAsyncRequest(std::__1::shared_ptr<IceInternal::OutgoingAsyncBase> const&, bool, bool, int) in TestDriver
14 IceInternal::OutgoingAsync::invokeRemote(std::__1::shared_ptr<Ice::ConnectionI> const&, bool, bool) in TestDriver
15 IceInternal::ConnectRequestHandler::sendAsyncRequest(std::__1::shared_ptr<IceInternal::ProxyOutgoingAsyncBase> const&) in TestDriver
16 IceInternal::ProxyOutgoingAsyncBase::invokeImpl(bool) in TestDriver
17 IceInternal::OutgoingAsync::invoke(std::__1::basic_string_view<char, std::__1::char_traits<char>>) in TestDriver
18 IceInternal::InvokeOutgoingAsyncT<std::__1::tuple<bool, std::__1::pair<std::byte const*, std::byte const*>>>::invoke(std::__1::basic_string_view<char, std::__1::char_traits<char>>, Ice::OperationMode, std::__1::pair<std::byte const*, std::byte const*>, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>>> const&) in TestDriver
19 Ice::ObjectPrx::ice_invokeAsync(std::__1::basic_string_view<char, std::__1::char_traits<char>>, Ice::OperationMode, std::__1::pair<std::byte const*, std::byte const*>, std::__1::function<void (bool, std::__1::pair<std::byte const*, std::byte const*>)>, std::__1::function<void (std::exception_ptr)>, std::__1::function<void (bool)>, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>>> const&) const in TestDriver
20 invoke:mode:inParams:context:response:exception:sent:] in TestDriver
21 $s3Ice10ObjectPrxIC7_invoke9operation4mode6format5write13userException7contextySS_AA13OperationModeOAA10FormatTypeOSgyAA12OutputStreamCcSgyAA04UserJ0CKcSgSDyS2SGSgtYaKFyScCyyts5Error_pGXEfU_ in TestDriver
22 $s3Ice10ObjectPrxIC7_invoke9operation4mode6format5write13userException7contextySS_AA13OperationModeOAA10FormatTypeOSgyAA12OutputStreamCcSgyAA04UserJ0CKcSgSDyS2SGSgtYaKFyScCyyts5Error_pGXEfU_TA in TestDriver
23 $ss31withCheckedThrowingContinuation9isolation8function_xScA_pSgYi_SSyScCyxs5Error_pGXEtYaKlFyBcXEfU_ in libswift_Concurrency.dylib
24 $ss31withCheckedThrowingContinuation9isolation8function_xScA_pSgYi_SSyScCyxs5Error_pGXEtYaKlFTY0_ in libswift_Concurrency.dylib
25 swift::runJobInEstablishedExecutorContext(swift::Job*) in libswift_Concurrency.dylib
26 swift_job_runImpl(swift::Job*, swift::SerialExecutorRef) in libswift_Concurrency.dylib
27 _dispatch_root_queue_drain in libdispatch.dylib
28 _dispatch_worker_thread2 in libdispatch.dylib
29 _pthread_wqthread in libsystem_pthread.dylib
30 start_wqthread in libsystem_pthread.dylib
saved /Users/runner/work/ice/ice/swift/test/Ice/ami/client-092724-1910.log
Ice_ami/TestI.swift:140: Fatal error: Unexpectedly found nil while unwrapping an Optional value
saved /Users/runner/work/ice/ice/swift/test/Ice/ami/server-092724-1910.log
test in Ice/ami failed:
Still failing: https://github.com/zeroc-ice/ice/actions/runs/11369302053/job/31626410700
[ running client/server test - 10/16/24 16:23:56 ]
- Config: ws,ipv6,mx
(swift run -c release --skip-build TestDriver Ice_ami Server --Ice.Default.Host=::1 --Test.BasePort=14200 --Ice.Warn.Connections=1 --Ice.Default.Protocol=ws --Ice.IPv6=1 --Ice.PreferIPv6Address=1 --Ice.Admin.Endpoints="tcp -h \"::1\"" --Ice.Admin.InstanceName=Server --IceMX.Metrics.Debug.GroupBy=id --IceMX.Metrics.Parent.GroupBy=parent --IceMX.Metrics.All.GroupBy=none --Ice.ThreadPool.Server.Size=1 --Ice.ThreadPool.Server.SizeMax=3 --Ice.ThreadPool.Server.SizeWarn=0 --Ice.PrintAdapterReady=1 --Ice.Trace.Network=2 --Ice.Trace.Retry=1 --Ice.Trace.Protocol=1 --Ice.LogFile=/Users/runner/work/ice/ice/swift/test/Ice/ami/server-101624-1623.log)
(swift run -c release --skip-build TestDriver Ice_ami Client --Ice.Default.Host=::1 --Test.BasePort=14200 --Ice.Warn.Connections=1 --Ice.Default.Protocol=ws --Ice.IPv6=1 --Ice.PreferIPv6Address=1 --Ice.Admin.Endpoints="tcp -h \"::1\"" --Ice.Admin.InstanceName=Client --IceMX.Metrics.Debug.GroupBy=id --IceMX.Metrics.Parent.GroupBy=parent --IceMX.Metrics.All.GroupBy=none --Ice.Trace.Network=2 --Ice.Trace.Retry=1 --Ice.Trace.Protocol=1 --Ice.LogFile=/Users/runner/work/ice/ice/swift/test/Ice/ami/client-101624-1623.log)
testing async invocation...ok
testing local exceptions... ok
testing exceptions with async/await... ok
testing batch requests with proxy... Test failed File: /Users/runner/work/ice/ice/swift/test/Ice/ami/AllTests.swift: Line: 140
0 TestDriver 0x00000001029e31f8 async_MainTY2_ + 68
1 TestDriver 0x00000001029e33a5 $sIetH_yts5Error_pIegHrzo_TR10async_MainTf3npf_nTQ0_ + 1
2 libswift_Concurrency.dylib 0x000000026d85509d _ZL22completeTaskAndReleasePN5swift12AsyncContextEPNS_10SwiftErrorE + 1
Error testFailed
saved /Users/runner/work/ice/ice/swift/test/Ice/ami/client-101624-1623.log
saved /Users/runner/work/ice/ice/swift/test/Ice/ami/server-101624-1623.log
From https://github.com/zeroc-ice/ice/actions/runs/11405309276/job/31736484488?pr=2930:
[ running client/server test - 10/18/24 15:13:47 ]
- Config: ssl,ipv6,mx
(swift run -c release --skip-build TestDriver Ice_ami Server --Ice.Default.Host=::1 --Test.BasePort=14200 --Ice.Warn.Connections=1 --Ice.Default.Protocol=ssl --Ice.IPv6=1 --Ice.PreferIPv6Address=1 --Ice.Admin.Endpoints="tcp -h \"::1\"" --Ice.Admin.InstanceName=Server --IceMX.Metrics.Debug.GroupBy=id --IceMX.Metrics.Parent.GroupBy=parent --IceMX.Metrics.All.GroupBy=none --IceSSL.*** --IceSSL.DefaultDir=/Users/runner/work/ice/ice/certs --IceSSL.CAs=cacert.pem --IceSSL.CertFile=server.p12 --IceSSL.KeychainPassword=password --IceSSL.Keychain=server.keychain --Ice.ThreadPool.Server.Size=1 --Ice.ThreadPool.Server.SizeMax=3 --Ice.ThreadPool.Server.SizeWarn=0 --Ice.PrintAdapterReady=1 --Ice.Trace.Network=2 --Ice.Trace.Retry=1 --Ice.Trace.Protocol=1 --Ice.LogFile=/Users/runner/work/ice/ice/swift/test/Ice/ami/server-101824-1513.log)
(swift run -c release --skip-build TestDriver Ice_ami Client --Ice.Default.Host=::1 --Test.BasePort=14200 --Ice.Warn.Connections=1 --Ice.Default.Protocol=ssl --Ice.IPv6=1 --Ice.PreferIPv6Address=1 --Ice.Admin.Endpoints="tcp -h \"::1\"" --Ice.Admin.InstanceName=Client --IceMX.Metrics.Debug.GroupBy=id --IceMX.Metrics.Parent.GroupBy=parent --IceMX.Metrics.All.GroupBy=none --IceSSL.*** --IceSSL.DefaultDir=/Users/runner/work/ice/ice/certs --IceSSL.CAs=cacert.pem --IceSSL.CertFile=client.p12 --IceSSL.KeychainPassword=password --IceSSL.Keychain=client.keychain --Ice.Trace.Network=2 --Ice.Trace.Retry=1 --Ice.Trace.Protocol=1 --Ice.LogFile=/Users/runner/work/ice/ice/swift/test/Ice/ami/client-101824-1513.log)
Another instance of SwiftPM is already running using '/Users/runner/work/ice/ice/swift/test/.build', waiting until that process has finished execution...testing async invocation...ok
testing local exceptions... ok
testing exceptions with async/await... ok
testing batch requests with proxy... ok
testing batch requests with connection... ok
testing batch requests with communicator... 0 TestDriver 0x0000000102969ca8 async_MainTY2_ + 68
1 TestDriver 0x0000000102969e55 $sIetH_yts5Error_pIegHrzo_TR10async_MainTf3npf_nTQ0_ + 1
2 libswift_Concurrency.dylib 0x000000027430109d _ZL22completeTaskAndReleasePN5swift12AsyncContextEPNS_10SwiftErrorE + 1
Error src/Ice/Network.cpp:1877 ::Ice::ConnectionRefusedException connection refused
saved /Users/runner/work/ice/ice/swift/test/Ice/ami/client-101824-1513.log
_Concurrency/CheckedContinuation.swift:169: Fatal error: SWIFT TASK CONTINUATION MISUSE: waitForBatch(count:current:) tried to resume its continuation more than once, returning 2!
saved /Users/runner/work/ice/ice/swift/test/Ice/ami/server-101824-1513.log
test in Ice/ami failed:
Still failing: https://github.com/zeroc-ice/ice/actions/runs/11506846491/job/32031722095
Likely it'a bug in this function. https://github.com/zeroc-ice/ice/blob/main/swift/test/Ice/ami/TestI.swift/#L134-L140