Uploaded image for project: 'MariaDB Foundation Development'
  1. MariaDB Foundation Development
  2. MDBF-1204

CrossReference: Improve test_name filtering

    XMLWordPrintable

Details

    Description

      The current implementation supports:

      1. Exact match

      • Example: spider.auto_increment
      • Lookup: test_name__exact

      2. Substring match using the special *. notation

      • Example: *.sp-error
      • Lookup: test_name__icontains
      • The * character is stripped before applying the lookup, while the leading `.` remains.

      This special "." syntax was designed to support substring lookups only for the portion of the test name that comes after the suite separator "." . In practice, it allows searching with icontains only after the test suite name, instead of supporting more general wildcard-style matching.

      For example:

      • *.sp-error searches for .sp-error inside test_name

      As a result, the current behavior is limited and not intuitive for users who expect more general prefix, suffix, or contains matching.

      Proposed changes
      Update filters.test_name to support four matching modes:

      1. Exact match

      • Input: string
      • Lookup: test_name__exact

      2. Ends with

      • Input: *string
      • Lookup: test_name__endswith

      3. Contains

      • Input: *string*
      • Lookup: test_name__contains

      4. Starts with

      • Input: string*
      • Lookup: test_name__startswith

      Attachments

        Activity

          People

            rvarzaru Varzaru Razvan-Liviu
            rvarzaru Varzaru Razvan-Liviu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 5h
                5h