pgAdmin4: Random failure of FTS test cases due to improper random string creation

From: Navnath Gadakh <navnath(dot)gadakh(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Cc: Kanchan Mohitey <kanchan(dot)mohitey(at)enterprisedb(dot)com>
Subject: pgAdmin4: Random failure of FTS test cases due to improper random string creation
Date: 2017-08-11 07:54:16
Message-ID: CAOAJCYpsJGRqTkbnScpY567xVexZ7odRLyvLAC2WQFBoHQDMDw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Dave,

Please find the attached patch for UUID creation issues with test
objects for FTS configurations, FTS dictionaries and FTS parsers.
Previously(refer email with subject "Build failed in Jenkins:
pgadmin4-master-python27 #279" and "Build failed in Jenkins:
pgadmin4-master-python33 #207"), test cases were randomly failing due to
repetitions of the test object names.

In the old code we used some part of the string for creating a UUID string,
but it seems that at some point that created string gets repeated and due
to which test cases were failing as this was a random behavior, now it is
fixed.

Thanks.

--
Regards,
Navnath Gadakh

EnterpriseDB Corporation
The Enterprise PostgreSQL Company

Attachment Content-Type Size
random_string_creation_issue_v1.patch application/octet-stream 150.7 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Navnath Gadakh 2017-08-11 10:28:04 Re: pgAdmin4: Random failure of FTS test cases due to improper random string creation
Previous Message Surinder Kumar 2017-08-11 07:05:02 [pgAdmin4][Patch]: RM_2646 - Spinner icon not found error when a server node is connected