spiel icon indicating copy to clipboard operation
spiel copied to clipboard

speaker: emit errors for fd failures

Open andyholmes opened this issue 1 year ago • 7 comments

When Spiel fails to open/close pipes in spiel_speaker_speak(), emit utterance-error and return early.

andyholmes avatar May 16 '24 17:05 andyholmes

This fails in CI

eeejay avatar May 29 '24 18:05 eeejay

This fails in CI

Yeah, I'm really not sure why g_close() is a missing symbol :confused:

I guess I'll just implement returning a GError manually, it's not a ton of code.

andyholmes avatar May 29 '24 20:05 andyholmes

Also, is there a test you can add?

eeejay avatar Jun 07 '24 19:06 eeejay

Also, is there a test you can add?

Hmm, that's a good question. I'm not sure how to make an open() or close() call fail, other than maybe some simple wrappers with #ifdef SPIEL_TEST in them or something.

andyholmes avatar Jun 08 '24 15:06 andyholmes

Also, is there a test you can add?

Hmm, that's a good question. I'm not sure how to make an open() or close() call fail if that's what you mean, other than maybe some simple wrappers with #ifdef SPIEL_TEST in them or something.

andyholmes avatar Jun 08 '24 16:06 andyholmes

This looks like its still failing on tests. Do you want to rebse and give the PR another chance?

eeejay avatar Jul 22 '24 22:07 eeejay

Hmm, not sure why it's timing out, and I can't reproduce locally.

andyholmes avatar Jul 22 '24 23:07 andyholmes