Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-30186

Use of uninitialized value $test_name in substitution

Details

    Description

      Reproduce

      1. Compile with -DPLUGIN_MROONGA=NO
      2.

      mtr --suite=mroonga
      

      Result

      Use of uninitialized value $test_name in substitution (s///) at /home/midenok/src/mariadb/10.6/src/mysql-test/mariadb-test-run.pl line 519.
      Use of uninitialized value $test_name in scalar chomp at /home/midenok/src/mariadb/10.6/src/mysql-test/mariadb-test-run.pl line 520.
      Use of uninitialized value in concatenation (.) or string at lib/My/Test.pm line 54.
                                               [ fail ]
      

      Attachments

        Issue Links

          Activity

            midenok Aleksey Midenkov created issue -
            midenok Aleksey Midenkov made changes -
            Field Original Value New Value
            midenok Aleksey Midenkov made changes -
            Description h3. Reproduce
            1. Compile with -DPLUGIN_MROONGA=NO
            2.
            ```
            mtr --suite=mroonga
            ```
            h3. Result
            ```
            Use of uninitialized value $test_name in substitution (s///) at /home/midenok/src/mariadb/10.6/src/mysql-test/mariadb-test-run.pl line 519.
            Use of uninitialized value $test_name in scalar chomp at /home/midenok/src/mariadb/10.6/src/mysql-test/mariadb-test-run.pl line 520.
            Use of uninitialized value in concatenation (.) or string at lib/My/Test.pm line 54.
                                                     [ fail ]
            ```
            h3. Reproduce
            1. Compile with -DPLUGIN_MROONGA=NO
            2.
            {code}
            mtr --suite=mroonga
            {code}
            h3. Result
            {code}
            Use of uninitialized value $test_name in substitution (s///) at /home/midenok/src/mariadb/10.6/src/mysql-test/mariadb-test-run.pl line 519.
            Use of uninitialized value $test_name in scalar chomp at /home/midenok/src/mariadb/10.6/src/mysql-test/mariadb-test-run.pl line 520.
            Use of uninitialized value in concatenation (.) or string at lib/My/Test.pm line 54.
                                                     [ fail ]
            {code}

            anel Can you take test name from the running state, not by parsing the logs?

            midenok Aleksey Midenkov added a comment - anel Can you take test name from the running state, not by parsing the logs?
            midenok Aleksey Midenkov made changes -
            Affects Version/s 10.11 [ 27614 ]
            midenok Aleksey Midenkov made changes -
            Fix Version/s 10.11 [ 27614 ]
            anel Anel Husakovic added a comment - - edited

            Patch of MDEV-25857 is pushed to 10.6 first

            $ git tag --contains 29e8c154172bd6b9dccd9757fddace93be6ad194|grep 10.3
            

            So by testing above on 10.3 we get:

            $ ./mysql-test/mtr --suite=mroonga
            Logging: /home/anel/GitHub/mariadb/server/src/10.3/mysql-test/mysql-test-run.pl  --suite=mroonga
            VS config: 
            vardir: /home/anel/GitHub/mariadb/server/build/10.3/mysql-test/var
            Removing old var directory...
             - WARNING: Using the 'mysql-test/var' symlink
            The destination for symlink /home/anel/GitHub/mariadb/server/build/10.3/mysql-test/var does not exist; Removing it and creating a new var directory
            Creating var directory '/home/anel/GitHub/mariadb/server/build/10.3/mysql-test/var'...
            Checking supported features...
            MariaDB Version 10.3.38-MariaDB-debug
             - SSL connections supported
             - binaries are debug compiled
             - binaries built with wsrep patch
            Using suites: mroonga
            Collecting tests...
            Installing system database...
             
            ==============================================================================
             
            TEST                                      RESULT   TIME (ms) or COMMENT
            --------------------------------------------------------------------------
             
            worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019
            mysql-test-run: *** ERROR: Test suite aborted
            

            I don't see for example on connect same error, it works.
            midenok can you please review my PR 2387and should we target for 10.6+ ?

            anel Anel Husakovic added a comment - - edited Patch of MDEV-25857 is pushed to 10.6 first $ git tag --contains 29e8c154172bd6b9dccd9757fddace93be6ad194| grep 10.3 So by testing above on 10.3 we get: $ . /mysql-test/mtr --suite=mroonga Logging: /home/anel/GitHub/mariadb/server/src/10 .3 /mysql-test/mysql-test-run .pl --suite=mroonga VS config: vardir: /home/anel/GitHub/mariadb/server/build/10 .3 /mysql-test/var Removing old var directory... - WARNING: Using the 'mysql-test/var' symlink The destination for symlink /home/anel/GitHub/mariadb/server/build/10 .3 /mysql-test/var does not exist; Removing it and creating a new var directory Creating var directory '/home/anel/GitHub/mariadb/server/build/10.3/mysql-test/var' ... Checking supported features... MariaDB Version 10.3.38-MariaDB-debug - SSL connections supported - binaries are debug compiled - binaries built with wsrep patch Using suites: mroonga Collecting tests... Installing system database...   ==============================================================================   TEST RESULT TIME (ms) or COMMENT --------------------------------------------------------------------------   worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019 mysql- test -run: *** ERROR: Test suite aborted I don't see for example on connect same error, it works. midenok can you please review my PR 2387 and should we target for 10.6+ ?
            anel Anel Husakovic made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            anel Anel Husakovic made changes -
            Assignee Anel Husakovic [ anel ] Aleksey Midenkov [ midenok ]
            Status Confirmed [ 10101 ] In Review [ 10002 ]
            anel Anel Husakovic made changes -
            Assignee Aleksey Midenkov [ midenok ] Anel Husakovic [ anel ]
            anel Anel Husakovic made changes -
            Fix Version/s 10.6 [ 24028 ]
            Fix Version/s 10.11 [ 27614 ]

            Pushed to 10.6 with commit 0e737f78980

            anel Anel Husakovic added a comment - Pushed to 10.6 with commit 0e737f78980
            anel Anel Husakovic made changes -
            Fix Version/s 10.6.12 [ 28513 ]
            Fix Version/s 10.7.8 [ 28515 ]
            Fix Version/s 10.8.7 [ 28517 ]
            Fix Version/s 10.9.5 [ 28519 ]
            Fix Version/s 10.10.3 [ 28521 ]
            Fix Version/s 10.11.2 [ 28523 ]
            Fix Version/s 10.6 [ 24028 ]
            Resolution Fixed [ 1 ]
            Status In Review [ 10002 ] Closed [ 6 ]
            dbart Daniel Bartholomew made changes -
            Fix Version/s 10.6.13 [ 28514 ]
            Fix Version/s 10.8.8 [ 28518 ]
            Fix Version/s 10.9.6 [ 28520 ]
            Fix Version/s 10.10.4 [ 28522 ]
            Fix Version/s 10.6.12 [ 28513 ]
            Fix Version/s 10.7.8 [ 28515 ]
            Fix Version/s 10.8.7 [ 28517 ]
            Fix Version/s 10.9.5 [ 28519 ]
            Fix Version/s 10.10.3 [ 28521 ]
            dbart Daniel Bartholomew made changes -
            Fix Version/s 10.11.3 [ 28524 ]
            Fix Version/s 10.11.2 [ 28523 ]

            People

              anel Anel Husakovic
              midenok Aleksey Midenkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.