Skip to contentSkip to conversation

tests/tpm-emu: double the timeout

RFC In review Alex Bennée 2 participants 5 messages Jul 6, 2018

lore
Share & tools
lore
#0 lore raw

RFC 1/1 tests/tpm-emu: double the timeout

We see various failures on Travis so lets just double the timeout and see if that makes them go away.

---
 tests/tpm-emu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tpm-emu.c +1 -1
index 8c2bd53cad..308f1884f6 100644
@@ -20,7 +20,7 @@
 
 void tpm_emu_test_wait_cond(TestState *s)
 {
-    gint64 end_time = g_get_monotonic_time() + 5 * G_TIME_SPAN_SECOND;
+    gint64 end_time = g_get_monotonic_time() + 10 * G_TIME_SPAN_SECOND;
 
     g_mutex_lock(&s->data_mutex);
     if (!g_cond_wait_until(&s->data_cond, &s->data_mutex, end_time)) {
Signature · 1 line
2.17.1
#1 lore raw

Hi

Quoted 2 lines · Alex Bennée

We see various failures on Travis so lets just double the timeout and see if that makes them go away.

This is just waiting for the thread to start and open a socket. It shouldn't be a problem to wait longer, but do you have a Travis error log?

Quoted 23 lines
---
 tests/tpm-emu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tpm-emu.c +1 -2
index 8c2bd53cad..308f1884f6 100644
@@ -20,7 +20,7 @@
 
 void tpm_emu_test_wait_cond(TestState *s)
 {
-    gint64 end_time = g_get_monotonic_time() + 5 * G_TIME_SPAN_SECOND;
+    gint64 end_time = g_get_monotonic_time() + 10 * G_TIME_SPAN_SECOND;
 
     g_mutex_lock(&s->data_mutex);
     if (!g_cond_wait_until(&s->data_cond, &s->data_mutex, end_time)) {
--

2.17.1

Signature · 1 line
Marc-André Lureau
#2 lore raw
Quoted 9 lines · Marc-André Lureau

Hi

Quoted 2 lines · Alex Bennée

We see various failures on Travis so lets just double the timeout and see if that makes them go away.

This is just waiting for the thread to start and open a socket. It shouldn't be a problem to wait longer, but do you have a Travis error log?

For example:

https://travis-ci.org/qemu/qemu/jobs/400436724#L8971

GTESTER check-qtest-i386
**
ERROR:tests/tpm-emu.c:27:tpm_emu_test_wait_cond: code should not be reached

Quoted 18 lines
Quoted 18 lines
---
 tests/tpm-emu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tpm-emu.c +1 -1
index 8c2bd53cad..308f1884f6 100644
@@ -20,7 +20,7 @@
 
 void tpm_emu_test_wait_cond(TestState *s)
 {
-    gint64 end_time = g_get_monotonic_time() + 5 * G_TIME_SPAN_SECOND;
+    gint64 end_time = g_get_monotonic_time() + 10 * G_TIME_SPAN_SECOND;
 
Quoted 6 lines
Quoted 6 lines
tests/tpm-emu.c +0 -1
     g_mutex_lock(&s->data_mutex);
     if (!g_cond_wait_until(&s->data_cond, &s->data_mutex, end_time)) {
--

2.17.1

--
Alex Bennée

#3 lore raw
Quoted 13 lines · Alex Bennée
Quoted 9 lines · Marc-André Lureau

Hi

Quoted 2 lines · Alex Bennée

We see various failures on Travis so lets just double the timeout and see if that makes them go away.

This is just waiting for the thread to start and open a socket. It shouldn't be a problem to wait longer, but do you have a Travis error log?

Quoted 8 lines

For example:

https://travis-ci.org/qemu/qemu/jobs/400436724#L8971

GTESTER check-qtest-i386
**
ERROR:tests/tpm-emu.c:27:tpm_emu_test_wait_cond: code should not be reached

thanks, what about increasing the timeout to 30s ? I am afraid x2 might not be enough for such overloaded systems.

Quoted 27 lines
Quoted 17 lines
Quoted 17 lines
---
 tests/tpm-emu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tpm-emu.c +1 -1
index 8c2bd53cad..308f1884f6 100644
@@ -20,7 +20,7 @@
 
 void tpm_emu_test_wait_cond(TestState *s)
 {
-    gint64 end_time = g_get_monotonic_time() + 5 * G_TIME_SPAN_SECOND;
+    gint64 end_time = g_get_monotonic_time() + 10 * G_TIME_SPAN_SECOND;
 
Quoted 6 lines
Quoted 6 lines
tests/tpm-emu.c +0 -1
     g_mutex_lock(&s->data_mutex);
     if (!g_cond_wait_until(&s->data_cond, &s->data_mutex, end_time)) {
--

2.17.1

--
Alex Bennée

Signature · 1 line
Marc-André Lureau
#4 lore raw
Quoted 18 lines · Marc-André Lureau
Quoted 17 lines · Alex Bennée
Quoted 9 lines · Marc-André Lureau

Hi

Quoted 2 lines · Alex Bennée

We see various failures on Travis so lets just double the timeout and see if that makes them go away.

This is just waiting for the thread to start and open a socket. It shouldn't be a problem to wait longer, but do you have a Travis error log?

For example:

https://travis-ci.org/qemu/qemu/jobs/400436724#L8971

Quoted 7 lines
Quoted 4 lines

GTESTER check-qtest-i386
**
ERROR:tests/tpm-emu.c:27:tpm_emu_test_wait_cond: code should not be reached

thanks, what about increasing the timeout to 30s ? I am afraid x2 might not be enough for such overloaded systems.

Sure - the Travis servers are certainly hammered most of the time.

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
---
 tests/tpm-emu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tpm-emu.c +1 -1
index 8c2bd53cad..308f1884f6 100644
@@ -20,7 +20,7 @@
 
 void tpm_emu_test_wait_cond(TestState *s)
 {
-    gint64 end_time = g_get_monotonic_time() + 5 * G_TIME_SPAN_SECOND;
+    gint64 end_time = g_get_monotonic_time() + 10 * G_TIME_SPAN_SECOND;
 
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
tests/tpm-emu.c +0 -1
     g_mutex_lock(&s->data_mutex);
     if (!g_cond_wait_until(&s->data_cond, &s->data_mutex, end_time)) {
--

2.17.1

--
Alex Bennée

--
Alex Bennée