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

Core tests are broken when https://www.geoplugin.net/ is down

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.1.1
    • Antivirus, Unit tests
    • None
    • MOODLE_401_STABLE

      Moodle core relies on data received from http://www.geoplugin.net/json.gp?ip=0.0.0.0

      At some point today this site became unavailable that broke all tests.

      Also that means some real functionality is also broken at some point. 

       

      root@6fe0ce16017c:/var/www/moodle# vendor/bin/phpunit lib/tests/antivirus_test.php          
      Moodle 4.1.1+ (Build: 20230210), eb84455a0550e9df4be103c90efc9322820b90a9
      Php: 7.4.30, pgsql: 14.0 (Debian 14.0-1.pgdg110+1), OS: Linux 5.15.0-58-generic x86_64
      PHPUnit 9.5.27 by Sebastian Bergmann and contributors.
      ..E...EEEEEE.EEEEEE                                               19 / 19 (100%)
      Time: 00:35.093, Memory: 85.00 MB
      There were 13 errors:
      1) antivirus_test::test_manager_scan_file_error
      Unexpected debugging() call detected.
      Debugging: cURL request for "http://www.geoplugin.net/json.gp?ip=0.0.0.0" failed, HTTP response code: HTTP/1.1 503 Service Unavailable
      * line 1688 of /lib/filelib.php: call to debugging()
      * line 76 of /iplookup/lib.php: call to download_file_content()
      * line 217 of /lib/classes/antivirus/scanner.php: call to iplookup_find_location()
      * line 140 of /lib/classes/antivirus/manager.php: call to core\antivirus\scanner->get_incident_details()
      * line 93 of /lib/tests/antivirus_test.php: call to core\antivirus\manager::scan_file()
      * line 1548 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to antivirus_test->test_manager_scan_file_error()
      * line 1154 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestCase->runTest()
      * line 80 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit\Framework\TestCase->runBare()
      * line 728 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
      * line 904 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestResult->run()
      * line 675 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestCase->run()
      * line 661 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit\Framework\TestSuite->run()
      * line 144 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\TestRunner->run()
      * line 97 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\Command->run()
      * line 98 of /vendor/phpunit/phpunit/phpunit: call to PHPUnit\TextUI\Command::main()
       
      /var/www/moodle/lib/phpunit/classes/advanced_testcase.php:88
      

       

            Unassigned Unassigned
            dmitriim Dmitrii Metelkin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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