Skip to content

update macos image from 11 to latest #5721

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

Merged
merged 5 commits into from
Jun 21, 2024
Merged

Conversation

weshaggard
Copy link
Member

No description provided.

@weshaggard
Copy link
Member Author

@LarryOsterman @ahsonkhan any thoughts on the error we are hitting with the MacOS update?

/Users/runner/work/1/s/sdk/eventhubs/azure-messaging-eventhubs/test/perf/inc/azure/messaging/eventhubs/test/eventhubs_batch_perf_test.hpp:180:14: error: variable 'total' set but not used [-Werror,-Wunused-but-set-variable]
      size_t total = 0

It does appear to be an unused variable but I'm not sure why it isn't triggering on the other OSes.

@ahsonkhan
Copy link
Contributor

I believe the strictness of unused variable warnings and flags are compiler specific. So, the compiler on MacOS (clang?) happens to catch it but others like on Windows (MSVC) doesn't.

That's one of the reasons why we test on multiple OSes, to get such coverage.

The change seems reasonable for this PR, especially since it is in tests. That said, I'll let Larry follow-up on whether we should remove the lines all together, since he owns EventHubs.

@weshaggard
Copy link
Member Author

I believe the strictness of unused variable warnings and flags are compiler specific. So, the compiler on MacOS (clang?) happens to catch it but others like on Windows (MSVC) doesn't.

That's one of the reasons why we test on multiple OSes, to get such coverage.

The change seems reasonable for this PR, especially since it is in tests. That said, I'll let Larry follow-up on whether we should remove the lines all together, since he owns EventHubs.

There are more issues showing up on the mac build now as well. I'd appreciate if someone on the c++ team could help with those issues so that we can get the mac build unblocked.

@weshaggard
Copy link
Member Author

Looks like the changes made in #5681 fixed the macos build issues.

@weshaggard weshaggard merged commit 572c2ae into Azure:main Jun 21, 2024
41 checks passed
@weshaggard weshaggard deleted the UpdateMacOs branch June 21, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants