11parameters :
22 pythonVersion : ' '
33 artifactName : ' '
4- grpcBuild : []
4+ grpcBuild : ' '
55
66steps :
77- task : UsePythonVersion@0
@@ -147,26 +147,14 @@ steps:
147147 }
148148 }
149149 # === gRPC check ===
150- $grpcPatterns = @()
150+ $grpcPattern = "*$(majorVersion)$(minorVersion)-${{ parameters.grpcBuild }}"
151+ $grpcMatch = Get-ChildItem -Path $cythonDir -Name -ErrorAction SilentlyContinue |
152+ Where-Object { $_ -like $grpcPattern }
151153
152- foreach ($build in @(${ { parameters.grpcBuild } })) {
153- $grpcPatterns += "*$($majorVersion)$($minorVersion)-$build"
154- }
155-
156- $found = $false
157-
158- foreach ($pattern in $grpcPatterns) {
159- $grpcMatch = Get-ChildItem -Path $cythonDir -Name -ErrorAction SilentlyContinue |
160- Where-Object { $_ -like $pattern }
161-
162- if ($grpcMatch) {
163- Write-Host "✅ Found gRPC binary: $grpcMatch"
164- $found = $true
165- }
166- }
167-
168- if (-not $found) {
169- $missing += "grpc/_cython/$($grpcPatterns -join ', ')"
154+ if (-not $grpcMatch) {
155+ $missing += "grpc/_cython/$grpcPattern"
156+ } else {
157+ Write-Host "✅ Found gRPC binary: $grpcMatch"
170158 }
171159
172160 if ($missing.Count -gt 0) {
@@ -226,7 +214,6 @@ steps:
226214 "proxy_worker/protos/shared/NullableTypes_pb2.py",
227215 "proxy_worker/protos/shared/NullableTypes_pb2_grpc.py",
228216 "six.py",
229- "uvloop",
230217 "werkzeug",
231218 "worker.py"
232219 )
@@ -239,28 +226,16 @@ steps:
239226 $missing += $item
240227 }
241228 }
242- # === gRPC check ===
243- $grpcPatterns = @()
229+ # # === gRPC check ===
230+ # $grpcPattern = "*$(majorVersion)$(minorVersion)-${{ parameters.grpcBuild }}"
231+ # $grpcMatch = Get-ChildItem -Path $cythonDir -Name -ErrorAction SilentlyContinue |
232+ # Where-Object { $_ -like $grpcPattern }
244233
245- foreach ($build in @(${ { parameters.grpcBuild } })) {
246- $grpcPatterns += "*$($majorVersion)$($minorVersion)-$build"
247- }
248-
249- $found = $false
250-
251- foreach ($pattern in $grpcPatterns) {
252- $grpcMatch = Get-ChildItem -Path $cythonDir -Name -ErrorAction SilentlyContinue |
253- Where-Object { $_ -like $pattern }
254-
255- if ($grpcMatch) {
256- Write-Host "✅ Found gRPC binary: $grpcMatch"
257- $found = $true
258- }
259- }
260-
261- if (-not $found) {
262- $missing += "grpc/_cython/$($grpcPatterns -join ', ')"
263- }
234+ # if (-not $grpcMatch) {
235+ # $missing += "grpc/_cython/$grpcPattern"
236+ # } else {
237+ # Write-Host "✅ Found gRPC binary: $grpcMatch"
238+ # }
264239
265240 if ($missing.Count -gt 0) {
266241 Write-Error "Validation failed. Missing expected files/folders:`n$($missing -join "`n")"
0 commit comments