Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-5313

Make prechecker (bulk) to work properly with Jenkins CLI 290

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: Integration
    • Labels:
      None

      Description

      After upgrading Jenkins to 2.90, some CLI protocols were disabled and Jenkins CLI (2.90 too) stopped working.

      So the 2 uses of the CLI within local_ci were adjusted to use the new -ssh --user clibot|jenkinscli manadatory parameters, plus -Dorg.jenkinsci.main.modules.sshd.SSHD.hostName=localhost set in Jenkins startup, because all the uses are local, none remote.

      So jobs (bulk prechecker and individual checker) were configured to use that new jenkinsserver , jenkins configured with the arg above, and this commit incorporated to allow the individual checker to, optionally, use the CLI or no (previously it was unconditional).

      https://github.com/moodlehq/moodle-local_ci/commit/14a127966a8f5b7e5d83fe36ca2e1c8db592e4bf

      With everything working... it was detected that, for some reason...the bulk prechecker has stopped looping over the detected issues and always exits after the 1st iteration.

      For example, there were 5 issues in "developer requested" mode... and each execution, that ended perfectly, only was able to check one issue, so 5 executions were needed:

      So, it has been decided to enable the 3 wrappers over the bulk prechecker... because everything but the looping seems to be working ok.

      https://integration.moodle.org/view/prechecker/

      That implies that it will be slower caching up (1 issue every scheduled 10 mins execution), but will end with everything processed.

      This issue is about to debug why the loop "dies" after the 1st iteration and make the bulk prechecker to be back to full throttle ASAP (like it sued to be processing all issues matching the mode in an unique run). Surely to be done in the "backup" laptop server while production (public server) continues working in current "limited" mode.

      CIao

        Attachments

          Activity

            People

            • Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Eloy Lafuente (stronk7)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: