Open ayeshLK opened 1 month ago
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]
[1] - https://github.com/ballerina-platform/ballerina-lang/issues/42829
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] - https://github.com/ballerina-platform/ballerina-lang/issues/42829
Description:
Following test cases are failing in the workflow;
Workflow run: