Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-32029

Cleanup policy not working as expected for ruby gems format

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.38.1
    • Fix Version/s: None
    • Component/s: Cleanup, RubyGems
    • Labels:

      Description

      In Cleanup Policy, if "Component Usage" is used on RubyGems repo format, then it is not working correctly as it takes into account <package-version>.gemspec.rz last download date. The `.gem` file haven't been downloaded, while the `.gemspec.rz` was last downloaded today (gemspec files are downloaded every time bundler prepares list of artifacts to download so it shouldn't be taken into account for gem cleanup).

      Steps to reproduce

      1) Set "Component Usage" to something like 30 days and run preview on ruby gems repo.

      2) In my CleanUp preview example tty-color-0.5.1 is showing.

      3) Use Browse download tty-color-0.5.1.gemspec.rz from that ruby gems proxy repo.

      4) Nexus should show the current status.

      tty-color-0.5.1.gemspec.rz last downloaded shows today's date
      tty-color-0.5.1.gem last downloaded shows date older than 30 days

      5) In same CleanUp preview as in step 2, tty-color-0.5.1 will no longer show in list of components to be deleted

      Expected Behavior

      For RubyGems format the last download time for <package-version>.gem file should be taken into account and not the <package-version>.gemspec.rz

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Michael Martz Michael Martz
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title