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

Backup converter tests result in errors under Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.4.1
    • Backup, Unit tests
    • MOODLE_24_STABLE

      I'm seeing errors when running unit tests under Windows. I think this is mostly to do with file system differences, but the errors have varying effects on subsequent tests when using different DBs. With Oracle, it dies completely. The other DBs continue after the errors.

      Here are the errors from Oracle...

      Starting test 'moodle1_converter_testcase::test_migrate_file'.
      E
      Starting test 'moodle1_converter_testcase::test_convert_path'.
      E
      Starting test 'moodle1_converter_testcase::test_convert_path_implicit_recipes'.
      E
      Starting test 'moodle1_converter_testcase::test_convert_path_explicit_recipes'.
      E
      Starting test 'moodle1_converter_testcase::test_grouped_data_on_nongrouped_convert_path'.
      E
      Starting test 'moodle1_converter_testcase::test_grouped_convert_path_with_recipes'.
      E
      Starting test 'moodle1_converter_testcase::test_referenced_course_files'.
      E
      Starting test 'moodle1_converter_testcase::test_referenced_files_urlencoded'.
      E
      Starting test 'moodle1_converter_testcase::test_question_bank_conversion'.
      E
      Starting test 'moodle1_converter_testcase::test_convert_run_convert'.
      E
      Starting test 'moodle1_converter_testcase::test_inforef_manager'.
      E
       
      Fatal error: Uncaught exception 'ddl_change_structure_exception' with message 'DDL sql execution error (ORA-14452: attempt to create, alter or drop an index on temporary table already in use DROP TABLE p_006423f9000179)' in D:\xampp\htdocs\master_integration\lib\dml\moodle_database.php:432
       
      Stack trace:
      #0 D:\xampp\htdocs\master_integration\lib\dml\oci_native_moodle_database.php(274): moodle_database->query_end(false)
      #1 D:\xampp\htdocs\master_integration\lib\dml\oci_native_moodle_database.php(884): oci_native_moodle_database->query_end(false, Resource id #1260680)
      #2 D:\xampp\htdocs\master_integration\lib\ddl\database_manager.php(88): oci_native_moodle_database->change_database_structure('DROP TABLE p_00...')
      #3 D:\xampp\htdocs\master_integration\lib\ddl\database_manager.php(77): database_manager->execute_sql('DROP TABLE p_00...')
      #4 D:\xampp\htdocs\master_integration\lib\ddl\database_manager.php(331): database_manager->execute_sql_arr(Array)
      #5 D:\xampp\htdocs\master_integration\lib\testing\classes\util.php(568): databas
       in D:\xampp\htdocs\master_integration\lib\dml\moodle_database.php on line 432
      

      Here are the errors from MySQL, MSSQL and PostgreSQL...

      1) moodle1_converter_testcase::test_migrate_file
      moodle1_convert_exception: error/file_invalid_path
       
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:1216
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\tests\lib_test.php:287
      D:\xampp\htdocs\master_integration\lib\phpunit\classes\advanced_testcase.php:76
       
      To re-run:
       \xampp\php\phpunit moodle1_converter_testcase backup\converter\moodle1\tests\lib_test.php
       
      2) moodle1_converter_testcase::test_question_bank_conversion
      moodle1_convert_exception: error/file_invalid_path
       
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:1216
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:1303
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\handlerlib.php:578
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\handlerlib.php:566
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\handlerlib.php:312
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:371
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:757
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\processors\simplified_parser_processor.class.php:228
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\processors\simplified_parser_processor.class.php:102
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\processors\progressive_parser_processor.class.php:92
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\progressive_parser.class.php:169
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\progressive_parser.class.php:212
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\progressive_parser.class.php:158
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\progressive_parser.class.php:137
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:150
      D:\xampp\htdocs\master_integration\backup\converter\convertlib.php:129
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\tests\lib_test.php:502
      D:\xampp\htdocs\master_integration\lib\phpunit\classes\advanced_testcase.php:76
       
      To re-run:
       \xampp\php\phpunit moodle1_converter_testcase backup\converter\moodle1\tests\lib_test.php
       
      3) moodle1_converter_testcase::test_convert_run_convert
      moodle1_convert_exception: error/file_invalid_path
       
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:1216
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:1303
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\handlerlib.php:578
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\handlerlib.php:566
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\handlerlib.php:312
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:371
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:757
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\processors\simplified_parser_processor.class.php:228
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\processors\simplified_parser_processor.class.php:102
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\processors\progressive_parser_processor.class.php:92
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\progressive_parser.class.php:169
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\progressive_parser.class.php:212
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\progressive_parser.class.php:158
      D:\xampp\htdocs\master_integration\backup\util\xml\parser\progressive_parser.class.php:137
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\lib.php:150
      D:\xampp\htdocs\master_integration\backup\converter\convertlib.php:129
      D:\xampp\htdocs\master_integration\backup\converter\moodle1\tests\lib_test.php:508
      D:\xampp\htdocs\master_integration\lib\phpunit\classes\advanced_testcase.php:76
       
      To re-run:
       \xampp\php\phpunit moodle1_converter_testcase backup\converter\moodle1\tests\lib_test.php
      

            mudrd8mz David Mudrák (@mudrd8mz)
            salvetore Michael de Raadt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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