Skip to content

Conversation

@antkmsft
Copy link
Member

@antkmsft antkmsft commented Mar 7, 2024

I encourage @ahsonkhan to re-apply some parts of it as soon as possible.

In my opinion, these were the good things:

  1. Renaming TESTING_BUILD to _azure_TESTING_BUILD. We can solve this by adding if(BUILD_TESTING) add_compile_definitions(_azure_TESTING_BUILD) in a centralized location, such as AzureGlobalCompileOptions.cmake/AddGoogleTest.cmake (or make a new cmake file). Also, the existing #if defined/ #ifdef(_azure_TESTING_BUILD_AMQP) can be switched to #if defined(_azure_TESTING_BUILD) after that.

  2. All libraries having _azure_TESTING_BUILD defined when building the tests (Update remaining package CMakeLists.txt to include the _azure_TESTING_BUILD compile definitions. #5414). If Item 1 above is done in a centralized
    way, i.e. via .cmake file, this item should be automatically taken care of as well.

  3. Some testing protecteds can be made private unconditionally.

For later:

  1. Maybe drop "ifndef TESTING final". // BTW, for test_hooks.hpp, should you end up creating one, I think, testing.hpp would be even better name, because the name implies we may put more testing-related stuff there in the future, the name is more generic.

  2. Maybe find a way to still drop virtual and final from Doxygen; maybe from ApiView.

  3. Maybe think of the mocking support / exposing internal details or test hooks in another way / avoiding (so many) friend declarations (Think about good and consistent pattern for exposing some internal class details for unit tests #5147), and applying that pattern universally.

@antkmsft
Copy link
Member Author

antkmsft commented Mar 7, 2024

/azp run cpp - core

@antkmsft
Copy link
Member Author

antkmsft commented Mar 7, 2024

/azp run cpp - attestation

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@antkmsft
Copy link
Member Author

antkmsft commented Mar 7, 2024

/azp run cpp - storage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@antkmsft
Copy link
Member Author

antkmsft commented Mar 7, 2024

/azp run cpp - identity

@antkmsft
Copy link
Member Author

antkmsft commented Mar 7, 2024

/azp run cpp - keyvault

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@antkmsft
Copy link
Member Author

antkmsft commented Mar 7, 2024

/azp run cpp - tables

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@antkmsft antkmsft marked this pull request as ready for review March 7, 2024 01:08
@antkmsft antkmsft requested a review from xiangyan99 March 7, 2024 01:08
Copy link
Member

@LarryOsterman LarryOsterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably mark the changes we want to keep (like the AzureDoxygen.cmake changes).

@antkmsft
Copy link
Member Author

antkmsft commented Mar 7, 2024

@ahsonkhan, @LarryOsterman - I enumerated all things in this PR description, please comment if you think we should capture more.
I deliberately not adding more original commits here, the PR is simple automated revert of 4 commits.

Copy link
Contributor

@ahsonkhan ahsonkhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will try to bring most things back other than the conditional virtual. Other than that, the rest of it was improvements we'd want, imo.

Given a revert like this is cleaner, approving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants