dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.09k stars 1.56k forks source link

[gardening] standalone/io/socket_local_port_test #51477

Open alexmarkov opened 1 year ago

alexmarkov commented 1 year ago

There are new test failures on Support external typed data in heapsnapshot analysis tool.

The tests

standalone/io/socket_local_port_test RuntimeError (expected Pass)

are failing on configurations

dartk-strong-win-debug-x64
--- Command "vm" (took 03.000642s):
set DART_CONFIGURATION=DebugX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\DebugX64\crashpad_handler.exe & out\DebugX64\dart.exe --sound-null-safety -Dtest_runner.configuration=dartk-strong-win-debug-x64 --ignore-unrecognized-flags --packages=C:\b\s\w\ir\.dart_tool\package_config.json C:\b\s\w\ir\tests\standalone\io\socket_local_port_test.dart

exit code:
255

stderr:
Unhandled exception:
SocketException: Connection failed (OS Error: An attempt was made to access a socket in a way forbidden by its access permissions.

, errno = 10013), address = 127.0.0.1, port = 50989
#0      _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:689:35)
#1      _NativeSocket.connect (dart:io-patch/socket_patch.dart:954:12)
#2      _RawSocket.connect (dart:io-patch/socket_patch.dart:1837:26)
#3      RawSocket.connect (dart:io-patch/socket_patch.dart:21:23)
#4      Socket._connect (dart:io-patch/socket_patch.dart:2062:22)
#5      Socket.connect (dart:io/socket.dart:749:21)
#6      testCustomPort (file:///C:/b/s/w/ir/tests/standalone/io/socket_local_port_test.dart:89:27)
<asynchronous suspension>

--- Re-run this test:
python3 tools/test.py -n dartk-strong-win-debug-x64 standalone/io/socket_local_port_test

This test started failing on a seemingly unrelated commit.

@athomas @whesse Was there any change in the Windows bot configuration?

/cc @brianquinlan @aam

dcharkes commented 2 weeks ago

Happened again: https://dart-ci.appspot.com/log/vm-aot-win-release-arm64/vm-aot-win-release-arm64/2429/standalone/io/socket_local_port_test

Different error though:

r:
Unhandled exception:
SocketException: Failed to create server socket (OS Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.

, errno = 10048), address = 127.0.0.1, port = 50989
#0      _NativeSocket.bind (dart:io-patch/socket_patch.dart:1032)
<asynchronous suspension>
#1      _RawServerSocket.bind.<anonymous closure> (dart:io-patch/socket_patch.dart:1818)
<asynchronous suspension>
#2      _ServerSocket.bind.<anonymous closure> (dart:io-patch/socket_patch.dart:2103)
<asynchronous suspension>
#3      testCustomPort (file:///C:/opt/s/w/ir/cache/builder/sdk/tests/standalone/io/socket_local_port_test.dart:81)
<asynchronous suspension>

--- Re-run this test:
python3 tools/test.py -n vm-aot-win-release-arm64 standalone/io/socket_local_port_test