From 85c20381eb5252b9475c4fe752786d23fb7205da Mon Sep 17 00:00:00 2001 From: Blair L Murri Date: Mon, 10 Jul 2023 19:24:20 -0700 Subject: [PATCH 1/4] Publish node task runner Addresses #265 --- Microsoft.GA4GH.TES.sln | 6 + .../PublishTesRunnerToTesApiArtifacts.csproj | 135 ++++++++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 src/PublishTesRunnerToTesApiArtifacts/PublishTesRunnerToTesApiArtifacts.csproj diff --git a/Microsoft.GA4GH.TES.sln b/Microsoft.GA4GH.TES.sln index c885de90e..c01a11c23 100644 --- a/Microsoft.GA4GH.TES.sln +++ b/Microsoft.GA4GH.TES.sln @@ -35,6 +35,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tes.Runner.Test", "src\Tes. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tes.RunnerCLI", "src\Tes.RunnerCLI\Tes.RunnerCLI.csproj", "{D5DFB5A4-2E18-456A-9A29-5BD8C82DF250}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PublishTesRunnerToTesApiArtifacts", "src\PublishTesRunnerToTesApiArtifacts\PublishTesRunnerToTesApiArtifacts.csproj", "{4A98F17B-0C4F-4412-8D48-54BA97601407}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -85,6 +87,10 @@ Global {D5DFB5A4-2E18-456A-9A29-5BD8C82DF250}.Debug|Any CPU.Build.0 = Debug|Any CPU {D5DFB5A4-2E18-456A-9A29-5BD8C82DF250}.Release|Any CPU.ActiveCfg = Release|Any CPU {D5DFB5A4-2E18-456A-9A29-5BD8C82DF250}.Release|Any CPU.Build.0 = Release|Any CPU + {4A98F17B-0C4F-4412-8D48-54BA97601407}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4A98F17B-0C4F-4412-8D48-54BA97601407}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4A98F17B-0C4F-4412-8D48-54BA97601407}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4A98F17B-0C4F-4412-8D48-54BA97601407}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/PublishTesRunnerToTesApiArtifacts/PublishTesRunnerToTesApiArtifacts.csproj b/src/PublishTesRunnerToTesApiArtifacts/PublishTesRunnerToTesApiArtifacts.csproj new file mode 100644 index 000000000..036d1600b --- /dev/null +++ b/src/PublishTesRunnerToTesApiArtifacts/PublishTesRunnerToTesApiArtifacts.csproj @@ -0,0 +1,135 @@ + + + + + net7.0 + enable + enable + linux-x64 + + + + $(ArtifactStagingDirectory)\TesApi.Web + + + + + False + None + Never + False + + + False + None + Never + False + + + + + + + + + + + + + + + + + + + + + (); + foreach (var file in PublishedFiles) + { + Log.LogMessage(MessageImportance.Normal, "Parsing {0}", file.ItemSpec); + var dirInfo = Directory.GetParent(Path.Combine(Directory.GetParent(file.GetMetadata("MsBuildSourceProjectFile")).FullName, file.GetMetadata("OutputPath"))); + var dir = new TaskItem(dirInfo.FullName); + file.CopyMetadataTo(dir); + dirs.Add(dir); + } + //PublishedDirectories = Enumerable.DistinctBy(dirs, item => item.ItemSpec).ToArray(); + PublishedDirectories = dirs.ToArray(); + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + <__tRunnerPath Include="@(__PublishDirs)" Condition="Exists('%(__PublishDirs.Identity)/tRunner') and '%(__PublishDirs.TargetPath)' == 'tRunner'" /> + <__tRunnerFiles Include="%(__tRunnerPath.FullPath)\**\*" /> + <__tesapiScriptsPath Include="@(__PublishDirs->'%(FullPath)\scripts')" Condition="Exists('%(__PublishDirs.Identity)/tesapi.dll') and '%(__PublishDirs.TargetPath)' == 'tesapi.dll'" /> + + + + + + + + + + + + + + + From 70f46d98c0834bdcdb61e86a8e1d9756597cfa52 Mon Sep 17 00:00:00 2001 From: Blair L Murri Date: Mon, 10 Jul 2023 19:47:08 -0700 Subject: [PATCH 2/4] remove changes to solution file --- Microsoft.GA4GH.TES.sln | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Microsoft.GA4GH.TES.sln b/Microsoft.GA4GH.TES.sln index c01a11c23..c885de90e 100644 --- a/Microsoft.GA4GH.TES.sln +++ b/Microsoft.GA4GH.TES.sln @@ -35,8 +35,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tes.Runner.Test", "src\Tes. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tes.RunnerCLI", "src\Tes.RunnerCLI\Tes.RunnerCLI.csproj", "{D5DFB5A4-2E18-456A-9A29-5BD8C82DF250}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PublishTesRunnerToTesApiArtifacts", "src\PublishTesRunnerToTesApiArtifacts\PublishTesRunnerToTesApiArtifacts.csproj", "{4A98F17B-0C4F-4412-8D48-54BA97601407}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -87,10 +85,6 @@ Global {D5DFB5A4-2E18-456A-9A29-5BD8C82DF250}.Debug|Any CPU.Build.0 = Debug|Any CPU {D5DFB5A4-2E18-456A-9A29-5BD8C82DF250}.Release|Any CPU.ActiveCfg = Release|Any CPU {D5DFB5A4-2E18-456A-9A29-5BD8C82DF250}.Release|Any CPU.Build.0 = Release|Any CPU - {4A98F17B-0C4F-4412-8D48-54BA97601407}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4A98F17B-0C4F-4412-8D48-54BA97601407}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4A98F17B-0C4F-4412-8D48-54BA97601407}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4A98F17B-0C4F-4412-8D48-54BA97601407}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 3b7f7f0ca1a2af27633e0c5a3b9ea5d83c85c9df Mon Sep 17 00:00:00 2001 From: Blair L Murri Date: Mon, 10 Jul 2023 21:03:49 -0700 Subject: [PATCH 3/4] Remove fragile publishing from tesapi.web project --- src/TesApi.Web/TesApi.Web.csproj | 80 +------------------------------- 1 file changed, 1 insertion(+), 79 deletions(-) diff --git a/src/TesApi.Web/TesApi.Web.csproj b/src/TesApi.Web/TesApi.Web.csproj index 305af8fbf..8167d1e4e 100644 --- a/src/TesApi.Web/TesApi.Web.csproj +++ b/src/TesApi.Web/TesApi.Web.csproj @@ -62,16 +62,6 @@ - - - False - None - Never - False - - @@ -80,72 +70,4 @@ PreserveNewest - - - - - - - - - - - - - - - - - - - - - - - - - <__ProjectNotReferenced Include="@(_MSBuildProjectReferenceExistent)" Condition=" '%(Filename)' == 'Tes.RunnerCLI' "/> - <_MSBuildProjectReferenceExistent Remove="@(__ProjectNotReferenced)"/> - <_MSBuildProjectReferenceExistent Include="@(__ProjectNotReferenced)"> - %(__ProjectNotReferenced.AdditionalProperties);PublishDir=$(__TesRunnerPublishDir);%(__ProjectNotReferenced.SetConfiguration);%(__ProjectNotReferenced.SetPlatform);%(__ProjectNotReferenced.SetTargetFramework) - - %(__ProjectNotReferenced.GlobalPropertiesToRemove);PublishSingleFile;PublishTrimmed;SelfContained - - - - - - - <__TRunnerMD5Hash Include="$(IntermediateOutputPath)TRunnerMD5Hash.txt" /> - - - - - - - - - - - - scripts\TRunnerMD5Hash.txt - PreserveNewest - - - - - - - - scripts\tRunner - PreserveNewest - - - - - \ No newline at end of file + From 3bc84e9206fc3bdb3052ad705596826a6657304a Mon Sep 17 00:00:00 2001 From: Blair L Murri Date: Wed, 12 Jul 2023 11:37:57 -0700 Subject: [PATCH 4/4] Remove commented out code --- .../PublishTesRunnerToTesApiArtifacts.csproj | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/PublishTesRunnerToTesApiArtifacts/PublishTesRunnerToTesApiArtifacts.csproj b/src/PublishTesRunnerToTesApiArtifacts/PublishTesRunnerToTesApiArtifacts.csproj index 036d1600b..99a7011d2 100644 --- a/src/PublishTesRunnerToTesApiArtifacts/PublishTesRunnerToTesApiArtifacts.csproj +++ b/src/PublishTesRunnerToTesApiArtifacts/PublishTesRunnerToTesApiArtifacts.csproj @@ -37,22 +37,6 @@ TargetPath="tesapi.dll" /> - - @@ -77,7 +61,6 @@ file.CopyMetadataTo(dir); dirs.Add(dir); } - //PublishedDirectories = Enumerable.DistinctBy(dirs, item => item.ItemSpec).ToArray(); PublishedDirectories = dirs.ToArray(); ]]>