Skip to content

string tests sometimes failing on macOS (Github Actions) #8353

Closed

Description

@faho

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?

I don't know if https://github.com/fish-shell/fish-shell/runs/3895703216 is a stable link (I sure hope it is).

Activity

  1. added
    bug
    on Oct 14, 2021
  2. added this to the fish-future milestone on Oct 14, 2021
  3. zanchey commented on Oct 14, 2021

    @zanchey
    Member

    It's failing locally for me.

  4. faho commented on Oct 14, 2021

    @faho
    MemberAuthor

    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.

  5. faho commented on Oct 14, 2021

    @faho
    MemberAuthor

    One possibility is that Github updated the macOS image - actions/runner-images#4263. It's possible we got the old one sometimes.

  6. zanchey commented on Oct 14, 2021

    @zanchey
    Member

    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.

  7. zanchey commented on Oct 14, 2021

    @zanchey
    Member

    make_unique<pcre2_matcher_t> is returning an invalid matcher, but I haven't dug into why.

  8. zanchey commented on Oct 14, 2021

    @zanchey
    Member

    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)

  9. faho commented on Oct 14, 2021

    @faho
    MemberAuthor

    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)

  10. faho commented on Oct 14, 2021

    @faho
    MemberAuthor

    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.

  11. modified the milestones: fish-future, fish 3.4.0 on Oct 14, 2021
  12. krobelus commented on Oct 14, 2021

    @krobelus
    Contributor

    (sidenote we should either update our vendored copy of pcre2 or drop it)

    dropping sounds attractive. Or maybe get it as part of the build process, using CMake's ExternalProject_Add

  13. added a commit that references this issue on Dec 12, 2021
  14. locked as resolved and limited conversation to collaborators on Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions