Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    PyPI Feed Package Stats Negative

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 7 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      itops_6398
      last edited by

      Hello,

      I've been testing the functionality for reporting package download statistics based on feed downloads. I've noticed something strange, all versions of all packages (that have never been downloaded before) show as having either -1 or -2 downloads, some examples below of random packages that I've never used;

      4055ae5f-b5e9-46cc-9fdd-50df5d351845-image.png

      3ab488b5-b54d-4fb8-b842-a8d66e8852cf-image.png

      Other packages it gets even stranger, this example below shows numpy, I've never pulled any of the visible versions (which show -25, -28 or -32 downloads) - when I view the full version list, numpy shows varying levels of negative downloads for all 50+ versions of the package.

      052dc2d8-04a1-4285-9444-49234149fa4a-image.png

      If I dig deeper into one of these versions (the example below shows numpy==1.26.0 which shows -32 downloads), you can see that they've never been pulled from the feed;

      d3454246-e7d4-4e78-856f-021537433093-image.png

      Just wondering what the best course of action is to debug this further?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • I Offline
        itops_6398
        last edited by itops_6398

        I've recreated the approved / unapproved feeds, initially the downloads for all packages is in the feed dev-pypi (unapproved feed that's hooked the PyPI connector) were correctly showing as 0

        8c29a6aa-ee2a-4743-8d89-313c40f676ee-image.png

        However after promoting 1 package from dev-pypi to prod-pypi all of the downloads for all packages are now showing -2 in the dev feed. The prod feed (which the package was promoted to) is just showing at one version, and correctly showing 0 downloads, however everything seems to be doubled up;

        897e66a2-b610-44ed-b3cf-2e86dc6e58d4-image.png

        When I look at local packages under prod-pypi after promoting requests==2.31.0 from dev-pypi to prod-pypi, I can see 2 local copies of the same package promoted at the exact same time.

        Likewise, the dev feed dev-pypi is showing the same package cached twice

        af2d5028-41b9-4923-8905-56d99f7fc135-image.png

        Not sure if this behavior is contributing to the strange negative downloads in any way.

        EDIT:

        It seems to have started to happen again even on the newly created feeds, I've not interacted with these feeds in anyway aside from promoting a single package from the dev feed to the prod feed - the below example of ngrok shows both -6 and -10 downloads.

        06207fe0-f94e-4ab6-b70b-42b371f88876-image.png

        atrippA 1 Reply Last reply Reply Quote 0
        • atrippA Offline
          atripp inedo-engineer @itops_6398
          last edited by

          Hi @itops_6398 ,

          On a remote package (i.e. the ones with the radio icon), the download count is whatever is presented by the remote feed. On python packages, some have negative numbers.

          Once you pull or cache (i.e. download) the package , the count will start at 0 and ProGet will keep track of the download count.

          Cheers,
          Alana

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation