Skip to content

Commit a9e31a3

Browse files
committed
Refactor file upload descriptor factory to handle full content path template formats using metadata and component parameter entries for resolving placeholders.
2 parents 89618e3 + 6e35bff commit a9e31a3

File tree

28 files changed

+1367
-102
lines changed

28 files changed

+1367
-102
lines changed

.pipelines/azure-pipelines-linux.yml

Lines changed: 88 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,66 +9,104 @@ trigger:
99

1010
pr: none
1111

12-
pool:
13-
vmImage: ubuntu-latest
12+
resources:
13+
containers:
14+
- container: pmc-cli
15+
image: 'mcr.microsoft.com/pmc/pmc-cli:latest'
16+
options: --entrypoint=""
1417

1518
variables:
16-
VcVersion : 1.10.5
19+
VcVersion : 1.11.1
1720
ROOT: $(Build.SourcesDirectory)
1821
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
1922
ENABLE_PRS_DELAYSIGN: 1
2023
GitVersion.SemVer: ''
21-
2224

23-
steps:
25+
stages:
26+
- stage: BuildPackage
27+
jobs:
28+
- job: BuildPackage
29+
pool:
30+
vmImage: 'ubuntu-latest'
2431

25-
- task: PipAuthenticate@1
26-
inputs:
27-
artifactFeeds: 'CRC-Dev'
28-
- script: pip install pmc-cli
29-
- task: UseDotNet@2
30-
continueOnError: false
31-
inputs:
32-
packageType: 'sdk'
33-
version: '6.0.406'
34-
useGlobalJson: false
35-
performMultiLevelLookup: true
36-
workingDirectory: '$(Build.SourcesDirectory)'
32+
steps:
33+
- task: UseDotNet@2
34+
continueOnError: false
35+
inputs:
36+
packageType: 'sdk'
37+
version: '6.0.406'
38+
useGlobalJson: false
39+
performMultiLevelLookup: true
40+
workingDirectory: '$(Build.SourcesDirectory)'
3741

38-
- script: chmod -R +x $(Build.SourcesDirectory)
39-
displayName: 'Allow scripts to be executable on Linux'
42+
- script: chmod -R +x $(Build.SourcesDirectory)
43+
displayName: 'Allow scripts to be executable on Linux'
4044

41-
# Ensure the artifact output/bin/obj directories are clean.
42-
# - script: $(Build.SourcesDirectory)/clean.cmd
43-
# displayName: 'Clean Output Directories'
44-
45-
# Build the repo.
46-
- script: $(Build.SourcesDirectory)/build.sh $(VcVersion)
47-
displayName: 'Build Solutions'
45+
# Ensure the artifact output/bin/obj directories are clean.
46+
# - script: $(Build.SourcesDirectory)/clean.cmd
47+
# displayName: 'Clean Output Directories'
48+
49+
# Build the repo.
50+
- script: $(Build.SourcesDirectory)/build.sh $(VcVersion) --build-all
51+
displayName: 'Build Solutions'
4852

49-
# Build NuGet packages for the services/agents in the repo.
50-
# - script: $(Build.SourcesDirectory)/build-packages.cmd $(VcVersion)$(VersionSuffix)
51-
# displayName: 'Build NuGet Packages'
53+
- script: $(Build.SourcesDirectory)/src/VirtualClient/VirtualClient.Packaging/build-deb-linux-x64.sh $(VcVersion)
54+
displayName: 'Build deb package for linux x64'
5255

53-
- task: EsrpCodeSigning@1
54-
inputs:
55-
ConnectedServiceName: 'virtualclient-esrp'
56-
FolderPath: '$(System.DefaultWorkingDirectory)'
57-
Pattern: '*.*'
58-
signConfigType: 'inlineSignParams'
59-
inlineOperation: |
60-
[
61-
{
62-
"KeyCode" : "CP-450779-Pgp",
63-
"OperationCode" : "LinuxSign",
64-
"Parameters" : {},
65-
"ToolName" : "sign",
66-
"ToolVersion" : "1.0"
67-
}
68-
]
69-
SessionTimeout: '60'
70-
MaxConcurrency: '50'
71-
MaxRetryAttempts: '5'
56+
- script: $(Build.SourcesDirectory)/src/VirtualClient/VirtualClient.Packaging/build-deb-linux-arm64.sh $(VcVersion)
57+
displayName: 'Build deb package for linux arm64'
7258

73-
#- script: $(Build.SourcesDirectory)/upload-packages.cmd $(Build.SourcesDirectory)/out/packages $(NUGETORGAPIKEY)
74-
# displayName: 'Publish NuGet Packages'
59+
- task: EsrpCodeSigning@1
60+
inputs:
61+
ConnectedServiceName: 'virtualclient-esrp'
62+
FolderPath: '$(Build.SourcesDirectory)/out/packages'
63+
Pattern: '*.deb'
64+
signConfigType: 'inlineSignParams'
65+
inlineOperation: |
66+
[
67+
{
68+
"KeyCode" : "CP-450779-Pgp",
69+
"OperationCode" : "LinuxSign",
70+
"Parameters" : {},
71+
"ToolName" : "sign",
72+
"ToolVersion" : "1.0"
73+
}
74+
]
75+
SessionTimeout: '60'
76+
MaxConcurrency: '50'
77+
MaxRetryAttempts: '5'
78+
79+
- task: PublishBuildArtifacts@1
80+
inputs:
81+
pathToPublish: '$(Build.SourcesDirectory)/out/packages'
82+
artifactName: drop
83+
84+
85+
- job: PublishPackage
86+
condition: false
87+
dependsOn: BuildPackage
88+
pool:
89+
vmImage: 'ubuntu-latest'
90+
container: pmc-cli
91+
92+
steps:
93+
- task: PipAuthenticate@1
94+
inputs:
95+
artifactFeeds: 'CRC-Dev'
96+
- script: pip install pmc-cli
97+
98+
- task: AzureKeyVault@2
99+
inputs:
100+
ConnectedServiceName: 'VirtualClient-AzureRM-AME'
101+
KeyVaultName: 'junoprod01vault01'
102+
SecretsFilter: 'virtualclient-cert-pem'
103+
RunAsPreJob: true
104+
105+
- task: PublishLinuxPackagesPMC@0
106+
inputs:
107+
profile: 'ppe' # or tux-dev or ppe or prod depending on what you selected
108+
msal_SNIAuth: 'msal-sniauth'
109+
msal_cert: $(virtualclient-cert-pem)
110+
msal_client_ID: 'f407a268-1184-4845-92b1-eebfbe0749c0'
111+
package_path: '$(Build.SourcesDirectory)/out/packages/*.deb'
112+
repository: 'virtualclient-apt'

.pipelines/azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pool:
1818
vmImage: windows-latest
1919

2020
variables:
21-
VcVersion : 1.10.5
21+
VcVersion : 1.11.1
2222
ROOT: $(Build.SourcesDirectory)
2323
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
2424
ENABLE_PRS_DELAYSIGN: 1

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/bin/bash
22

3+
if [ -n "$1" ]; then
4+
VCBuildVersion="$1"
5+
fi
6+
7+
if [ -z "$VCBuildVersion" ]; then
8+
VCBuildVersion="0.0.1"
9+
fi
10+
311
while [[ "$#" -gt 0 ]]; do
412
case $1 in
513
--build-all)

src/VirtualClient/VirtualClient.Actions.FunctionalTests/AspNetBenchProfileTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private IEnumerable<string> GetProfileExpectedCommands(PlatformID platform)
106106
case PlatformID.Win32NT:
107107
commands = new List<string>
108108
{
109-
@"dotnet\.exe build -c Release -p:BenchmarksTargetFramework=net6.0",
109+
@"dotnet\.exe build -c Release -p:BenchmarksTargetFramework=net7.0",
110110
@"dotnet\.exe .+Benchmarks.dll --nonInteractive true --scenarios json --urls http://localhost:9876 --server Kestrel --kestrelTransport Sockets --protocol http --header ""Accept:.+ keep-alive",
111111
@"bombardier\.exe --duration 15s --connections 256 --timeout 10s --fasthttp --insecure -l http://localhost:9876/json --print r --format json"
112112
};
@@ -116,7 +116,7 @@ private IEnumerable<string> GetProfileExpectedCommands(PlatformID platform)
116116
commands = new List<string>
117117
{
118118
@"chmod \+x .+bombardier",
119-
@"dotnet build -c Release -p:BenchmarksTargetFramework=net6.0",
119+
@"dotnet build -c Release -p:BenchmarksTargetFramework=net7.0",
120120
@"dotnet .+Benchmarks.dll --nonInteractive true --scenarios json --urls http://localhost:9876 --server Kestrel --kestrelTransport Sockets --protocol http --header ""Accept:.+ keep-alive",
121121
@"bombardier --duration 15s --connections 256 --timeout 10s --fasthttp --insecure -l http://localhost:9876/json --print r --format json"
122122
};

src/VirtualClient/VirtualClient.Actions.FunctionalTests/VirtualClient.Actions.FunctionalTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<Content Include="..\TestResources\oltp-c.fio.jobfile" Link="Resources\oltp-c.fio.jobfile">
2424
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2525
</Content>
26-
<Content Include="..\TestResources\OpenFOAMResults.txt" Link="Resources\OpenFOAMResults.txt">
26+
<Content Include="..\TestResources\OpenFoamResults.txt" Link="Resources\OpenFoamResults.txt">
2727
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2828
</Content>
2929
<Content Include="..\TestResources\Pbzip2Results.txt" Link="Resources\Pbzip2Results.txt">
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
Composites
2+
3dsmax-07,35.46
3+
catia-06,43.3
4+
creo-03,56.98
5+
energy-03,27.46
6+
maya-06,227.8
7+
medical-03,35.16
8+
snx-04,139.11
9+
solidworks-07,97.8
10+
11+
viewset,index,name,weight,fps
12+
3dsmax-07,1,3dsmax_Arch_Shaded,9.52,50.87
13+
3dsmax-07,2,3dsmax_Arch_Graphite,9.52,42.35
14+
3dsmax-07,3,3dsmax_Space_Wireframe,9.52,147.76
15+
3dsmax-07,4,3dsmax_Space_Clay,9.52,110.5
16+
3dsmax-07,5,3dsmax_ProjectSoane_Shaded,9.52,7.91
17+
3dsmax-07,6,3dsmax_ProjectSoane_Wireframe,9.52,9.82
18+
3dsmax-07,7,3dsmax_HugeFish_Wireframe,9.52,11.39
19+
3dsmax-07,8,3dsmax_HugeFish_Shaded,9.52,11.54
20+
3dsmax-07,9,3dsmax_Office_Realistic,9.52,72.91
21+
3dsmax-07,10,3dsmax_Office_Shaded,9.52,106.39
22+
3dsmax-07,11,3dsmax_Office_RealisticMats,4.8,45.2
23+
catia-06,1,catiaV5test1,14.28,34.01
24+
catia-06,2,catiaV5test2,14.28,44.3
25+
catia-06,3,catiaV5test3,0,424.59
26+
catia-06,4,catiaV5test4,14.28,158.01
27+
catia-06,5,CATIA_3DX_repEngine,14.29,15.86
28+
catia-06,6,CATIA_3DX_loftJet,14.29,26.73
29+
catia-06,7,CATIA_3DX_car,14.29,46.68
30+
catia-06,8,CATIA_3DX_Multi_car,14.29,60.68
31+
creo-03,1,Creo_03_test_01,8.33,60.44
32+
creo-03,2,Creo_03_test_02,8.33,25.21
33+
creo-03,3,Creo_03_test_03,8.34,33.31
34+
creo-03,4,Creo_03_test_04,10,172.31
35+
creo-03,5,Creo_03_test_05,10,244.89
36+
creo-03,6,Creo_03_test_06,10,72.06
37+
creo-03,7,Creo_03_test_07,10,40.56
38+
creo-03,8,Creo_03_test_08,10,50.14
39+
creo-03,9,Creo_03_test_09,10,12.34
40+
creo-03,10,Creo_03_test_10,3.75,92.99
41+
creo-03,11,Creo_03_test_11,3.75,56.1
42+
creo-03,12,Creo_03_test_12,3.75,49.47
43+
creo-03,13,Creo_03_test_13,3.75,85.21
44+
energy-03,1,Test1,16.67,38.02
45+
energy-03,2,Test2,16.67,20.46
46+
energy-03,3,Test3,16.67,18.04
47+
energy-03,4,Test4,16.67,49.49
48+
energy-03,5,Test5,16.66,25.79
49+
energy-03,6,Test6,16.66,23.92
50+
maya-06,1,Maya_01,8.33,120.22
51+
maya-06,2,Maya_02,8.33,664.73
52+
maya-06,3,Maya_03,12.5,106.89
53+
maya-06,4,Maya_04,12.5,459.27
54+
maya-06,5,Maya_05,12.5,245.47
55+
maya-06,6,Maya_06,8.33,86.95
56+
maya-06,7,Maya_07,8.33,198.37
57+
maya-06,8,Maya_08,12.5,388.78
58+
maya-06,9,Maya_09,8.34,506.82
59+
maya-06,10,Maya_10,8.34,87.18
60+
medical-03,1,Test1,10,258.34
61+
medical-03,2,Test2,10,310.64
62+
medical-03,3,Test3,10,63.19
63+
medical-03,4,Test4,10,26.93
64+
medical-03,5,Test5,10,32.06
65+
medical-03,6,Test6,10,82.55
66+
medical-03,7,Test7,10,31.91
67+
medical-03,8,Test8,10,53.17
68+
medical-03,9,Test9,10,1.26
69+
medical-03,10,Test10,10,3.74
70+
snx-04,1,NX8_AdvancedStudioAA,7.5,123.54
71+
snx-04,2,NX8_ShadedAA,10,164.72
72+
snx-04,3,NX8_ShadedWithEdgeAA,20,85.33
73+
snx-04,4,NX8_StudioAA,5,114.15
74+
snx-04,5,NX8_powerTrain_Wireframe,7.5,158.74
75+
snx-04,6,NX8_suvAdvancedStudio,7.5,238.02
76+
snx-04,7,NX8_suvShaded,10,216.75
77+
snx-04,8,NX8_suvShadedWithEdge,20,118.66
78+
snx-04,9,NX8_suvStudio2,5,134.47
79+
snx-04,10,NX8_suvWireframe,7.5,232.72
80+
solidworks-07,1,SW2020_RallyCar_Realview,10,139.26
81+
solidworks-07,2,SW2020_RallyCar_ShadedEdges,10,191.75
82+
solidworks-07,3,SW2020_RallyCar_Shaded,15,256.76
83+
solidworks-07,4,SW2020_Excavator_Shaded,5,268.97
84+
solidworks-07,5,SW2020_Excavator_Realview,15,146.99
85+
solidworks-07,6,SW2020_JetEngine_ShadedEdges,10,105.26
86+
solidworks-07,7,SW2020_JetEngine_Shaded,10,167.8
87+
solidworks-07,8,SW2020_JetEngine_Realview,10,92.75
88+
solidworks-07,9,SW2020_SpaceCrawler_Shaded,5,9.3
89+
solidworks-07,10,SW2020_SpaceCrawler_ShadedEdges,10,4.99
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Composites
2+
3dsmax-07,29.33
3+
4+
viewset,index,name,weight,fps
5+
3dsmax-07,1,3dsmax_Arch_Shaded,9.52,45.9
6+
3dsmax-07,2,3dsmax_Arch_Graphite,9.52,38.25
7+
3dsmax-07,3,3dsmax_Space_Wireframe,9.52,101.46
8+
3dsmax-07,4,3dsmax_Space_Clay,9.52,95.22
9+
3dsmax-07,5,3dsmax_ProjectSoane_Shaded,9.52,8.3
10+
3dsmax-07,6,3dsmax_ProjectSoane_Wireframe,9.52,10.3
11+
3dsmax-07,7,3dsmax_HugeFish_Wireframe,9.52,6.46
12+
3dsmax-07,8,3dsmax_HugeFish_Shaded,9.52,7.26
13+
3dsmax-07,9,3dsmax_Office_Realistic,9.52,63.75
14+
3dsmax-07,10,3dsmax_Office_Shaded,9.52,92.39
15+
3dsmax-07,11,3dsmax_Office_RealisticMats,4.8,40.56

0 commit comments

Comments
 (0)