Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Find test builds files deeper in file structure.#7747

Merged
davidsh merged 1 commit intodotnet:masterfrom
StephenBonikowsky:patch-2
Apr 15, 2016
Merged

Find test builds files deeper in file structure.#7747
davidsh merged 1 commit intodotnet:masterfrom
StephenBonikowsky:patch-2

Conversation

@StephenBonikowsky
Copy link
Member

In WCF repo many of our test projects are more than one level below the 'tests' directory.
If this doesn't break anything in corefx could we take this change?

@StephenBonikowsky
Copy link
Member Author

@sokket @weshaggard

@weshaggard
Copy link
Member

LGTM if CI is green.

@StephenBonikowsky
Copy link
Member Author

All the checks failed, having trouble getting Jenkins to load the logs for me but it looks like test projects were discovered and running but the common failure is...
error MSB4015: The build stopped unexpectedly because the "ReusableLogger" logger failed unexpectedly during shutdown.

Not sure if that has anything to do with this change?

@weshaggard
Copy link
Member

It isn't clear to me if this is caused by your change either but it is possible that it pulled in more tests projects now that aren't working.

@weshaggard
Copy link
Member

@dotent-bot test this please

@mellinoe
Copy link
Contributor

mellinoe commented Apr 14, 2016

I think this failure is due to a new .builds file being picked up. But it seems like this new builds file is 1) faulty and 2) unnecessary. The project it includes is already included by a builds file one directory up. It also doesn't specify a correct OSGroup for the project it includes, so it tries to compile a bad configuration. Technically, the project should specify a default configuration because "Debug" is not a valid configuration for it, but that's a separate problem. We should just delete that builds file.

src\System.Net.Sockets\tests\PerformanceTests\System.Net.Sockets.Async.Performance.Tests.builds

@StephenBonikowsky
Copy link
Member Author

Updated and removed System.Net.Sockets.Async.Performance.Tests.builds

@mellinoe
Copy link
Contributor

It seems like there are still some extra .builds files which are in some System.Net subdirectories. I think we should just delete those and leave a single .builds file directly under .../tests/.

@StephenBonikowsky
Copy link
Member Author

Found some others as well, also, without this change I don't think "corefx\src\System.ServiceProcess.ServiceController\tests\System.ServiceProcess.ServiceController.Tests\System.ServiceProcess.ServiceController.Tests.builds" would have been found.

@StephenBonikowsky
Copy link
Member Author

StephenBonikowsky commented Apr 14, 2016

Something looks strange with System.Data.SqlClient and System.Net.Http.WinHttpHandler.
In my local file structure I have a builds file for each of those but after pushing it here I only see the one for System.Net.Http.WinHttpHandler and the one I added for System.Data.SqlClient isn't here.

Edit: Looks like it thought it was a re-name. I'm going to add the one for System.Data.SqlClient that should have been there.

Edit: I understand what happened now, it should be fine as is.

@weshaggard
Copy link
Member

Just so I understand where the builds files you deleted referencing projects that were already in higher level builds files? As I would expect nested builds files to work just fine assuming there weren't conflicts/duplication.

@StephenBonikowsky
Copy link
Member Author

All of them except the two under System.Net.Http.WinHttpHandler

System.Net.Http.WinHttpHandler/tests/FunctionalTests/System.Net.Http.WinHttpHandler.Functional.Tests.builds 
System.Net.Http.WinHttpHandler/tests/UnitTests/System.Net.Http.WinHttpHandler.Unit.Tests.builds

These two were the only two that did not already have a .builds file one level higher that already included their respective .csproj files.
I deleted them and added the .builds file one level up to be consistent with all the other ones.
I'm happy to undo that if you wish.

@weshaggard
Copy link
Member

Yes lets leave the nested builds as they were as long as they were functioning correctly.

@StephenBonikowsky
Copy link
Member Author

ok

*

 In WCF repo many of our test projects are more than one level below the 'tests' directory.

*
If this doesn't break anything in corefx could we take this change?

* Amending to remove corefx\src\System.Net.Sockets\tests\PerformanceTests\System.Net.Sockets.Async.Performance.Tests.builds

* Amending again with more test .builds files that needed to be removed.
@StephenBonikowsky
Copy link
Member Author

Reverted the previous change to the System.Net.Http.WinHttpHandler builds files.

@weshaggard
Copy link
Member

Assuming all the tests projects in the builds files you are removing exist in another builds file LGTM. Although there does seem to be one more related failure on windows.

@StephenBonikowsky
Copy link
Member Author

Looks to me like the following test projects have not been getting run since PR #6572 replaced "*\test*\**\*.csproj" with "*\tests\*.builds"

  • System.Net.Http.WinHttpHandler.Functional.Tests
  • System.Net.Http.WinHttpHandler.Unit.Tests
  • System.ServiceProcess.ServiceController.Tests

The current Windows failures look related to the System.Net.Http.WinHttpHandler.Functional.Tests and perhaps is showing a test related failure that is occurring since it last ran?

Compile Error

error CS7036: There is no argument given that corresponds to the required formal parameter 'hops' of 'HttpTestServers.RedirectUriForDestinationUri(bool, int, Uri, int)' [D:\j\workspace\windows_nt_de---06b7984d\src\System.Net.Http.WinHttpHandler\tests\FunctionalTests\System.Net.Http.WinHttpHandler.Functional.Tests.csproj]

@weshaggard
Copy link
Member

@davidsh @CIPop do those networking failures look familiar?

@davidsh
Copy link
Contributor

davidsh commented Apr 15, 2016

If you're talking about this weird compiler error:

error CS7036: There is no argument given that corresponds to the required formal parameter 'hops' of 'HttpTestServers.RedirectUriForDestinationUri(bool, int, Uri, int)' [D:\j\workspace\windows_nt_re---37265eab\src\System.Net.Http.WinHttpHandler\tests\FunctionalTests\System.Net.Http.WinHttpHandler.Functional.Tests.csproj]
Indication 1

Then it looks like this PR needs to be rebased

@davidsh
Copy link
Contributor

davidsh commented Apr 15, 2016

Looking at this again, there seems to be build problem with the CI system. I checked in a PR yesterday that merged clean.

And yet, it appears like the CI system is not building src/System.Net.Http.WinHttpHandler/tests/FunctionalTests directory. Because building that now shows the compiler error.

I will submit a PR to fix these tests. But I don't understand why they are not building from the root. This would have been caught otherwise.

@davidsh
Copy link
Contributor

davidsh commented Apr 15, 2016

cc: @stephentoub

@StephenBonikowsky
Copy link
Member Author

@davidsh look at my earlier comment, without the change to src/tests.builds in this PR that test project has not been getting built the last few weeks.

@davidsh
Copy link
Contributor

davidsh commented Apr 15, 2016

@dotnet-bot Test Innerloop Windows_NT Release Build and Test

@davidsh
Copy link
Contributor

davidsh commented Apr 15, 2016

@dotnet-bot Test Innerloop Windows_NT Debug Build and Test

@StephenBonikowsky
Copy link
Member Author

Looks like it is good to go now?

@davidsh
Copy link
Contributor

davidsh commented Apr 15, 2016

LGTM

@davidsh davidsh merged commit 0d33c8c into dotnet:master Apr 15, 2016
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
PR dotnet/corefx#7760 broke the compilation of these tests but wasn't discovered in CI since WinHttpHandler
tests weren't building properly. This PR will fix the compiler error while PR dotnet/corefx#7747 will make
sure that these tests get built/run again in CI.


Commit migrated from dotnet/corefx@948e7fd
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Find test builds files deeper in file structure.

Commit migrated from dotnet/corefx@0d33c8c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants