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

Add an option to the new tool_generator to limit the size of the generated files

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Performance
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. Run admin/tool/generator/tests/maketestcourse_test.php unit tests

      Test 2

      1. cd /your/moodle/dirroot
      2. php admin/tool/generator/cli/maketestcourse.php --shortname="LIMITED" --size="S" --filesizelimit="100"
      3. Check your mdl_files db table, the size of the last generated file with name bigfile0.dat, SHOULD be 100
      4. php admin/tool/generator/cli/maketestcourse.php --shortname="NOLIMITS" --size="S"
      5. Check your mdl_files db table, the size of the last generated file with name bigfile0.dat, SHOULD be 8192 or 4194304
      6. php admin/tool/generator/cli/maketestsite.php --size="XS" --filesizelimit="100"
      7. Check your mdl_files db table, the size of the last generated file with name bigfile0.dat, SHOULD be 100
      8. php admin/tool/generator/cli/maketestsite.php --size="XS"
      9. Check your mdl_files db table, the size of the last generated file with name bigfile0.dat, SHOULD be 8192 or 4194304
      Show
      Test 1 Run admin/tool/generator/tests/maketestcourse_test.php unit tests Test 2 cd /your/moodle/dirroot php admin/tool/generator/cli/maketestcourse.php --shortname="LIMITED" --size="S" --filesizelimit="100" Check your mdl_files db table, the size of the last generated file with name bigfile0.dat, SHOULD be 100 php admin/tool/generator/cli/maketestcourse.php --shortname="NOLIMITS" --size="S" Check your mdl_files db table, the size of the last generated file with name bigfile0.dat, SHOULD be 8192 or 4194304 php admin/tool/generator/cli/maketestsite.php --size="XS" --filesizelimit="100" Check your mdl_files db table, the size of the last generated file with name bigfile0.dat, SHOULD be 100 php admin/tool/generator/cli/maketestsite.php --size="XS" Check your mdl_files db table, the size of the last generated file with name bigfile0.dat, SHOULD be 8192 or 4194304
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-41827_master

      Description

      When using the courses generator to generate a test site for performance testing, most of the time we don't need specially big files and rather than that is better to be able to generate the dataset quickly.

      Would be useful to have an option to limit the generated files size to N

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/13