Skip to content
  • Guilherme Gallo's avatar
    Escape dots for non-regexes lines · b6a7c780
    Guilherme Gallo authored and Faith Ekstrand's avatar Faith Ekstrand committed
    
    
    deqp-runner is assuming that every dot in the expectation files is a
    `DOT` regex character, which usually is not intended.
    
    For bigger files, such as [1], this is causing `RegexSet` to reach its
    default size limit without reason. Here is the error message:
    
    ```
    Error: compiling skips regexes
    Caused by:
        0: Parsing regex set
        1: Compiled regex exceeds size limit of 10485760 bytes.
    ```
    
    Adopted the strategy to detect if an expectation line has another regex
    character, such as `*`, to decide whether the `.` should be escaped.
    
    Reference:
     - [1] https://gitlab.freedesktop.org/gfx-ci-bot/virglrenderer/-/blob/9e4f4a951de2611de12dec1e97e0766183e981c8/.gitlab-ci/expectations/virt/venus-skips.txt
     - https://gitlab.freedesktop.org/gfx-ci-bot/virglrenderer/-/jobs/58402982#L686
    
    Signed-off-by: default avatarGuilherme Gallo <guilherme.gallo@collabora.com>
    b6a7c780