Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-83158

Unknown exception when starting database session : dummy - Undefined property: stdClass::$id on PHPUnit runs

XMLWordPrintable

      I've noticed the following exception while inspecting a PHPUnit run:

      ...........................................................    59 / 23770 (  0%)
      ...........................................................   118 / 23770 (  0%)
      .........................................SS................   177 / 23770 (  0%)
      ..Unknown exception when starting database session : dummy - Undefined property: stdClass::$id
      .........................................................   236 / 23770 (  0%)
      

      See this build for instance

      The issue started after MDL-66151 was integrated.

      To reproduce, simply run the dml_read_slave_test unit test:

      $ bin/moodle-docker-compose exec webserver vendor/bin/phpunit --filter=dml_read_slave_test
      Moodle 4.5dev+ (Build: 20240829), e52fbd2f8402765f3e96fe8f58186c419533bbed
      Php: 8.2.8, pgsql: 13.11 (Debian 13.11-1.pgdg110+1), OS: Linux 5.15.0-119-generic x86_64
      PHPUnit 9.6.18 by Sebastian Bergmann and contributors.
       
      ............Unknown exception when starting database session : dummy - Undefined property: stdClass::$id
      .                                                     13 / 13 (100%)
       
      Time: 00:08.222, Memory: 320.00 MB
       
      OK (13 tests, 73 assertions)
      

            matt.porritt@moodle.com Matt Porritt
            lameze Simey Lameze
            Paul Holden Paul Holden
            Simey Lameze Simey Lameze
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.