Skip to content

Reenable framework unit tests on helix #19975

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

Merged
merged 19 commits into from
Apr 8, 2020
Merged

Reenable framework unit tests on helix #19975

merged 19 commits into from
Apr 8, 2020

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Mar 18, 2020

No description provided.

@ghost ghost added the feature-platform Deprecated: Cross-cutting issues related to ASP.NET Core as a platform label Mar 18, 2020
@HaoK
Copy link
Member Author

HaoK commented Mar 20, 2020

@dougbu @dotnet/aspnet-build does anyone know where the .version file in the sharedruntime comes from? I see a .version file in the official versions that are installed on my machine, but when I look at what we build in artifacts, i.e. Windows_Packages/Release/Shipping/Microsoft.AspNetCore.App.Runtime.win-x64-50.0.0-ci.nupg I don't see a .versions file in there, which the framework unit tests seem to be expecting.

@dougbu
Copy link
Contributor

dougbu commented Mar 20, 2020

does anyone know where the .version file in the sharedruntime comes from?

<Target Name="GenerateSharedFxVersionsFiles" DependsOnTargets="InitializeSourceControlInformation">
<WriteLinesToFile
File="$(BaseRuntimeVersionFileOutputPath)"
Lines="$(MicrosoftNETCoreAppRuntimeVersion)"
Overwrite="true" />
<!-- Generates the .version file in the shared framework -->
<ItemGroup>
<VersionLines Include="$(SourceRevisionId)" />
<VersionLines Include="$(SharedFxVersion)" />
</ItemGroup>
<WriteLinesToFile
File="$(VersionFileIntermediateOutputPath)"
Lines="@(VersionLines)"
Overwrite="true" />
</Target>

And that target should run unconditionally.

@HaoK
Copy link
Member Author

HaoK commented Mar 20, 2020

@dougbu does that mean it should be in the app runtime nupkgs of our artifacts? https://dev.azure.com/dnceng/public/_build/results?buildId=567706&view=artifacts&type=publishedArtifacts

@dougbu
Copy link
Contributor

dougbu commented Mar 20, 2020

does that mean it should be in the app runtime nupkgs of our artifacts?

Yes. I'm not sure why Microsoft.AspNetCore.App.Runtime.linux-arm.5.0.0-ci.nupkg and 5.0.0-preview.3.20170.3 (from an official build and in the netcore5 feed) don't include the file. Maybe it's not supposed to ship?

@wtgodbe and @JunTaoLuo shouldn't there be a .versions file in our runtime packages? Or, is that one of the outstanding issues on the Build plate?

@wtgodbe
Copy link
Member

wtgodbe commented Mar 20, 2020

Looks like there's no ThirdPartyNotices.txt file in there either - something isn't working right in that project, I'm guessing. I can take a look on Monday

@HaoK
Copy link
Member Author

HaoK commented Mar 21, 2020

Well I guess this is actually an argument in favor of running these framework tests on helix (which runs against the shared framework built artifacts) since the versions file does exist in today's runs of these tests...so there's a difference somewhere...?

@HaoK
Copy link
Member Author

HaoK commented Mar 23, 2020

Marking as ready for review, I've skipped the failing .versions file for now and filed #20086 to track resolving that. I left the tests running on both azdo and helix for now until we are able to resolve the .Versions check

@HaoK HaoK marked this pull request as ready for review March 23, 2020 22:26
@HaoK HaoK requested a review from a team March 23, 2020 22:26
@HaoK HaoK changed the title See if framework tests work now Reenable framework unit tests on helix Mar 23, 2020
Copy link
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

I suspect we need to do more to prepare for servicing. But, I defer to @JunTaoLuo on whether this migration will make such work more difficult. @JunTaoLuo please review.

@wtgodbe
Copy link
Member

wtgodbe commented Mar 27, 2020

@HaoK after https://github.com/dotnet/aspnetcore/pull/20250/files you should be able to un-disable ItContainsVersionFile

@HaoK
Copy link
Member Author

HaoK commented Mar 27, 2020

Awesome thanks @wtgodbe!

@JunTaoLuo are you ok with these tests being enabled as they are for now? Do you want me to file an issue for any servicing concerns about these tests so you can revisit this in the future?

@HaoK HaoK force-pushed the haok/helix-fxtests branch 2 times, most recently from bb131ac to a2c7182 Compare April 3, 2020 08:53
HaoK added 10 commits April 6, 2020 02:08
Update Microsoft.AspNetCore.App.UnitTests.csproj

Update TargetingPackTests.cs

Update SharedFxTests.cs

Update TargetingPackTests.cs

Update InstallAspNetRef.ps1

Update Helix.targets

Create installaspnetref.sh

Update SharedFxTests.cs

Update TargetingPackTests.cs

Update SharedFxTests.cs

Fix runtimeVersion

Update runtests.cmd

Update runtests.cmd

Update runtests.sh

Update runtests.sh

Update runtests.cmd

Update SharedFxTests.cs

Update runtests.cmd

Update runtests.cmd

Update InstallAppRuntime.ps1

Update runtests.sh

Skip versions file check on helix for now

Update Microsoft.AspNetCore.App.UnitTests.csproj

Run unit tests on azdo too

Update SharedFxTests.cs

Update SharedFxTests.cs

Update Microsoft.AspNetCore.App.UnitTests.csproj
@HaoK HaoK force-pushed the haok/helix-fxtests branch from a4b4f5e to 26e1bd0 Compare April 6, 2020 09:08
@HaoK
Copy link
Member Author

HaoK commented Apr 7, 2020

Ok finally the framework tests are all green again, @dougbu @JunTaoLuo can you take a final look

Copy link
Contributor

@JunTaoLuo JunTaoLuo left a comment

Choose a reason for hiding this comment

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

One nit

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
Copy link
Member

Choose a reason for hiding this comment

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

Can we migrate these to C#

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah i'll file an issue for this and the other one (shared runtime)

Copy link
Member Author

Choose a reason for hiding this comment

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

@HaoK HaoK merged commit 9a792f2 into master Apr 8, 2020
@HaoK HaoK deleted the haok/helix-fxtests branch April 8, 2020 06:39
HaoK added a commit that referenced this pull request Apr 8, 2020
ghost pushed a commit that referenced this pull request Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-platform Deprecated: Cross-cutting issues related to ASP.NET Core as a platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants