-
Notifications
You must be signed in to change notification settings - Fork 165
Amqp gearama2 #4571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amqp gearama2 #4571
Changes from 46 commits
723df3f
9c05e78
56fd96b
a146dae
315967c
0a7b619
2d12f30
bd97144
3102d42
8e0bf37
0e5b929
4658d53
69f6c12
10ddb5b
27bbc64
f0a917c
f686ef9
58e005b
ceacafc
7f197c1
8a4175c
9ec5a4f
3a079dc
3dda86e
aa9720a
4350b7b
b5338b8
81e2025
0d42890
fd34d3a
589f27c
144b120
e306e1f
a1680f2
d57ce95
a4fc77c
ef325f9
0e8677a
d38a493
0425cc4
39b2b95
4c95275
cd9007b
1236b40
f3a5866
95a7f1b
f77c578
f55cf37
7c5fbbf
5202039
7edcc8e
dc606a2
70c1316
38cc600
19ace02
c448ad0
86a3cb0
3a244da
f3d167b
5e82d5c
3a23542
47032a0
cc9c566
5376400
bb7c51c
91d7f2f
a3260ea
496c057
acdd494
7b68e43
fce322c
2be4c20
a4dcb3f
1ff3636
7e56bc5
9288971
d72d89c
a88b727
e45223f
c65cbd6
4807ab6
aaaa5d8
7bccde8
36ab136
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,7 +56,8 @@ | |
| "value": "True", | ||
| "type": "BOOL" | ||
| } | ||
| ] | ||
| ], | ||
| "cmakeToolchain": "D:/vcpkg/scripts/buildsystems/vcpkg.cmake" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't hardcode the path.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't be making changes to CMakeSettings.json but instead be changing files in cmakepresets.json. I'm also not 100% sure why we would ever need to include the location for the cmake toolchain file this way. |
||
| }, | ||
| { | ||
| "name": "x64-DebugWithTests-OpenSSL111", | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -30,6 +30,10 @@ macro(GetFolderList project) | |||||||||||||||
| elseif(${project} STREQUAL STORAGE_QUEUES) | ||||||||||||||||
| DownloadDepVersion(sdk/core azure-core 1.5.0) | ||||||||||||||||
| DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.2.3) | ||||||||||||||||
| elseif(${project} STREQUAL MESSAGING) | ||||||||||||||||
| DownloadDepVersion(sdk/core azure-core 1.8.0) | ||||||||||||||||
| DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.3.1) | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
| elseif(${project} STREQUAL STORAGE_FILES_DATALAKE) | ||||||||||||||||
| endif() | ||||||||||||||||
| list(REMOVE_DUPLICATES BUILD_FOLDERS) | ||||||||||||||||
| endmacro() | ||||||||||||||||
|
|
@@ -52,6 +56,9 @@ endmacro() | |||||||||||||||
|
|
||||||||||||||||
| macro(SetCompileOptions project) | ||||||||||||||||
| message ("setting up compile options for ${project}") | ||||||||||||||||
| if(${project} STREQUAL MESSAGING) | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't believe this is required any more. |
||||||||||||||||
| option(ENABLE_AZURE_CORE_AMQP "Enable AMQP." ON) | ||||||||||||||||
| endif() | ||||||||||||||||
| # Compile Options | ||||||||||||||||
| SetGlobalOptions() | ||||||||||||||||
| endmacro() | ||||||||||||||||
|
|
||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,6 +130,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace _internal { | |
| */ | ||
| class Management final { | ||
| public: | ||
| Management() = default; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't have a default constructor for a Management object, they only make sense when constructed with at least a Session object. |
||
| /** | ||
| * @brief Create a new Management object instance. | ||
| * | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace Models { | |
|
|
||
| using UniqueMessageHeaderHandle = Azure::Core::_internal::UniqueHandle<HEADER_INSTANCE_TAG>; | ||
|
|
||
| struct MessageHeader final | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In what circumstances are you going to derive a class from the MessageHeader? Generally these should be |
||
| struct MessageHeader | ||
| { | ||
|
|
||
| MessageHeader() = default; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace Models { | |
|
|
||
| constexpr int AmqpMessageFormatValue = 0; // Specifies the message format for an AMQP message. | ||
|
|
||
| class AmqpMessage final { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And if there is a reason, for all the classes we do this for, we should add a virtual destructor. |
||
| class AmqpMessage { | ||
| public: | ||
| /** @brief Construct a new AMQP Message object. */ | ||
| AmqpMessage() = default; | ||
|
|
@@ -268,7 +268,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace Models { namespace | |
| * @remarks This class should not be used directly. It is used by the uAMQP interoperability | ||
| * layer. | ||
| */ | ||
| class AmqpMessageFactory final { | ||
| class AmqpMessageFactory { | ||
| public: | ||
| static AmqpMessage FromUamqp(UniqueMessageHandle const& properties); | ||
| static AmqpMessage FromUamqp(MESSAGE_INSTANCE_TAG* properties); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,6 +120,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace _internal { | |
| SessionOptions const& options = {}, | ||
| SessionEvents* eventHandler = nullptr); | ||
|
|
||
| Session() = default; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Session should not have a default constructor, there is no scenario where a Session object can work without an associated Connection object. |
||
| /** @brief Destroys the session object. */ | ||
| ~Session() noexcept; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,12 +8,22 @@ | |
| #include <iostream> | ||
| #include <limits> | ||
| #include <string> | ||
|
|
||
| #include <azure/core/internal/environment.hpp> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should use either |
||
| #define EH_CONNECTION_STRING "<<<Replace with the connection string from your eventhubs instance>>>" | ||
|
|
||
| int main() | ||
| { | ||
| Azure::Core::Amqp::_internal::ConnectionOptions connectionOptions; | ||
| /* | ||
| * std::string connectionString | ||
| = Azure::Core::_internal::Environment::GetVariable("EVENTHUB_CONNECTION_STRING") | ||
| + ";EntityPath=eventhub"; | ||
| auto credential | ||
| = std::make_shared<Azure::Core::Amqp::_internal::ServiceBusSasConnectionStringCredential>( | ||
| connectionString); | ||
| std::string hostUrl = "amqps://" + credential->GetHostName() + "/" + credential->GetEntityPath() | ||
| + "/ConsumerGroups/$Default/Partitions/1"; | ||
| */ | ||
| Azure::Core::Amqp::_internal::ConnectionOptions connectionOptions; | ||
| connectionOptions.ContainerId = "whatever"; | ||
| connectionOptions.EnableTrace = false; | ||
| connectionOptions.SaslCredentials | ||
|
|
@@ -38,11 +48,11 @@ int main() | |
| Azure::Core::Amqp::_internal::MessageReceiver receiver(session, hostUrl, receiverOptions); | ||
|
|
||
| // Open the connection to the remote. | ||
| receiver.Open(); | ||
| receiver.Open(); | ||
|
|
||
| auto timeStart = std::chrono::high_resolution_clock::now(); | ||
|
|
||
| constexpr int maxMessageReceiveCount = 1000; | ||
| constexpr int maxMessageReceiveCount = 10000; | ||
|
|
||
| int messageReceiveCount = 0; | ||
| while (messageReceiveCount < maxMessageReceiveCount) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ | |
|
|
||
| int main() | ||
| { | ||
| std::string eventhubConnectionString = GetEnvHelper::GetEnv("EVENTHUB_CONNECTION_STRING"); | ||
| std::string eventhubConnectionString = GetEnvHelper::GetEnv("EVENTHUB_CONNECTION_STRING")+ ";EntityPath=eventhub"; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't hard code the eventhubs instance in samples. |
||
|
|
||
| auto credential | ||
| = std::make_shared<Azure::Core::Amqp::_internal::ServiceBusSasConnectionStringCredential>( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,10 +12,13 @@ | |
| #include <iostream> | ||
| #include <limits> | ||
| #include <string> | ||
| #include <azure/core/internal/environment.hpp> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This shouldn't be needed. |
||
|
|
||
| int main() | ||
| { | ||
| std::string eventhubConnectionString = GetEnvHelper::GetEnv("EVENTHUB_CONNECTION_STRING"); | ||
| std::string eventhubConnectionString | ||
| = GetEnvHelper::GetEnv("EVENTHUB_CONNECTION_STRING") + ";EntityPath=eventhub"; | ||
|
|
||
|
|
||
| auto credential{ | ||
| std::make_shared<Azure::Core::Amqp::_internal::ServiceBusSasConnectionStringCredential>( | ||
|
|
@@ -37,10 +40,11 @@ int main() | |
|
|
||
| Azure::Core::Amqp::_internal::Session session(connection, credential, sessionOptions); | ||
|
|
||
| constexpr int maxMessageSendCount = 1000; | ||
| constexpr int maxMessageSendCount = 5; | ||
| Azure::Core::Amqp::Models::AmqpMessage message; | ||
| message.SetBody(Azure::Core::Amqp::Models::AmqpBinaryData{'H', 'e', 'l', 'l', 'o'}); | ||
|
|
||
|
|
||
| Azure::Core::Amqp::_internal::MessageSenderOptions senderOptions; | ||
| senderOptions.EnableTrace = true; | ||
| senderOptions.Name = "sender-link"; | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,7 +22,6 @@ if(FETCH_SOURCE_DEPS) | |||||||||||||||||||||||||||||||||||||||||
| SetCompileOptions(MESSAGING) | ||||||||||||||||||||||||||||||||||||||||||
| endif() | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| include(AzureVersion) | ||||||||||||||||||||||||||||||||||||||||||
| include(AzureCodeCoverage) | ||||||||||||||||||||||||||||||||||||||||||
| include(AzureTransportAdapters) | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -33,37 +32,86 @@ include(AzureBuildTargetForCI) | |||||||||||||||||||||||||||||||||||||||||
| # Add create_map_file function | ||||||||||||||||||||||||||||||||||||||||||
| include(CreateMapFile) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| if(FETCH_SOURCE_DEPS) | ||||||||||||||||||||||||||||||||||||||||||
| GetFolderList(KEYS) | ||||||||||||||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. KEYS?? |
||||||||||||||||||||||||||||||||||||||||||
| foreach(oneFolder IN LISTS BUILD_FOLDERS) | ||||||||||||||||||||||||||||||||||||||||||
| message("add folder ${oneFolder}") | ||||||||||||||||||||||||||||||||||||||||||
| add_subdirectory(${oneFolder} EXCLUDE_FROM_ALL) | ||||||||||||||||||||||||||||||||||||||||||
| endforeach() | ||||||||||||||||||||||||||||||||||||||||||
| elseif(NOT AZ_ALL_LIBRARIES) | ||||||||||||||||||||||||||||||||||||||||||
| find_package(azure-core-cpp "1.9.0" CONFIG QUIET) | ||||||||||||||||||||||||||||||||||||||||||
| find_package(azure-storage-blobs-cpp "12.7.0" CONFIG QUIET) | ||||||||||||||||||||||||||||||||||||||||||
| if(NOT azure-core-cpp_FOUND) | ||||||||||||||||||||||||||||||||||||||||||
| find_package(azure-core-cpp "1.9.0" REQUIRED) | ||||||||||||||||||||||||||||||||||||||||||
| find_package(azure-storage-blobs-cpp "12.7.0" REQUIRED) | ||||||||||||||||||||||||||||||||||||||||||
| endif() | ||||||||||||||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
| endif() | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| set( | ||||||||||||||||||||||||||||||||||||||||||
| AZURE_MESSAGING_EVENTHUBS_HEADER | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/eventhubs.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/dll_import_export.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/producer_client.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/event_data_batch.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/retry_operation.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/consumer_client.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/partition_client.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/processor_load_balancer.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/processor_partition_client.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/checkpoint_store.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/rtti.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/processor.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/models/amqp_message.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/models/management_models.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/models/checkpoint_store_models.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/models/consumer_client_models.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/models/event_data_batch_models.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/models/partition_client_models.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/models/processor_models.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/models/processor_load_balancer_models.hpp | ||||||||||||||||||||||||||||||||||||||||||
| inc/azure/messaging/eventhubs/models/producer_client_models.hpp | ||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| set( | ||||||||||||||||||||||||||||||||||||||||||
| AZURE_MESSAGING_EVENTHUBS_SOURCE | ||||||||||||||||||||||||||||||||||||||||||
| src/eventhubs.cpp | ||||||||||||||||||||||||||||||||||||||||||
| src/private/package_version.hpp | ||||||||||||||||||||||||||||||||||||||||||
| src/private/package_version.hpp | ||||||||||||||||||||||||||||||||||||||||||
| src/producer_client.cpp | ||||||||||||||||||||||||||||||||||||||||||
| src/retry_operation.cpp | ||||||||||||||||||||||||||||||||||||||||||
| src/consumer_client.cpp | ||||||||||||||||||||||||||||||||||||||||||
| src/checkpoint_store.cpp | ||||||||||||||||||||||||||||||||||||||||||
| src/processor_load_balancer.cpp | ||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||
| add_library( | ||||||||||||||||||||||||||||||||||||||||||
| azure-messaging-eventhubs | ||||||||||||||||||||||||||||||||||||||||||
| ${AZURE_MESSAGING_EVENTHUBS_HEADER} | ||||||||||||||||||||||||||||||||||||||||||
| ${AZURE_MESSAGING_EVENTHUBS_SOURCE} | ||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| target_include_directories(azure-messaging-eventhubs PUBLIC | ||||||||||||||||||||||||||||||||||||||||||
| ${AZURE_MESSAGING_EVENTHUBS_HEADER} ${AZURE_MESSAGING_EVENTHUBS_SOURCE} | ||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||
| create_per_service_target_build(messaging azure-messaging-eventhubs) | ||||||||||||||||||||||||||||||||||||||||||
| add_library(Azure::azure-messaging-eventhubs ALIAS azure-messaging-eventhubs) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| target_include_directories( | ||||||||||||||||||||||||||||||||||||||||||
| azure-messaging-eventhubs | ||||||||||||||||||||||||||||||||||||||||||
| PUBLIC | ||||||||||||||||||||||||||||||||||||||||||
| $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc> | ||||||||||||||||||||||||||||||||||||||||||
| $<INSTALL_INTERFACE:include> | ||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||
| # Include shared source code | ||||||||||||||||||||||||||||||||||||||||||
| # NOTE: Use shared-code only within .cpp files. DO NEVER consume the shared-code from header files. | ||||||||||||||||||||||||||||||||||||||||||
| target_include_directories( | ||||||||||||||||||||||||||||||||||||||||||
| azure-messaging-eventhubs | ||||||||||||||||||||||||||||||||||||||||||
| PRIVATE | ||||||||||||||||||||||||||||||||||||||||||
| $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../azure-messaging-eventhubs/inc> | ||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| target_link_libraries(azure-messaging-eventhubs PUBLIC Azure::azure-core) | ||||||||||||||||||||||||||||||||||||||||||
| target_link_libraries(azure-messaging-eventhubs PUBLIC Azure::azure-core Azure::azure-core-amqp Azure::azure-storage-blobs) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # coverage. Has no effect if BUILD_CODE_COVERAGE is OFF | ||||||||||||||||||||||||||||||||||||||||||
| create_code_coverage(eventhubs azure-messaging-eventhubs azure-messaging-eventhubs-test "tests?/*;samples?/*") | ||||||||||||||||||||||||||||||||||||||||||
| create_code_coverage(messaging azure-messaging-eventhubs azure-messaging-eventhubs-test "tests?/*;samples?/*") | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| get_az_version("${CMAKE_CURRENT_SOURCE_DIR}/src/private/package_version.hpp") | ||||||||||||||||||||||||||||||||||||||||||
| generate_documentation(azure-messaging-eventhubs ${AZ_LIBRARY_VERSION}) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| if(BUILD_TESTING) | ||||||||||||||||||||||||||||||||||||||||||
| add_compile_definitions(TESTING_BUILD_AMQP) | ||||||||||||||||||||||||||||||||||||||||||
| if (NOT AZ_ALL_LIBRARIES OR FETCH_SOURCE_DEPS) | ||||||||||||||||||||||||||||||||||||||||||
| include(AddGoogleTest) | ||||||||||||||||||||||||||||||||||||||||||
| enable_testing () | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -75,11 +123,13 @@ endif() | |||||||||||||||||||||||||||||||||||||||||
| az_vcpkg_export( | ||||||||||||||||||||||||||||||||||||||||||
| azure-messaging-eventhubs | ||||||||||||||||||||||||||||||||||||||||||
| MESSAGING_EVENTHUBS | ||||||||||||||||||||||||||||||||||||||||||
| "azure/messaging/eventhubs/dll_import_export.hpp" | ||||||||||||||||||||||||||||||||||||||||||
| azure/messaging/eventhubs/dll_import_export.hpp | ||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| az_rtti_setup( | ||||||||||||||||||||||||||||||||||||||||||
| azure-messaging-eventhubs | ||||||||||||||||||||||||||||||||||||||||||
| MESSAGING_EVENTHUBS | ||||||||||||||||||||||||||||||||||||||||||
| "azure/messaging/eventhubs/rtti.hpp" | ||||||||||||||||||||||||||||||||||||||||||
| azure/messaging/eventhubs/rtti.hpp | ||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| unset(FETCH_SOURCE_DEPS CACHE) | ||||||||||||||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,13 +20,13 @@ pr: | |
| - hotfix/* | ||
| paths: | ||
| include: | ||
| - sdk/eventhubs/azure-messaging-eventhubs | ||
| - sdk/eventhubs | ||
| - eng/common/testproxy | ||
|
|
||
| stages: | ||
| - template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml | ||
| - template: ../../../eng/pipelines/templates/stages/archetype-sdk-client.yml | ||
| parameters: | ||
| ServiceDirectory: eventhubs/azure-messaging-eventhubs | ||
| ServiceDirectory: eventhubs | ||
| CtestRegex: "azure-messaging-eventhubs.*" | ||
| LiveTestCtestRegex: "azure-messaging-eventhubs.*" | ||
| LiveTestTimeoutInMinutes: 120 | ||
|
|
@@ -53,11 +53,11 @@ stages: | |
| - Name: Default | ||
| Value: '' | ||
| - Name: Test | ||
| Value: '-DBUILD_TESTING=ON' | ||
| Value: '-DBUILD_TESTING=ON -DENABLE_AZURE_CORE_AMQP=ON' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ENABLE_AZURE_CORE_AMQP should not be needed. |
||
| - Name: Samples | ||
| Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON' | ||
| Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DENABLE_AZURE_CORE_AMQP=ON' | ||
| - Name: Performance | ||
| Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DBUILD_PERFORMANCE_TESTS=ON' | ||
| Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DBUILD_PERFORMANCE_TESTS=ON -DENABLE_AZURE_CORE_AMQP=ON' | ||
| CMakeSourceTestOptions: | ||
| - Name: Source | ||
| Value: '-DFETCH_SOURCE_DEPS=ON' | ||
| Value: '-DFETCH_SOURCE_DEPS=OFF' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By convention, we use 2 spaces to indent cmake conditionals, not 4.