-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Perf tests are broken when run from project test directory #23604
Comments
cc: @mellinoe, this is the issue I mentioned to you. |
I talked with @DrewScoggins about this a little bit at the end of the day. The tests work if you run them with the root script, but not if you use the command above. The CI tests use this command line, which Drew and I were able to use successfully:
This is obviously not ideal (or even workable, really), considering how long this takes. We didn't figure out exactly why building projects directly didn't work, but it had something to do with the tests building and running out of the wrong directory. |
Thanks, @mellinoe and @DrewScoggins.
Yeah, this isn't viable. That's fine for doing a full run to see where we currently stand, but it essentially prohibits writing any new performance tests. |
@DrewScoggins @brianrob can someone take a look why this broke? Your team will need this, to write more tests. |
@DrewScoggins, can you please take a look at this? |
Yeah, I have already started working on this. |
Thanks! |
Thanks, @DrewScoggins . |
Sorry, this has taken a couple of days. I have had some other stuff going on. I looked into this and the problem seems to be happening in the GetBinPlaceConfiguration task. In that task we setup the BinPlaceDir ItemGroup, but only do that if we have a definition of _currentBinPlaceConfigurations. This is not being set because of this condition, I did some digging here, and could not come up with a reason why we were seeing this behavior. Does anyone else with a little better knowledge of the build system and MSBuild have an idea what is causing this? |
I'm pretty sure that this is caused by the recent changes that @safern made around changing the testPath location. The reason why I think that is that I tried this out locally and both the test assembly and the PerfRunner.exe where dropped to |
Yes this looks like it’s affected by my change. I might have missed to include the bin placing configuration when running perf tests. I will take a look. Self assigned. |
Thanks for looking into it! If there was something that recently changed the test paths, then I would definitely think that it is related. |
@safern, any progress on this? |
Yes I started taking a look yesterday afternoon and I'm close to get the fix. Will update you soon when I get it. |
Fix is out: dotnet/corefx#24493 |
I'm trying to build and run the System.Collections perf tests. Following the instructions at https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/performance-tests.md, I did a:
from the root of my repo, and then from
src\System.Collections\tests\Performance
did:and I get the error:
The text was updated successfully, but these errors were encountered: