Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45618

eslint taking 30+ minutes in Commit Queue

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • Dev Platform 2020-01-27

      We are seeing a lot of instances in the commit queue of eslint taking 30+ minutes. After some discussion, it seems like changes might not be using the correct git diff and causing the task to lint the entire code base.

      Here is a sample task that hit 36 minutes.

      From jonathan.brill:

      I think it should work if we diff the upstream master with the working tree, something like git diff master@{upstream}, substituting the branch name of the project for master (I think there's a "branch_name" expansion).

      This should work whether or not the patch is a commit queue patch.

       

            Assignee:
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Reporter:
            david.bradford@mongodb.com David Bradford (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: