Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

ci: capture diagnostics when Unix UI tests stall

BlackSpiritsac43e47c252f
diff --git a/.github/workflows/portable.yml b/.github/workflows/portable.yml
index b778b4d4..ffa67310 100644
--- a/.github/workflows/portable.yml
+++ b/.github/workflows/portable.yml
@@ -155,6 +155,10 @@ jobs:
foreach ($project in $projects) {
$testArguments = @('test', "tests/$project/$project.csproj", '--no-build', '-c', 'Release', '--logger', 'trx', '--results-directory', "TestResults/${{ matrix.rid }}",
'--filter', 'FullyQualifiedName!=Filee.App.Tests.ExplorerMenuTests.Every_native_import_exists_in_the_dll_it_names&FullyQualifiedName!=Filee.App.Tests.ExplorerMenuTests.Reading_the_registered_package_never_throws')
+ # As on Windows, capture the running UI test and a dump if it stalls. A job timeout alone loses both.
+ if ($project -eq 'Filee.App.Tests') {
+ $testArguments += @('--blame-crash', '--blame-hang-timeout', '5m', '--logger', 'console;verbosity=normal')
+ }
if ($IsLinux) {
xvfb-run -a env -u WAYLAND_DISPLAY XDG_SESSION_TYPE=x11 dotnet @testArguments
} else {