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

Use exttests repo in travis

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      (difficulty: easy, just look at the logs of the Travis CI run of each branch in this issue) 

      1. you should open the logs of one of the build jobs related to TASK=PHPUNIT and read the number of hits, >>1, reported at the end of the PHPUnit run as Test local resources number of hits e.g.:

        ...
        Moodle 4.0dev (Build: 20200704), 3ce1eba18030bc44fa75108af2e5ae7680954c34
         
        Php: 7.4.7, mysqli: 5.7.25-0ubuntu0.16.04.2, OS: Linux 4.15.0-1028-gcp x86_64
         
        PHPUnit 7.5.20 by Sebastian Bergmann and contributors.
         
        Runtime:       PHP 7.4.7
         
        Configuration: /home/travis/build/scara/moodle/phpunit.xml
         
        ...........................................................    59 / 15783 (  0%)
        [cut]
        ..............................                              15783 / 15783 (100%)
         
        Time: 27.34 minutes, Memory: 698.00 MB
        [cut]
        OK, but incomplete, skipped, or risky tests!
         
        Tests: 15783, Assertions: 134268, Skipped: 111.
         
        Test local resources number of hits: 111.
         
        The command "if [ "$TASK" = 'PHPUNIT' ]; then
        ...
        

      Show
      (difficulty: easy, just look at the logs of the Travis CI run of each branch in this issue)  you should open the logs of one of the build jobs related to TASK=PHPUNIT and read the number of hits, >>1 , reported at the end of the PHPUnit run as Test local resources number of hits e.g.: ... Moodle 4.0dev (Build: 20200704), 3ce1eba18030bc44fa75108af2e5ae7680954c34   Php: 7.4.7, mysqli: 5.7.25-0ubuntu0.16.04.2, OS: Linux 4.15.0-1028-gcp x86_64   PHPUnit 7.5.20 by Sebastian Bergmann and contributors.   Runtime: PHP 7.4.7   Configuration: /home/travis/build/scara/moodle/phpunit.xml   ........................................................... 59 / 15783 ( 0%) [cut] .............................. 15783 / 15783 (100%)   Time: 27.34 minutes, Memory: 698.00 MB [cut] OK, but incomplete, skipped, or risky tests!   Tests: 15783, Assertions: 134268, Skipped: 111.   Test local resources number of hits: 111.   The command "if [ "$TASK" = 'PHPUNIT' ]; then ...
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.9 Branch:
      m39_MDL-66322_Travis_Run_Using_Docker_ExtTests-v2
    • Pull Master Branch:
      m40_MDL-66322_Travis_Run_Using_Docker_ExtTests
    • Story Points:
      2
    • Sprint:
      Internationals - 3.8 Sprint 6, Internationals - 3.8 Sprint 7

      Description

      Travis supports docker.
      We have an exttests Docker repo for our external HTTP tests
      We should combine the two! Start the exttests docker image when we run tests to reduce the random phpunit fails due to connectivity failures.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matteo Matteo Scaramuccia
              Reporter:
              dobedobedoh Andrew Lyons
              Peer reviewer:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              Andrew Lyons Andrew Lyons
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jul/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 45 minutes
                  1h 45m