CRM-15388 Test suite not completing

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Blocker
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5.1
    • Component/s: Test suite
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Looks like less than 30% of tests are completing in the past few days

      On recent PRs, seeing 4 regressions ... eg
      https://test.civicrm.org/job/CiviCRM-Core-PR/684/testReport/junit/%28root%29/api_v3_JobTest/testCallSendReminderLimitTo/ and 3 others.

      All have this in backtrace:

      api_v3_JobTest::testCallSendReminderLimitTo
      Failure in api call for job send_reminder: mail(): Could not execute mail delivery program '/bin/true'

      Is this a new environmental issue on the server or ???

        Attachments

          Activity

          [CRM-15388] Test suite not completing
          Tim Otten added a comment -

          In the past few days, we did a round of system updates ("apt-get upgrade") which could be the cause. Will investigate for a work-around...

          Tim Otten added a comment -

          I think the comments raise two independent problems.

          1. The mail() error – The noted URL points to "CiviCRM-Core-PR/684" with 2800+ tests completing (with 4 mail() related errors). Skimming through the other results in CiviCRM-Core-PR, this figure appears typical. I don't know why the mail() error arose, but – FWIW – it's not occurring anymore. (I've tried manually reproducing on the test-server and reviewing Jenkins-results from more recent days.)

          2. The INFRA-124 deployment – This is basically replacing "tools/scripts/phpunit" with other tools (by baby-steps – ie transition "tools/scripts/phpunit" => "phpunit" => "paratest".) To reduce the pain, I've focused the effort on "CiviCRM-Core-Matrix" (for 4.5 & master). The most recent issue in the transition has been a parse-error (where phpunit produces slightly-malformed output) which causes CiviCRM-Core-Matrix#4.5 to display ~900 tests (rather than the expected ~3900 tests). The other versions/jobs (eg CiviCRM-Core-PR, CiviCRM-WebTest-Matrix) should be unaffected. Unfortunately, progress on this is rather slow (ie in the best case, one dev/feedback-cycle takes a couple hours; and we're not in the best-case because I'm juggling this with the other CiviCon/travel/sprint duties).

          If we don't get it sorted this way in a couple days, then we can shift tactics – we can set CiviCRM-Core-Matrix back to using tools/scripts/phpunit, and we can setup separate jobs for INFRA-124 migration. It'd be a bit more laborious but would be appear smoother from your perspective.

          Tim Otten added a comment -

          INFRA-124 is still outstanding, but we switched back to the embedded phpunit. It may be more expensive, but I'll find a way to work on INFRA-124 further without switching over the main test job.

            People

            • Assignee:
              Tim Otten
              Reporter:
              David Greenberg

              Dates

              • Created:
                Updated:
                Resolved: