Azure / azure-sdk-for-cpp

This repository is for active development of the Azure SDK for C++. For consumers of the SDK we recommend visiting our versioned developer docs at https://azure.github.io/azure-sdk-for-cpp.
MIT License
177 stars 126 forks source link

azure-core-amqp.TestManagement.ManagementRequestResponseUnknownOperationName fails on Windows with error during management open #4845

Closed ahsonkhan closed 1 year ago

ahsonkhan commented 1 year ago

On Validate Win2022_Win32Api_release_curl_x86 here https://dev.azure.com/azure-sdk/public/_build/results?buildId=2978885&view=logs&j=98e09d1a-2dd9-54c0-d318-0eac30bf38a6&t=9de09327-270a-5760-30a2-161959e2b05a&l=14510

2023-08-04T19:40:39.5542928Z test 565
2023-08-04T19:40:39.5543432Z         Start 565: azure-core-amqp.TestManagement.ManagementRequestResponseUnknownOperationName
2023-08-04T19:40:39.5543726Z 
2023-08-04T19:40:39.5544430Z 565: Test command: D:\a\_work\1\s\build\sdk\core\azure-core-amqp\test\ut\Release\azure-core-amqp-tests.exe "--gtest_filter=TestManagement.ManagementRequestResponseUnknownOperationName" "--gtest_also_run_disabled_tests"
2023-08-04T19:40:39.5545125Z 565: Working Directory: D:/a/_work/1/s/build/sdk/core/azure-core-amqp/test/ut
2023-08-04T19:40:39.5545515Z 565: Test timeout computed to be: 10000000
2023-08-04T19:40:39.5604161Z 565: Note: Google Test filter = TestManagement.ManagementRequestResponseUnknownOperationName
2023-08-04T19:40:39.5604761Z 565: [==========] Running 1 test from 1 test suite.
2023-08-04T19:40:39.5605493Z 565: [----------] Global test environment set-up.
2023-08-04T19:40:39.5606122Z 565: [----------] 1 test from TestManagement
2023-08-04T19:40:39.5606595Z 565: [ RUN      ] TestManagement.ManagementRequestResponseUnknownOperationName
2023-08-04T19:40:39.5641682Z 565: 
2023-08-04T19:40:39.5642636Z 565: [  INFO ] D:\a\_work\1\s\sdk\core\azure-core-amqp\test\ut\session_tests.cpp(119):: Trying Test port: 5001
2023-08-04T19:40:39.5647098Z 565: 
2023-08-04T19:40:39.5647772Z 565: [  INFO ] D:\a\_work\1\s\sdk\core\azure-core-amqp\test\ut\mock_amqp_server.hpp(183):: Wait 10 seconds for listener to start.
2023-08-04T19:40:39.5650613Z 565: 
2023-08-04T19:40:39.5652199Z 565: [  INFO ] D:\a\_work\1\s\sdk\core\azure-core-amqp\test\ut\mock_amqp_server.hpp(139):: Start test listener on port 5001
2023-08-04T19:40:39.5654051Z 565: 
2023-08-04T19:40:39.5654708Z 565: [  INFO ] D:\a\_work\1\s\sdk\core\azure-core-amqp\test\ut\mock_amqp_server.hpp(141):: listener started
2023-08-04T19:40:39.5655234Z 565: 
2023-08-04T19:40:39.5655626Z 565: 
2023-08-04T19:40:39.5656235Z 565: [  INFO ] D:\a\_work\1\s\sdk\core\azure-core-amqp\test\ut\mock_amqp_server.hpp(189):: Listener running.
2023-08-04T19:40:39.5657059Z 565: [  INFO ] D:\a\_work\1\s\sdk\core\azure-core-amqp\test\ut\mock_amqp_server.hpp(145):: Wait for connection on listener.[
2023-08-04T19:40:39.5657886Z 565: 2023-08-04T19:40:39.5651667Z] INFO  : Unknown port specified, assuming socket connection transport.
2023-08-04T19:40:39.5658597Z 565: [2023-08-04T19:40:39.5651962Z] DEBUG : Create socket transport for host localhost port: 5001
2023-08-04T19:40:39.5687589Z 565: [2023-08-04T19:40:39.5685641Z] DEBUG : File: D:\a\_work\1\s\build\_deps\vcpkg-src\buildtrees\azure-uamqp-c\src\c1d5924306-398845d0ed.clean\src\connection.c:150 Func: _send_header: -> Header (AMQP 0.1.0.0)
2023-08-04T19:40:39.7076877Z 565: [2023-08-04T19:40:39.7073646Z] ERROR : Message Sender Changed State to 5 while management client is opening
2023-08-04T19:40:39.7079159Z 565: [2023-08-04T19:40:39.7074363Z] ERROR : Message Sender Changed State to 5 while management client is closing
2023-08-04T19:40:39.7080897Z 565: D:\a\_work\1\s\sdk\core\azure-core-amqp\test\ut\management_tests.cpp(412): error: Expected equality of these values:
2023-08-04T19:40:39.7082342Z 565:   openResult
2023-08-04T19:40:39.7084684Z 565:     Which is: 4-byte object <02-00 00-00>
2023-08-04T19:40:39.7085534Z 565:   ManagementOpenStatus::Ok
2023-08-04T19:40:39.7086752Z 565:     Which is: 4-byte object <01-00 00-00>
2023-08-04T19:40:39.7088466Z 565: [2023-08-04T19:40:39.7078689Z] ERROR : File: D:\a\_work\1\s\build\_deps\vcpkg-src\buildtrees\azure-uamqp-c\src\c1d5924306-398845d0ed.clean\src\connection.c:2048 Func: _connection_encode_frame: Connection not open
2023-08-04T19:40:39.7089821Z 565: [2023-08-04T19:40:39.7079176Z] ERROR : File: D:\a\_work\1\s\build\_deps\vcpkg-src\buildtrees\azure-c-shared-utility\src\10753faee5-044a82ff07.clean\adapters\socketio_win32.c:547 Func: _socketio_send: Failure: socket state is not opened.
2023-08-04T19:40:39.7091451Z 565: [2023-08-04T19:40:39.7079413Z] ERROR : File: D:\a\_work\1\s\build\_deps\vcpkg-src\buildtrees\azure-uamqp-c\src\c1d5924306-398845d0ed.clean\src\connection.c:268 Func: _on_bytes_encoded: Cannot send encoded bytes
2023-08-04T19:40:39.7092178Z 565: [2023-08-04T19:40:39.7079720Z] DEBUG : -> [CLOSE]* {}
2023-08-04T19:40:39.7105026Z 430/472 Test #565: azure-core-amqp.TestManagement.ManagementRequestResponseUnknownOperationName ......................***Failed    0.16 sec

This might be intermittent since all pipelines aren't failing: https://github.com/Azure/azure-sdk-for-cpp/blob/35ee073d914e792d7b2abf846b8aea04b862b099/sdk/core/azure-core-amqp/test/ut/management_tests.cpp#L412

LarryOsterman commented 1 year ago

Likely fixed in #4914 .