6666 run : cd ${BUILD_DIR} && test/tests -r junit -o report.xml
6767 env :
6868 ASAN_OPTIONS : alloc_dealloc_mismatch=0
69+ - name : Add final_status property
70+ if : success() || failure()
71+ run : |
72+ which xsltproc || sudo apt-get install -y xsltproc
73+ xml_file=".build/report.xml"
74+ echo "Fixing $xml_file"
75+ tmp_file="$(mktemp)"
76+ xsltproc --output "$tmp_file" ".github/workflows/add_final_status.xsl" "$xml_file"
77+ mv "$tmp_file" "$xml_file"
6978 - name : Upload test report to Datadog
79+ if : success() || failure()
7080 run : |
7181 curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-${{ matrix.arch }}" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci
7282 datadog-ci junit upload --service dd-trace-cpp --tags test.source.file:test/*.cpp .build/report.xml
@@ -145,7 +155,7 @@ jobs:
145155 Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
146156 Join-Path (Resolve-Path ~).Path "scoop\shims" >> $Env:GITHUB_PATH
147157 - name : Install Dependencies
148- run : scoop install main/cmake@4.0.1 main/ninja
158+ run : scoop install main/cmake@4.0.1 main/ninja main/libxslt
149159 - name : Build
150160 run : |
151161 & 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\Launch-VsDevShell.ps1' -arch ${{ matrix.arch }}
@@ -155,10 +165,18 @@ jobs:
155165 run : |
156166 & 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\Launch-VsDevShell.ps1' -arch ${{ matrix.arch }}
157167 .\build\test\tests.exe -r junit -o report.xml
168+ - name : Add final_status property
169+ if : success() || failure()
170+ run : |
171+ $xml_file = "report.xml"
172+ $tmp_file = [System.IO.Path]::GetTempFileName()
173+ xsltproc --output $tmp_file ".github/workflows/add_final_status.xsl" $xml_file
174+ Move-Item -Force $tmp_file $xml_file
158175 - name : Upload test report to Datadog
176+ if : success() || failure()
159177 run : |
160178 Invoke-WebRequest -Uri "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_win-x64" -OutFile "datadog-ci.exe"
161- ./datadog-ci.exe junit upload --service dd-trace-cpp --tags test.source.file:test/*.cpp report.xml
179+ ./datadog-ci.exe junit upload --service dd-trace-cpp --tags test.source.file:test/*.cpp report.xml
162180
163181 coverage :
164182 needs : build-linux-cmake
0 commit comments