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
{{ message }}
Repository navigation
string tests sometimes failing on macOS (Github Actions) #8353
This one's a bit of a headscratcher I've seen twice now:
Testing low-level functionality
Testing builtin_string
Error: Test failed on line 5674: [string match -r \(\?=ab\\K\) ab]: expected return code 0 but got 2
Error: Test failed on line 5674: [string match -r \(\?=ab\\K\)..\(\?=cd\\K\) abcd]: expected return code 0 but got 2
Encountered 2 errors in low-level tests
Rerunning seems to fix it, but I have no idea why? What even could be racing here?
Oh, I can just run it directly but I need to pick the right binary! string match: Regular expression compile error: \K is not allowed in lookarounds (but see PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK)
Okay, I'm just going to drop these tests - pcre2 apparently no longer wants to support this, following perl and pcre2_set_compile_extra_options requires mucking around with a "compile context". I don't believe anyone is using this feature so let's just remove it.
Activity
zanchey commentedon Oct 14, 2021
It's failing locally for me.
faho commentedon Oct 14, 2021
Okay, I can't seem to get it to succeed anymore - I'm pretty sure 8dc3982 already failed like this, but I have no idea how that would be related.
So we're going to need someone with a mac to bisect.
faho commentedon Oct 14, 2021
One possibility is that Github updated the macOS image - actions/runner-images#4263. It's possible we got the old one sometimes.
zanchey commentedon Oct 14, 2021
Yeah, this is failing all the way back to 5fc9a3c on my machine (haven't looked any further yet). I suspect a system library update.
zanchey commentedon Oct 14, 2021
make_unique<pcre2_matcher_t>is returning an invalid matcher, but I haven't dug into why.zanchey commentedon Oct 14, 2021
Oh, I can just run it directly but I need to pick the right binary!
string match: Regular expression compile error: \K is not allowed in lookarounds (but see PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK)faho commentedon Oct 14, 2021
Blergh, it now needs to be enabled separately: https://philiphazel.github.io/pcre2/doc/html/pcre2_set_compile_extra_options.html
(sidenote we should either update our vendored copy of pcre2 or drop it)
faho commentedon Oct 14, 2021
Okay, I'm just going to drop these tests - pcre2 apparently no longer wants to support this, following perl and pcre2_set_compile_extra_options requires mucking around with a "compile context". I don't believe anyone is using this feature so let's just remove it.
krobelus commentedon Oct 14, 2021
dropping sounds attractive. Or maybe get it as part of the build process, using CMake's ExternalProject_Add
CHANGELOG updates for 3.4.0