GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — [cli] Fix hanging PmdCliTest under Windows with git bash by adangel · Pull Request #7344 · pmd/pmd Conversation
Member
Describe the PR
The progressbar uses JLine to find out the terminal width. In git bash, This happened before. In d1d10d1 it was worked around by This PR disables JLine's exec provider for all pmd-cli tests via the system property Related issues
Ready?
🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe progressbar uses JLine to determine the terminal width. Under Windows in git bash (PWD and MSYSTEM are set), JLine uses the exec terminal provider, which runs "tty.exe" with the inherited stdin of the forked surefire JVM. As surefire is reading from stdin (command channel) at the same time, tty.exe doesn't start until that read completes. This made PmdCliTest hang (locally) or take about 9.5 minutes (in the Windows CI build). This happened before and was worked around in d1d10d1 by adding "--no-progress" to the standard arguments of PmdCliTest. The test reportsSummaryAfterProgressBarWithReportFile (added with pmd#6823) needs the progress bar and doesn't use these standard arguments, so the problem came back. The tests don't need a real terminal, so disable the exec provider for all pmd-cli tests instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
There was an error while loading. Please reload this page.
|
Btw. I was testing my local branch build (https://github.com/adangel/pmd/tree/wip/real-java-modules) under Windows and noticed, that the build is hanging in pmd-cli... I've now waited long enough, it took ~20 minutes vs. 10 seconds. How long it hangs seems to be a race between tty.exe and surefire. The timings of the last builds are 477, 518, 569, 589, 625 and 637 s for the test PmdCliTest. So, it was not always 9.5 minutes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
No relevant source code has been changed, pmdtester skipped. (comment created at 2026-11-13 15:45:28+00:00 for 035fc85) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
And now it's back to 1.6s. Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
The build for this PR now says While the last build from main shows: Seems to be working, yes :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.