You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue can be seen on #17222CI run.
It seems that multiple existing tests are comparing uint64_t with optional<uint64_t> and Windows CI fails to build them.
Not sure why the Windows CI isn't broken in general. Maybe they only run tests that are affected by the PR?
I had trouble getting clarity on the offending lines of code, but my last encounter discovered comparisons to nullopt_t, while the method has_value seems more standard.
I'd love to unblock myself and fix those issues by adding .value(). But unfortunately I don't have a Windows local environment to efficiently dig out all the problematic code. :(
I got lucky here and only needed to fix 2 test files to pass CI.
I'm no longer blocked. Feel free to close this issue if you folks think no further action is needed.
Activity
RenjieTang commentedon Jul 19, 2021
@wrowe @davinci26
davinci26 commentedon Jul 21, 2021
That's really weird because the same test passes on main branch. I verified this locally.
Somehow this is caused by your changes but I am not sure how.
If you want to get unblocked, I would add a call to .value() to explicitly get the value of the optional.
If you don't want to add this then I can do it by eow.
@wrowe knows way more than I do in terms of compilers and c++ standard so he might have an explanation.
wrowe commentedon Jul 21, 2021
I had trouble getting clarity on the offending lines of code, but my last encounter discovered comparisons to nullopt_t, while the method has_value seems more standard.
wrowe commentedon Jul 21, 2021
It seems some make very specific assumptions about the optional<> implementation that don't carry to the msvc cl compiler. It may go deeper than that, since I was able to reproduce under clang-cl compiler sharing the msvc stdc++ library. https://en.cppreference.com/w/cpp/utility/optional spells out portable usage of optional<>
RenjieTang commentedon Jul 21, 2021
I'd love to unblock myself and fix those issues by adding
.value(). But unfortunately I don't have a Windows local environment to efficiently dig out all the problematic code. :(davinci26 commentedon Jul 21, 2021
Let's be a bit optimistic and see if fixing config_impl_test.cc actually unblocks you.
There are two cases there so maybe fixing this would unblock you.
I am ooo till Friday, so this is the earlier I could push a pr.
RenjieTang commentedon Jul 22, 2021
I got lucky here and only needed to fix 2 test files to pass CI.
I'm no longer blocked. Feel free to close this issue if you folks think no further action is needed.
davinci26 commentedon Jul 23, 2021
Closing since everything compiles on main. Although I suspect this will surface again.