All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH testsuite] tests/sctp: bump connect timeout to 4 seconds
@ 2020-08-27  8:11 Ondrej Mosnacek
  2020-08-31 14:13 ` Stephen Smalley
  0 siblings, 1 reply; 3+ messages in thread
From: Ondrej Mosnacek @ 2020-08-27  8:11 UTC (permalink / raw)
  To: selinux

The current value of 2 seconds causes transient failures too often in
certain slow/unstable environments (including the nested KVM Travis CI
setup). Our experience from downstream testing at Red Hat (across a
variety of HW and architectures) has shown that a value of 4 seconds
yields only very sporadic failures.

Therefore, change the value to 4 to trade off some testing time for more
stability.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
---
 tests/sctp/sctp_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sctp/sctp_client.c b/tests/sctp/sctp_client.c
index 595da75..2f527ed 100644
--- a/tests/sctp/sctp_client.c
+++ b/tests/sctp/sctp_client.c
@@ -99,7 +99,7 @@ int main(int argc, char **argv)
 	 *    EAGAIN - Resource temporarily unavailable - SOCK_SEQPACKET
 	 *        Uses SO_RCVTIMEO when NO connects are called.
 	 */
-	tm.tv_sec = 2;
+	tm.tv_sec = 4;
 	tm.tv_usec = 0;
 	result = setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, &tm, sizeof(tm));
 	if (result < 0) {
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH testsuite] tests/sctp: bump connect timeout to 4 seconds
  2020-08-27  8:11 [PATCH testsuite] tests/sctp: bump connect timeout to 4 seconds Ondrej Mosnacek
@ 2020-08-31 14:13 ` Stephen Smalley
  2020-09-03 15:13   ` Ondrej Mosnacek
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Smalley @ 2020-08-31 14:13 UTC (permalink / raw)
  To: Ondrej Mosnacek; +Cc: SElinux list

On Thu, Aug 27, 2020 at 4:11 AM Ondrej Mosnacek <omosnace@redhat.com> wrote:
>
> The current value of 2 seconds causes transient failures too often in
> certain slow/unstable environments (including the nested KVM Travis CI
> setup). Our experience from downstream testing at Red Hat (across a
> variety of HW and architectures) has shown that a value of 4 seconds
> yields only very sporadic failures.
>
> Therefore, change the value to 4 to trade off some testing time for more
> stability.
>
> Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>

As much as I dislike relying on timeouts and making the testsuite even
slower, I don't have any better solution.

Acked-by:  Stephen Smalley <stephen.smalley.work@gmail.com>
(feel free to merge it yourself)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH testsuite] tests/sctp: bump connect timeout to 4 seconds
  2020-08-31 14:13 ` Stephen Smalley
@ 2020-09-03 15:13   ` Ondrej Mosnacek
  0 siblings, 0 replies; 3+ messages in thread
From: Ondrej Mosnacek @ 2020-09-03 15:13 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: SElinux list

On Mon, Aug 31, 2020 at 4:13 PM Stephen Smalley
<stephen.smalley.work@gmail.com> wrote:
>
> On Thu, Aug 27, 2020 at 4:11 AM Ondrej Mosnacek <omosnace@redhat.com> wrote:
> >
> > The current value of 2 seconds causes transient failures too often in
> > certain slow/unstable environments (including the nested KVM Travis CI
> > setup). Our experience from downstream testing at Red Hat (across a
> > variety of HW and architectures) has shown that a value of 4 seconds
> > yields only very sporadic failures.
> >
> > Therefore, change the value to 4 to trade off some testing time for more
> > stability.
> >
> > Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
>
> As much as I dislike relying on timeouts and making the testsuite even
> slower, I don't have any better solution.
>
> Acked-by:  Stephen Smalley <stephen.smalley.work@gmail.com>
> (feel free to merge it yourself)

Thanks, merged.

-- 
Ondrej Mosnacek
Software Engineer, Platform Security - SELinux kernel
Red Hat, Inc.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-03 15:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-27  8:11 [PATCH testsuite] tests/sctp: bump connect timeout to 4 seconds Ondrej Mosnacek
2020-08-31 14:13 ` Stephen Smalley
2020-09-03 15:13   ` Ondrej Mosnacek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.