Test cases are failing in the daily `master` build
Closed this issue · 4 comments
Description:
$subject
Following test cases are failing in the workflow;
[fail] testCreateQueue:
error {ballerinax/asb:3}Error ("Error occurred while processing request: SubCode=40900. Conflict. You're requesting an operation that isn't allowed in the resource's current state. To know more visit https://aka.ms/sbResourceMgrExceptions. . TrackingId:81fb4a9c-8cec-4e6a-ac68-0e8f225c6a6c_G5, SystemTracker:ballerina-connector-test.servicebus.windows.net:queue1, Timestamp:2024-05-28T02:40:09",error("com.azure.core.exception.ResourceExistsException: SubCode=40900. Conflict. You're requesting an operation that isn't allowed in the resource's current state. To know more visit https://aka.ms/sbResourceMgrExceptions. . TrackingId:81fb4a9c-8cec-4e6a-ac68-0e8f225c6a6c_G5, SystemTracker:ballerina-connector-test.servicebus.windows.net:queue1, Timestamp:2024-05-28T02:40:09"))
callableName: createQueue moduleName: ballerinax.asb.3.Administrator fileName: admin.bal lineNumber: 212
callableName: testCreateQueue moduleName: ballerinax.asb$test.3.tests.asb_admin_tests fileName: tests/asb_admin_tests.bal lineNumber: 167
callableName: testCreateQueue$lambda14$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 18
[fail] testCreateTopicOperation:
error {ballerinax/asb:3}Error ("Error occurred while processing request: SubCode=40900. Conflict. You're requesting an operation that isn't allowed in the resource's current state. To know more visit https://aka.ms/sbResourceMgrExceptions. . TrackingId:579aedde-9faa-4f3c-b430-54b7ce69df01_G5, SystemTracker:ballerina-connector-test.servicebus.windows.net:topic1, Timestamp:2024-05-28T02:40:10",error("com.azure.core.exception.ResourceExistsException: SubCode=40900. Conflict. You're requesting an operation that isn't allowed in the resource's current state. To know more visit https://aka.ms/sbResourceMgrExceptions. . TrackingId:579aedde-9faa-4f3c-b430-54b7ce69df01_G5, SystemTracker:ballerina-connector-test.servicebus.windows.net:topic1, Timestamp:2024-05-28T02:40:10"))
callableName: createTopic moduleName: ballerinax.asb.3.Administrator fileName: admin.bal lineNumber: 40
callableName: testCreateTopicOperation moduleName: ballerinax.asb$test.3.tests.asb_admin_tests fileName: tests/asb_admin_tests.bal lineNumber: 201
callableName: testCreateTopicOperation$lambda16$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 20
[fail] testListnerReceive:
error("{ballerina}TypeCastError",message="incompatible types: '()' cannot be cast to 'string'")
callableName: init moduleName: ballerinax.asb.3.MessageSender fileName: sender.bal lineNumber: 44
callableName: sendMessage moduleName: ballerinax.asb$test.3.tests.asb_listner_test fileName: tests/asb_listner_test.bal lineNumber: 123
callableName: testListnerReceive moduleName: ballerinax.asb$test.3.tests.asb_listner_test fileName: tests/asb_listner_test.bal lineNumber: 135
callableName: testListnerReceive$lambda49$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 53
Workflow run:
Try to reproduce this locally by updating the ballerina version to 2201.9.0
and got following test failures;
[fail] testSendAndReceiveMessageFromQueueOperation:
error("{ballerina}TypeCastError",message="incompatible types: '()' cannot be cast to 'string'")
callableName: init moduleName: ballerinax.asb.3.MessageSender fileName: sender.bal lineNumber: 44
callableName: testSendAndReceiveMessageFromQueueOperation moduleName: ballerinax.asb$test.3.tests.asb_sender_receiver_tests fileName: tests/asb_sender_receiver_tests.bal lineNumber: 96
callableName: testSendAndReceiveMessageFromQueueOperation$lambda62$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 66
[fail] testUpdateRule:
error {ballerinax/asb:3}Error ("Error occurred while processing request, Status Code:404",error("com.azure.core.exception.ResourceNotFoundException: Entity 'ballerina-asb:Topic:topic1|subscription1|rule1' was not found. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:43c6c969-0c0c-45e2-bfba-db6465cfa317_B6, SystemTracker:NoSystemTracker, Timestamp:2024-05-29T04:28:10"))
callableName: updateRule moduleName: ballerinax.asb.3.Administrator fileName: admin.bal lineNumber: 181
callableName: testUpdateRule moduleName: ballerinax.asb$test.3.tests.asb_admin_tests fileName: tests/asb_admin_tests.bal lineNumber: 1022
callableName: testUpdateRule$lambda43$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 47
[fail] testReceivePayloadWithIncorrectExpectedType:
error("{ballerina}TypeCastError",message="incompatible types: '()' cannot be cast to 'string'")
callableName: init moduleName: ballerinax.asb.3.MessageSender fileName: sender.bal lineNumber: 44
callableName: testReceivePayloadWithIncorrectExpectedType moduleName: ballerinax.asb$test.3.tests.asb_sender_receiver_negative_tests fileName: tests/asb_sender_receiver_negative_tests.bal lineNumber: 28
callableName: testReceivePayloadWithIncorrectExpectedType$lambda54$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 58
[fail] testListnerReceive:
error("{ballerina}TypeCastError",message="incompatible types: '()' cannot be cast to 'string'")
callableName: init moduleName: ballerinax.asb.3.MessageSender fileName: sender.bal lineNumber: 44
callableName: sendMessage moduleName: ballerinax.asb$test.3.tests.asb_listner_test fileName: tests/asb_listner_test.bal lineNumber: 123
callableName: testListnerReceive moduleName: ballerinax.asb$test.3.tests.asb_listner_test fileName: tests/asb_listner_test.bal lineNumber: 135
callableName: testListnerReceive$lambda49$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 53
Try to reproduce this locally by updating the ballerina version to
2201.9.0
and got following test failures;[fail] testSendAndReceiveMessageFromQueueOperation: error("{ballerina}TypeCastError",message="incompatible types: '()' cannot be cast to 'string'") callableName: init moduleName: ballerinax.asb.3.MessageSender fileName: sender.bal lineNumber: 44 callableName: testSendAndReceiveMessageFromQueueOperation moduleName: ballerinax.asb$test.3.tests.asb_sender_receiver_tests fileName: tests/asb_sender_receiver_tests.bal lineNumber: 96 callableName: testSendAndReceiveMessageFromQueueOperation$lambda62$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 66 [fail] testUpdateRule: error {ballerinax/asb:3}Error ("Error occurred while processing request, Status Code:404",error("com.azure.core.exception.ResourceNotFoundException: Entity 'ballerina-asb:Topic:topic1|subscription1|rule1' was not found. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:43c6c969-0c0c-45e2-bfba-db6465cfa317_B6, SystemTracker:NoSystemTracker, Timestamp:2024-05-29T04:28:10")) callableName: updateRule moduleName: ballerinax.asb.3.Administrator fileName: admin.bal lineNumber: 181 callableName: testUpdateRule moduleName: ballerinax.asb$test.3.tests.asb_admin_tests fileName: tests/asb_admin_tests.bal lineNumber: 1022 callableName: testUpdateRule$lambda43$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 47 [fail] testReceivePayloadWithIncorrectExpectedType: error("{ballerina}TypeCastError",message="incompatible types: '()' cannot be cast to 'string'") callableName: init moduleName: ballerinax.asb.3.MessageSender fileName: sender.bal lineNumber: 44 callableName: testReceivePayloadWithIncorrectExpectedType moduleName: ballerinax.asb$test.3.tests.asb_sender_receiver_negative_tests fileName: tests/asb_sender_receiver_negative_tests.bal lineNumber: 28 callableName: testReceivePayloadWithIncorrectExpectedType$lambda54$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 58 [fail] testListnerReceive: error("{ballerina}TypeCastError",message="incompatible types: '()' cannot be cast to 'string'") callableName: init moduleName: ballerinax.asb.3.MessageSender fileName: sender.bal lineNumber: 44 callableName: sendMessage moduleName: ballerinax.asb$test.3.tests.asb_listner_test fileName: tests/asb_listner_test.bal lineNumber: 123 callableName: testListnerReceive moduleName: ballerinax.asb$test.3.tests.asb_listner_test fileName: tests/asb_listner_test.bal lineNumber: 135 callableName: testListnerReceive$lambda49$ moduleName: ballerinax.asb$test.3.tests.test_execute-generated_1 fileName: tests/test_execute-generated_1.bal lineNumber: 53
Following test failures are due to this runtime issue [1]
- testSendAndReceiveMessageFromQueueOperation
- testReceivePayloadWithIncorrectExpectedType
- testListnerReceive
Package GraalVM build [1] is failing due to the same runtime issue [2]
[1] - https://github.com/ballerina-platform/module-ballerinax-azure-service-bus/actions/runs/9317528168/job/25648007067
[2] - ballerina-platform/ballerina-lang#42829
Following issues were the root causes for the build failure:
Currently both these issues have been fixed and the build is passing. Hence, closing this issue.
Note: Since, both the above issues are not related to Azure service bus connector I have removed the Type/Bug
label from the issue.