<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Ah, I got it! Right after restarting the VM (I stepped over #snapshotAndQuit in a debugger), OSProcess in mingw suddenly stopped working (i.e., timeouts only). After evaluating OSProcessAccesssor initialize again, it works again! I have no idea why ...</p>
<p><br>
</p>
<p>Maybe we want to make this default behavior, at least for Windows, by registering this in a #startUp: method? But I don't have a good overview of OSProcess, maybe there is some other state which must not be reset.</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von David T. Lewis <lewis@mail.msen.com><br>
<b>Gesendet:</b> Montag, 28. Juni 2021 16:45:26<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] Trouble running OSProcess on smalltalkCI for Windows/mingw</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Christoph,<br>
<br>
OSProcess for Windows is incomplete and most of the OSProcess/CommandShell<br>
functionality that you see on unix (Linux, OS X) is not going to<br>
work.<br>
<br>
Levente's ProcessWrapper package may be more suitable:<br>
  <a href="http://www.squeaksource.com/ProcessWrapper">http://www.squeaksource.com/ProcessWrapper</a><br>
<br>
I'm assuming you are running a Windows VM. If you are using a VM<br>
for Linux, I don't know what will happen, but Windows does not<br>
support the unix fork() semantics so I expect that there would<br>
be limitations.<br>
<br>
Dave<br>
<br>
<br>
On Mon, Jun 28, 2021 at 01:28:13PM +0000, Thiede, Christoph wrote:<br>
> Hi all,<br>
> <br>
> <br>
> while setting up smalltalkCI for a project, I am having troubles getting OSProcess to run on a GitHub Actions runner for Windows.<br>
> <br>
> <br>
> My test is as simple as:<br>
> <br>
> <br>
> OSProcess waitForCommand: 'whoami'<br>
> <br>
> <br>
> Which, normally, should print a small string to stdout and return after no longer than a few decisonds.<br>
> <br>
> <br>
> However, in my smalltalkCI test for Windows, I just keep getting timeouts, even though the username is output correctly to the CI log.<br>
> <br>
> I am installing OSProcess using:<br>
> MCMcmUpdater updateFromRepository: '<a href="http://www.squeaksource.com/OSProcess">http://www.squeaksource.com/OSProcess</a>' baseName: MCMcmUpdater defaultBaseName interactive: false.<br>
> <<a href="http://www.hpi.de/">http://www.hpi.de/</a>><br>
> I have ensured (via good old Transcript debugging) that the grimReaperProcess is running and not suspended.<br>
> Also, there is not any other error message visible in the Transcript.<br>
> <br>
> How could that be? As far as I know, the GitHub runner for Windows uses the git bash (mingw), so Windows executables and APIs are still available, but the shell is a different one.<br>
> I could also reproduce the issue when running smalltalkCI from my local git bash (mingw). Interestingly, when using the "--headful" option to inspect the image manually, I can run all tests successfully, but when the tests are run automatically in the squeak::run_tests
 stage, they fail again.<br>
> What is going on here?? At the moment, I feel somehow like at my wit's end ...<br>
> <br>
> Did anyone of you already encountered a similar problem, or do you have any idea how to debug/solve the problem? Thanks in advance! :-)<br>
> <br>
> Best,<br>
> Christoph<br>
<br>
> <br>
<br>
<br>
</div>
</span></font>
</body>
</html>