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

Remove "UnsupportedPlatforms" metadata#7523

Merged
stephentoub merged 5 commits intodotnet:masterfrom
ellismg:run-tests
Apr 6, 2016
Merged

Remove "UnsupportedPlatforms" metadata#7523
stephentoub merged 5 commits intodotnet:masterfrom
ellismg:run-tests

Conversation

@ellismg
Copy link
Contributor

@ellismg ellismg commented Apr 5, 2016

Since #6572 was merged, we only build test projects for the platforms
they test. This means the UnsupportedPlatforms metadata is no longer
needed (instead using the .builds file to control when the project is
built is the right thing to do).

Leverage this in run-test.sh, we now simply loop over all the tests in
the relevant folders under bin/tests, depending on the platform in
question.

ellismg added 3 commits April 4, 2016 15:54
There were a handful of test projects that just didn't have .builds
files and some other cases where the data in the .builds file did not
match what was in the UnsupportedPlatforms metadata.

Some of the projects said the tests were unsupported on FreeBSD and
nowhere else. Given that these tests should most likely be supported on
FreeBSD (given that OSX and Linux both supported them), I've not moved
that logic into the .builds files.

If there ends up being a specific set of tests that the FreeBSD port
team wants to disable long term, they can add .builds metadata as they
see fit.
Since dotnet#6572 was merged, we only build test projects for the platforms
they test.  This means the UnsupportedPlatforms metadata is no longer
needed (instead using the .builds file to control when the project is
built is the right thing to do).

Leverage this in run-test.sh, we now simply loop over all the tests in
the relevent folders under bin/tests, depending on the platform in
question.
@ellismg
Copy link
Contributor Author

ellismg commented Apr 5, 2016

@Priya91 @joperezr @weshaggard @sokket

Chris closed my last PR and I force pushed which prevents me from re-opening that one.

I think this one has a better chance of passing CI due to my updates in run-test to handle the way the Jenkins currently passes options to the scripts.

I also did a pass over the .builds files and cleaned some stuff up (and created some when needed).

@ellismg
Copy link
Contributor Author

ellismg commented Apr 5, 2016

@dotnet-bot test ci please

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a builds file that does this...why do we need another one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not notice that builds file because it was in the parent directory. Is the expectation that for places where we split the test folder into a bunch of sub folders there's a .builds in the tests folder or do we want something SxS with the .csproj (I see we did it one way here but for some of the Http stuff there's no .builds files anywhere and they are also split).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are exceptions to all the rules but in general I would prefer the builds files be 1:1 with the csproj's. Only if there is some strange coupling between the different csproj's should we put them together. In some cases if there are helper csproj's then they don't even really need to be in builds file they should just be project references and pulled in from the root test project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weshaggard Do we need to go update https://github.com/dotnet/corefx/blob/master/src/tests.builds#L16 to be something like */tests/**/*.builds?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we probably do.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My plan is to land this change and do another pass which cleans up the .builds stuff and cleans up the traversal stuff.

@weshaggard
Copy link
Member

LGTM

1 similar comment
@jonmill
Copy link

jonmill commented Apr 5, 2016

LGTM

@Priya91
Copy link
Contributor

Priya91 commented Apr 5, 2016

LGTM as well !

ellismg added 2 commits April 5, 2016 14:38
The exclusion looked to be infrastructure related from problems in the
past, but we actually want to test this assembly cross platform.
@ellismg
Copy link
Contributor Author

ellismg commented Apr 5, 2016

@dotnet-bot test this please (GitHub issues)

@stephentoub
Copy link
Member

Test Innerloop OSX Debug Build and Test please

@stephentoub
Copy link
Member

@dotnet-bot Test outerloop rhel7.2 Debug

@stephentoub stephentoub merged commit 0cdc8e3 into dotnet:master Apr 6, 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
Remove "UnsupportedPlatforms" metadata

Commit migrated from dotnet/corefx@0cdc8e3
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