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

Performance scripts don't account for restore operation failures #9968

Closed
nkolev92 opened this issue Aug 31, 2020 · 3 comments · Fixed by NuGet/NuGet.Client#4194
Closed

Performance scripts don't account for restore operation failures #9968

nkolev92 opened this issue Aug 31, 2020 · 3 comments · Fixed by NuGet/NuGet.Client#4194
Labels
Functionality:Restore Priority:2 Issues for the current backlog. Product:NuGet.exe NuGet.exe Type:Bug Type:Engineering product/infrastructure work/not a customer bug/feature/DCR

Comments

@nkolev92
Copy link
Member

Currently the performance scripts will not report in any way, shape or form that an operation failed.
While most of our test cases are set-up in a way that doesn't fail, but sitll makes investigations when failures do occur, quite a pain :)

@nkolev92 nkolev92 added Type:Engineering product/infrastructure work/not a customer bug/feature/DCR Priority:2 Issues for the current backlog. Type:Bug Functionality:Restore Product:NuGet.exe NuGet.exe labels Aug 31, 2020
@mfkl
Copy link

mfkl commented Oct 29, 2020

Somewhat related: Running the perf script in a non elevated PS prompt sometimes gives

Access to the path 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.platforms\1.1.0\.nupkg.metadata' is denied.
Access to the path 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.targets\1.1.0\.nupkg.metadata' is denied.

@nkolev92
Copy link
Member Author

Ah, interesting.

I've never run into that for our test repros.
The fallback folder is not used in 3.x and later, so maybe that's why.

@zivkan
Copy link
Member

zivkan commented Oct 30, 2020

@mfkl that's not a bug in the perf script, it's a bug in your branch where you change the .nupkg.metadata file last write time. Your branch doesn't account for the difference between global packages folder (where we can safely assume there is write access) and fallback folder (which often is read-only). This is something that would need to be fixed before we can merge, assuming we get the perf impact to an acceptable level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Restore Priority:2 Issues for the current backlog. Product:NuGet.exe NuGet.exe Type:Bug Type:Engineering product/infrastructure work/not a customer bug/feature/DCR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants