Skip to content
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

Merged
merged 24 commits into from
Aug 17, 2023
Merged

Dyn-6139 - Align pipelines #14261

merged 24 commits into from
Aug 17, 2023

Conversation

sm6srw
Copy link
Contributor

@sm6srw sm6srw commented Aug 15, 2023

Purpose

The pull request does:

  • change target NET60_Windows back to Any CPU for all windows net6 builds
  • remove target NET60_Linux from Dynamo.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

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release 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

<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">NET60_Windows</Platform>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Copy link
Member

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?

Copy link
Contributor Author

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.

@@ -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>
Copy link
Member

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'))" >
Copy link
Member

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 😉

Copy link
Contributor Author

@sm6srw sm6srw Aug 15, 2023

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=&quot;$(Platform)&quot; --runtime=$(RuntimeIdentifier)"/>
Copy link
Member

Choose a reason for hiding this comment

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

do you need then &quot; escaping?

Copy link
Contributor Author

@sm6srw sm6srw Aug 15, 2023

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.

Copy link
Member

@mjkkirschner mjkkirschner left a comment

Choose a reason for hiding this comment

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

a couple questions

@avidit avidit changed the title Dyn 6139 - Align pipelines Dyn-6139 - Align pipelines Aug 15, 2023
@@ -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}"
Copy link
Member

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?

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 will update that file at merge time .

@@ -10,7 +10,7 @@ public class Setup
{
private AssemblyHelper assemblyHelper;

[SetUp]
[OneTimeSetUp]
Copy link
Contributor

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?

Copy link
Contributor Author

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]
Copy link
Contributor

Choose a reason for hiding this comment

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

similarly for teardown

Copy link
Member

@mjkkirschner mjkkirschner Aug 16, 2023

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.

Copy link
Contributor

@aparajit-pratap aparajit-pratap left a 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.

@mjkkirschner
Copy link
Member

@zeusongit @sm6srw do you expect some of the binary diff checks to fail on this PR?

@zeusongit
Copy link
Contributor

@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.

"D:\a\Dynamo\Dynamo\master_net60_Win_Dynamo\src\Dynamo.All.sln" (default target) (1) ->
"D:\a\Dynamo\Dynamo\master_net60_Win_Dynamo\test\Libraries\DynamoMSOfficeTests\DynamoMSOfficeTests.csproj" (default target) (51) ->
(CoreCompile target) -> 
  D:\a\Dynamo\Dynamo\master_net60_Win_Dynamo\test\Libraries\DynamoMSOfficeTests\Setup.cs(33,13): error CS0234: The type or namespace name 'ExcelInterop' does not exist in the namespace 'DSOffice' (are you missing an assembly reference?) [D:\a\Dynamo\Dynamo\master_net60_Win_Dynamo\test\Libraries\DynamoMSOfficeTests\DynamoMSOfficeTests.csproj]
  D:\a\Dynamo\Dynamo\master_net60_Win_Dynamo\test\Libraries\DynamoMSOfficeTests\ExcelTests.cs(1444,29): error CS0117: 'Data' does not contain a definition for 'OpenXMLImportExcel' [D:\a\Dynamo\Dynamo\master_net60_Win_Dynamo\test\Libraries\DynamoMSOfficeTests\DynamoMSOfficeTests.csproj]

    723 Warning(s)
    2 Error(s)

@sm6srw
Copy link
Contributor Author

sm6srw commented Aug 16, 2023

I expect them to fail but not like that. I will take a look.

@sm6srw sm6srw merged commit c3bbdf0 into DynamoDS:master Aug 17, 2023
@sm6srw sm6srw deleted the DYN-6139 branch August 17, 2023 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants