Functional Tests - All Databases jobs sporadically hang indefinitely with no output
Summary
Functional Tests - All Databases (.github/workflows/functional_all_db.yml) jobs sporadically hang completely: the Functional Tests step prints its standard Running tests from .../OrchardCore.Tests.Functional.dll startup line, then produces zero further output for 40+ minutes to over an hour, requiring the run to be manually cancelled. This is not a slow test or a normal timeout - no individual test failure, no exception, no partial results ever print. The step is simply silent until forced cancellation.
This has now been observed 6 times across roughly 48 hours, on 3 different database backends (Postgres, MySql, Redis + Azurite), on different PR branches, at different times of day, both in isolation and when running multiple workflow_dispatch invocations concurrently. It is not specific to any test content or any particular branch's changes.
Impact
- Wastes significant CI minutes per occurrence (up to ~1 hour before manual cancellation).
- Requires a human/agent to notice and manually cancel the run - it does not time out or fail on its own within a normal timeframe.
- Makes it hard to trust a single green
functional_all_db.ymlrun as proof a fix is solid, since a hang (not a real failure) can mask what would otherwise be a completed, valid signal - and conversely, cancelling a hung run produces acancelledconclusion that's easy to mistake for "still running" rather than "stuck".
Reproduction / Evidence
All 6 occurrences share the identical signature: the log's last line before the multi-minute silent gap is always exactly Running tests from /home/runner/work/OrchardCore/OrchardCore/test/OrchardCore.Tests.Functional/bin/Release/net10.0/OrchardCore.Tests.Functional.dll (net10.0|x64), with no test names, no pass/fail counts, nothing - until the run is cancelled.
| # | Run | Job | Backend | Started (UTC) | Cancelled (UTC) | Silent duration |
|---|---|---|---|---|---|---|
| 1 | 36290152049 | 108538551885 | Redis + Azurite | 2026-09-27 03:00:32 | 2026-09-27 09:00:48 | ~6h (found hung on later inspection, not cancelled promptly) |
| 2 | 36339979847 | 108678035207 | MySql | 2026-09-27 18:15:40 | 2026-09-27 19:57:28 | ~1h42m |
| 3 | 36342608522 | 108685513100 | Postgres | 2026-09-27 18:58:20 | 2026-09-27 19:58:36 | ~1h |
| 4 | 36610204476 | 109549385851 | Redis + Azurite | 2026-09-29 18:15:17 | 2026-09-29 ~18:38 | ~22m |
| 5 | 36631817836 | 109622665618 | Redis + Azurite | 2026-09-29 21:13:32 | 2026-09-29 21:29 | ~16m |
(A 6th occurrence was observed and cancelled promptly during interactive investigation without its exact job ID captured before cancellation.)
Notably, occurrence #5 happened concurrently with two sibling workflow_dispatch runs on the exact same commit that both completed normally in ~10-12 minutes total (all 6 database-backend jobs), including their own Redis + Azurite jobs - ruling out anything backend- or commit-specific and pointing at intermittent GitHub Actions runner-level contention (CPU/memory pressure affecting the .NET test host or the Chromium process launch) rather than anything in the test suite itself.
What this is NOT
- Not a specific failing test - no test name, exception, or assertion ever appears in the log before the hang.
- Not reproducible locally, including under sustained 100%-CPU load across all cores (tested extensively while investigating unrelated flaky-test issues in #19949 and #19955).
- Not tied to a particular commit/branch - observed on
main, and on multiple different feature branches, across unrelated code changes. - Not a Playwright browser-launch failure with an error message - if it were, the log would show that error rather than nothing at all.
Suggested next steps
- Add a job-level timeout (e.g.
timeout-minutes: 20-25) to theFunctional Testsstep (or the job) infunctional_all_db.ymlso a hang fails fast and visibly instead of silently consuming an hour of runner time before a human notices and cancels it. - If reproducible with more visibility, capture
dotnet-dump/process-list diagnostics on a hung runner (e.g. via a scheduledworkflow_dispatchwith a deliberately short timeout plus a diagnostic step that dumps process state right before the timeout fires) to identify whether it's the test host process, Playwright/Chromium, or something else that's actually stuck. - Consider whether
Install Playwright Browsers/ browser launch itself could silently hang under certain runner conditions rather than the test host - the total silence (no per-test output at all, not even the first test's) is consistent with something blocking before the test run loop ever starts producing output, though the log's last line ("Running tests from ...") does suggest the test host process itself did start.
Source: OrchardCMS/OrchardCore