Skip to content

Commit 1739375

Browse files
committed
more diag
1 parent b49974c commit 1739375

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

eng/pipelines/pr.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,24 @@ stages:
269269
targetType: "inline"
270270
script: |
271271
./eng/dotnet-build/build.sh --source-build --binarylog
272+
- bash: |
273+
echo "=== dotnet version ===" && ./cli/dotnet --version
274+
echo "=== ref pack System.Runtime.dll paths ===" && find ./cli/packs -name "System.Runtime.dll" 2>/dev/null
275+
echo "=== FeatureSwitchDefinitionAttribute in ref assemblies ===" && \
276+
find ./cli/packs -name "System.Runtime.dll" | while read dll; do
277+
echo "--- $dll ---"
278+
strings "$dll" | grep -i FeatureSwitch || echo " NOT FOUND"
279+
done
280+
mkdir -p artifacts/diag
281+
find ./cli/packs -name "System.Runtime.dll" -exec cp {} artifacts/diag/ \; 2>/dev/null || true
282+
displayName: "Collect SDK diagnostics"
283+
condition: failed()
272284
- task: PublishPipelineArtifact@1
273-
displayName: Publish MSBuild Binary Logs
285+
displayName: Publish MSBuild Binary Logs and SDK Diagnostics
274286
condition: failed()
275287
inputs:
276-
targetPath: artifacts/log/Release
277-
artifact: binlog - Source Build - Attempt $(System.JobAttempt)
288+
targetPath: artifacts
289+
artifact: diagnostics - Source Build - Attempt $(System.JobAttempt)
278290
- ${{ if eq(parameters.RunStaticAnalysis, true) }}:
279291
- job:
280292
displayName: Run Static Analysis

0 commit comments

Comments
 (0)