Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55050

Performance improvement for large archive symlink outside of workspace

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Jenkins 2.164

      When an archive contain a symlink that is leading outside of the workspace, the current implementation check if the linked folder and every descendants in that folder are inside the workspace, causing some performance troubles if there are really numerous. Those checks are performed when we want to download the zip containing the specific symlink.

      This case is mostly encountered when an undesired symlink is created.

          [JENKINS-55050] Performance improvement for large archive symlink outside of workspace

          Script attached to generate 4013 files inside a complex structure of folders.
          With log in INFO level, time to download the zip of that directory: 10-12s

          First approach:
          By just setting the log to FINE, time down to: 6-7s

          Wadeck Follonier added a comment - Script attached to generate 4013 files inside a complex structure of folders. With log in INFO level, time to download the zip of that directory: 10-12s First approach: By just setting the log to FINE, time down to: 6-7s

          Oleg Nenashev added a comment -

          It was released in 2.164. If a previous version is selected as an LTS baseline, we may need backporting

          Oleg Nenashev added a comment - It was released in 2.164. If a previous version is selected as an LTS baseline, we may need backporting

            wfollonier Wadeck Follonier
            wfollonier Wadeck Follonier
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: