Skip to contentSkip to conversation

ci: detect Windows installer build failures

PATCH Applied Vincent Fu 2 participants 2 messages Feb 15, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20220215133048uscas1p1a894d691bd2ee6e391b2cc8e4f22d143@uscas1p1.samsung.com

Vincent Fu

author
#1 lore raw

PATCH 1/1 ci: detect Windows installer build failures

From: Vincent Fu <[email protected]>

When the Windows installer build fails, the build script actually continues running and does not detect the failure. Use ls to determine if the MSI file exists in order to detect whether or not the installer build succeeded.

---
 .appveyor.yml | 1 +
 1 file changed, 1 insertion(+)
.appveyor.yml +1 -0
index 42b79958..b94eefe3 100644
@@ -44,6 +44,7 @@ after_build:
   - file.exe fio.exe
   - make.exe test
   - 'cd os\windows && dobuild.cmd %ARCHITECTURE% && cd ..'
+  - ls.exe ./os/windows/*.msi
   - ps: Get-ChildItem .\os\windows\*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName fio.msi }
 
 test_script:
Signature · 1 line
2.25.1
Applied
#2 lore raw
Quoted 8 lines · Vincent Fu

From: Vincent Fu <[email protected]>

When the Windows installer build fails, the build script actually continues running and does not detect the failure. Use ls to determine if the MSI file exists in order to detect whether or not the installer build succeeded.

[...]

Applied, thanks!

[1/1] ci: detect Windows installer build failures

      commit: 84b4423497a9953ea78be771ae004620610b8179

Best regards,

Signature · 1 line
Jens Axboe