Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11157

Add re.MULTILINE to regex search in primitive_check.py

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 1
    • StorEng - 2023-06-13

      Our current regex check in dist/primitive_check.py looks for concurrency primitives modified in a git diff by searching for the stringĀ  "(+|-).*{concurrency_primitive}". However the re.search() call isn't taking the re.MULTILINE flag which means the '' symbol doesn't correctly match against newlines in the text being searched. We need to add this flag.

            Assignee:
            andrew.morton@mongodb.com Andrew Morton
            Reporter:
            andrew.morton@mongodb.com Andrew Morton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: