FLUID-6327: Build/lint time has increased significantly post-FLUID-6315

Metadata

Source
FLUID-6327
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Tony Atkins [RtF]
Reporter
Giovanni Tirloni
Created
2018-08-21T12:30:28.242-0400
Updated
2024-07-22T08:56:24.687-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Build Scripts

Comments

  • Antranig Basman commented 2018-08-21T13:16:01.551-0400

    Cheers for the report, @@Giovanni Tirloni. We have a new linting implementation contributed by @@Tony Atkins [RtF] which makes many more checks than before, which is responsible for the increased processing time. Hopefully we can increase the build timeouts in order to compensate.

  • Justin Obara commented 2018-08-21T15:00:40.942-0400

    Merged PR ( https://github.com/fluid-project/infusion/pull/925 ) into the project repo at 7c9cf5cdccdec4108fd2cc042a293e552f2297ca

  • Giovanni Tirloni commented 2018-08-21T15:59:39.367-0400

    Thanks @@Antranig Basman & @@Justin Obara.

    The new build average time is 35 minutes.

  • Tony Atkins [RtF] commented 2018-08-22T04:48:49.083-0400

    @@Giovanni Tirloni or anyone, is there an example of successful build with the new timeout? I'd like to review and confirm that we aren't accidentally linting non-repo content.

  • Giovanni Tirloni commented 2018-08-22T06:51:13.234-0400

    Still running but it's successfully finished the build/lint phases: https://ci.fluidproject.org/job/infusion-pull-request/22

  • Tony Atkins [RtF] commented 2018-08-22T08:21:23.873-0400

    Thanks, I decided to sanity check via other means and submitted FLUID-6328 with the few files that were not checked that should have been. I didn't find any evidence that files that shouldn't be checked were being checked, which was what I was worried about with the timing.

  • Tony Atkins [RtF] commented 2018-09-04T06:44:47.521-0400

    I have reopened this as the speed was a separate issue. I'm submitting a pull shortly that brings the linting time down to 9-10 seconds.

  • Tony Atkins [RtF] commented 2018-09-04T07:03:50.366-0400

    After some research, it became clear that the globbing used by Grunt, in combination with overly broad patterns like ./**/*.js resulted in scanning and then excluding all files in dist, node_modules, et cetera. There is a new pull that uses the new gpii-glob library and tighter patterns, which reduces the linting speed to 9-10 seconds.

    https://github.com/fluid-project/infusion/pull/930

  • Justin Obara commented 2018-09-20T08:34:54.088-0400

    Merged PR ( https://github.com/fluid-project/infusion/pull/930 ) into the project repo at 81c4c0572b8ac0ffd650fa675cc8dab43d422d11