-
Notifications
You must be signed in to change notification settings - Fork 635
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
Dyn-6139 - Align pipelines #14261
Dyn-6139 - Align pipelines #14261
Conversation
tools/NuGet/template-artifactory/DynamoVisualProgramming.DynamoCoreRuntimeNET60.nuspec
Outdated
Show resolved
Hide resolved
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">NET60_Windows</Platform> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, so what is the point of these conditions now? Just to avoid linux? Can we remove most of these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, let me clean up that file.
src/Config/CS_SDK.props
Outdated
@@ -33,8 +33,8 @@ | |||
<SelfContained>false</SelfContained> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<DebugType Condition="$(Platform.Contains('NET60')) ">portable</DebugType> | |||
<DebugType Condition="!$(Platform.Contains('NET60')) ">full</DebugType> | |||
<DebugType Condition="$(Platform.Contains('AnyCPU')) ">portable</DebugType> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove this and just make it full in all cases these days.
<TargetFramework>net6.0</TargetFramework> | ||
<!--Needed to copy nuget package assemblies to output folder. Anet6 issue--> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<GenerateDependencyFile>false</GenerateDependencyFile> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$(Platform.Contains('Windows'))" > | ||
<PropertyGroup Condition="$(Platform.Contains('AnyCPU'))" > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so we'll only use AnyCPU for windows? Seems a bit confusing to me 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and Yes, it is.
src/build.xml
Outdated
@@ -19,7 +21,7 @@ | |||
|
|||
<Target Name="RestorePackages"> | |||
<Exec Condition="!Exists($(NuGetPath))" Command="powershell.exe -ExecutionPolicy ByPass -Command Invoke-WebRequest -Uri https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile $(NuGetPath)" /> | |||
<Exec Command="dotnet restore $(SolutionNET6) -p:Platform=NET60_Windows --runtime=win10-x64"/> | |||
<Exec Command="dotnet restore $(Solution) -p:Platform="$(Platform)" --runtime=$(RuntimeIdentifier)"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you need then "
escaping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Platform now contains a space. But that argument is probably not needed any more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple questions
@@ -199,6 +199,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DSOfficeUtilities", "Librar | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DynamoCoreWpfTests", "..\test\DynamoCoreWpfTests\DynamoCoreWpfTests.csproj", "{7DD8077A-201E-4C56-96C5-3C901A51BDF3}" | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ViewExtensionLibraryTests", "..\test\ViewExtensionLibraryTests\ViewExtensionLibraryTests.csproj", "{AE7F2579-104A-4AF4-AA7B-614AE9E79279}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you also added this binary to the net6 test script or you prefer to do this later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update that file at merge time .
@@ -10,7 +10,7 @@ public class Setup | |||
{ | |||
private AssemblyHelper assemblyHelper; | |||
|
|||
[SetUp] | |||
[OneTimeSetUp] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to be careful about this. It could either be one time or could be a setup to be run before each test, in which case, we must leave it as Setup
attribute. Can you check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All tests passed locally for me but, I will check.
@@ -28,7 +28,7 @@ public void SetUp() | |||
AppDomain.CurrentDomain.AssemblyResolve += assemblyHelper.ResolveAssembly; | |||
} | |||
|
|||
[TearDown] | |||
[OneTimeTearDown] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similarly for teardown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these attributes on test fixtures were only run once in nunit 2 (so I think this is the correct change) - but it can't hurt to double check the previous behavior before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment on test attributes.
@zeusongit @sm6srw do you expect some of the binary diff checks to fail on this PR? |
Looks like the build step failed in the diff job for Net60_Linux, re-running.
|
I expect them to fail but not like that. I will take a look. |
Purpose
The pull request does:
NET60_Windows
back toAny CPU
for all windows net6 buildsNET60_Linux
fromDynamo.All.sln
This is so our build pipelines on master-5 and master-15 can share the same folder structure for all net48 and net6.0 jobs.
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
(FILL ME IN) Brief description of the fix / enhancement. Mandatory section
Reviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
(FILL ME IN, optional) Any additional notes to reviewers or testers.
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of