Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSGallery search returning limited results #292

Open
3 tasks done
ThomasNieto opened this issue Aug 28, 2024 · 3 comments
Open
3 tasks done

PSGallery search returning limited results #292

ThomasNieto opened this issue Aug 28, 2024 · 3 comments

Comments

@ThomasNieto
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

PSGallery search returning limited results

Expected behavior

All results

Actual behavior

Limited results

Error details

No response

Environment data

n/a

Version

n/a

Visuals

image
image

@BouwenMA
Copy link

BouwenMA commented Sep 11, 2024

I've noticed this issue today as well, getting inconsistent results/counts returned, running from multiple computers (work and home):

Running command: $Mods = Find-Module -Verbose

Work PC #1 - PSH 5

  • Initial
    VERBOSE: Total package yield:'10789' for the specified package ''.

  • 10 Minutes later
    VERBOSE: Total package yield:'640' for the specified package ''.

Work PC #2 - PSH 5

  • Initial
    VERBOSE: Total package yield:'10789' for the specified package ''.

  • 25 Minutes later
    VERBOSE: Total package yield:'160' for the specified package ''.

Home PC 1 - PSH v5

  • Initial
    VERBOSE: Total package yield:'120' for the specified package ''.

  • 5 Minutes later
    VERBOSE: Total package yield:'12' for the specified package ''.

  • 20 Minutes later
    VERBOSE: Total package yield:'3' for the specified package 'A*'.

  • 30 Minutes later
    VERBOSE: Total package yield:'3400' for the specified package ''.

Home PC 1 - PSH v7.5.3

  • Initial
    VERBOSE: Total package yield:'160' for the specified package ''.

  • 20 Minutes later
    VERBOSE: Total package yield:'3387' for the specified package ''.

Home PC #2 - PSH v5

  • Initial
    VERBOSE: Total package yield:'3387' for the specified package ''.

  • 10 Minutes later
    VERBOSE: Total package yield:'10789' for the specified package ''.

Using Find-PSResource on home PC #1:

PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
3120

  • PSH v7.4.5 (Seems to get proper count more often - similar results on Work PC Adding the initial Gallery Status page #1 as well)
    PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
    10789

PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
Find-PSResource: Package does not exist on the server
6000

PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
10789

PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
3305

  • NOTE: Though using Find-Module in same session yields the inconsistent results each time:
    VERBOSE: Total package yield:'3440' for the specified package ''.

@KSchu26
Copy link

KSchu26 commented Nov 7, 2024

+1
Web Gallery Showing 1 or 0 results, even for literally an empty search
image

@anamnavi
Copy link
Member

@ThomasNieto @BouwenMA @KSchu26 thanks for this information! This is an ongoing intermittent issue we're aware of and investigating...one thing to note is that doing a wildcard search with cmdlets (like Find-Module (v2), Find-PSResource -Type Module, Find-PSResource -Name "A*", etc) will hit this issue but if you know of the package name and search it specifically that will not run into this issue. We'd recommend using Find-PSResource from Microsoft.PowerShell.PSResourceGet module. For searching on the website, you can use the https://www.powershellgallery.com/packages/<MyPackage> url and that will also work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants