Closed jonahgraham closed 12 months ago
The change to GHA was deployed yesterday - see https://github.com/actions/runner-images/issues/8266#issuecomment-1729310612
The issue appears to be that the gdbserver
process has changed how it is buffered when connected to the adapter. This leads to output events like this:
[17:21:57.837 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"L"}}
[17:21:57.837 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"i"}}
[17:21:57.837 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"stening on port 63903\r\n"}}
which corresponds to what is being parsed. The gdbserver output is sniffed for a regex like this:
but with the output split across multiple 'data'
events from the process we never see that regex and the test timesouts:
I think the solution is to accumulate the output (line by line) before passing the accumulated output to checkTargetPort
[...] (line by line) [...]
Not sure there is any need to do it line by line - that makes the code more complicated.
GitHub updated chocolatey's preinstall mingw from version 11 to 12 in the last few days and that includes gdb going from 10.2 -> 11.2. So it looks like there is some instability in the new version causing us grief.