Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFcn5-0005QK-2l for pgadmin-hackers@arkaria.postgresql.org; Tue, 30 May 2017 08:46:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFcn4-0002k8-LL for pgadmin-hackers@arkaria.postgresql.org; Tue, 30 May 2017 08:46:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFcmp-0002Km-Ux for pgadmin-hackers@postgresql.org; Tue, 30 May 2017 08:45:56 +0000 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dFcml-0003NA-Mt for pgadmin-hackers@postgresql.org; Tue, 30 May 2017 08:45:55 +0000 Received: by mail-it0-x236.google.com with SMTP id o5so37821863ith.1 for ; Tue, 30 May 2017 01:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3IV8kSTnlsak5uyuXnFkI5dkYchkPzHsYyNcqCrJNLY=; b=fBlVKth1JJXJczpLI/G5bpzJVT4o7/6eZq8JFm5ztUEVBXsj/yTvW5VIOBIaZJqbre /cRtkJcCNhmTMG+JNR+i3ElBUAzqFi6Y0uLb/Zcd01zBlMV3VF2Kqni3uVFejWArUrn+ elxo/GYfJu759ivIrFZP8ldvYlaU+itMJ6p4feYKpIo7fX297+9u0Sqbt4ao0LsTF2dC /EgH2pwu7efh/Glj9lHk0tOflKCc6vOOxCIs+ujh0C/3jBx/J2QYPtSNOQZUrJUpHMjx Mi9eTAEXWTszJIAuxNLyKNESt3MPgoerHywR8DbpaS/DaFpAdK0WGfSIaa8rXvS0mIUL OkbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3IV8kSTnlsak5uyuXnFkI5dkYchkPzHsYyNcqCrJNLY=; b=nrSxpynQfavNuUggfxMYU2YYNFSuEpb8QaCd1LAp/lJVDZ9rAPN9EPJbpAC7PxiRh3 8J938EOnWd9lbJC0oPI1+2IJ387F/T2+IAW+0KZA7EcsBkO15jFpCjcXAjl/G6brIMhA CaujJkCPvIXUaTMfCqcj+c01ff51DzMcyio1/34IjVkyL8p3XoTLEyEMPB4c4JJlDwxf PpAbakE7CQafQX4W5CJl8nYvDOXDgt9whAiyAlm6ZIbTA/5g6Y7uWRz2aWKXvU20evB0 RqyvE4KxI/ZjILyp2DuA/BNQ/7B1YfCgJ5QllpAcyeAB0nirXjmP93gzTUe3JFBTe4C4 N1pA== X-Gm-Message-State: AODbwcDRY9NE11iyDA3qfXs2zECnQY0yDibzYt0Q5+N1uF289MDXxRZq ZZ3MTHaqGcDWtq49AsFvyAG3hMFbdxVF X-Received: by 10.36.74.3 with SMTP id k3mr826448itb.28.1496133949534; Tue, 30 May 2017 01:45:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.174.147 with HTTP; Tue, 30 May 2017 01:45:48 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Tue, 30 May 2017 09:45:48 +0100 Message-ID: Subject: Re: feature test timeouts To: Murtuza Zabuawala Cc: George Gelashvili , pgadmin-hackers Content-Type: text/plain; charset="UTF-8" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi OK. Do you know why? What's it waiting for? It was working for me (I always run tests multiple times before committing them, to try to ensure they're reliable). On Mon, May 29, 2017 at 7:23 AM, Murtuza Zabuawala wrote: > Hi Dave, > > With latest pull, PG data-type test fails on my system, > > ====================================================================== > ERROR: runTest > (pgadmin.feature_tests.pg_datatype_validation_test.PGDataypeFeatureTest) > Test checks for PG data-types output > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/Users/edb/Documents/projects/pgadmin4/web/pgadmin/feature_tests/pg_datatype_validation_test.py", > line 44, in runTest > self._check_datatype() > File > "/Users/edb/Documents/projects/pgadmin4/web/pgadmin/feature_tests/pg_datatype_validation_test.py", > line 97, in _check_datatype > self.page.fill_codemirror_area_with(query) > File > "/Users/edb/Documents/projects/pgadmin4/web/regression/feature_utils/pgadmin_page.py", > line 122, in fill_codemirror_area_with > > "//pre[contains(@class,'CodeMirror-line')]/../../../*[contains(@class,'CodeMirror-code')]").click() > File > "/Users/edb/Documents/projects/pgadmin4/web/regression/feature_utils/pgadmin_page.py", > line 87, in find_by_xpath > return self.wait_for_element(lambda driver: > driver.find_element_by_xpath(xpath)) > File > "/Users/edb/Documents/projects/pgadmin4/web/regression/feature_utils/pgadmin_page.py", > line 152, in wait_for_element > return self._wait_for("element to exist", element_if_it_exists) > File > "/Users/edb/Documents/projects/pgadmin4/web/regression/feature_utils/pgadmin_page.py", > line 188, in _wait_for > "Timed out waiting for " + waiting_for_message) > File > "/Users/edb/Documents/projects/venv_pg4/lib/python3.5/site-packages/selenium/webdriver/support/wait.py", > line 80, in until > raise TimeoutException(message, screen, stacktrace) > selenium.common.exceptions.TimeoutException: Message: Timed out waiting for > element to exist > > > ---------------------------------------------------------------------- > Ran 6 tests in 170.026s > > FAILED (errors=1) > > ====================================================================== > Test Result Summary > ====================================================================== > > PG_95: > > 5 tests passed > 1 test failed: > PGDataypeFeatureTest (Test checks for PG data-types output) > 0 tests skipped > > ====================================================================== > > Please check output in file: > /Users/edb/Documents/projects/pgadmin4/web/regression/regression.log > > > -- > Regards, > Murtuza Zabuawala > EnterpriseDB: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > > On Sat, May 27, 2017 at 11:47 PM, Dave Page wrote: >> >> Thanks, patch applied. >> >> On Fri, May 26, 2017 at 6:26 PM, George Gelashvili >> wrote: >> > Hello Hackers, >> > >> > We are running tests including feature tests in Circle CI, and have been >> > seeing some flakiness due to what we believe are insufficient wait-for >> > timeouts. >> > >> > This shouldn't increase the overall test time, but only allow waiting >> > longer >> > for an element to appear, if needed. >> > >> > We've also split out the app start timeout since that seemed to need >> > more >> > time on CI. >> > >> > Patch attached. >> > >> > Thanks! >> > Joao, Matt, and George >> > >> > >> > -- >> > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) >> > To make changes to your subscription: >> > http://www.postgresql.org/mailpref/pgadmin-hackers >> > >> >> >> >> -- >> Dave Page >> Blog: http://pgsnake.blogspot.com >> Twitter: @pgsnake >> >> EnterpriseDB UK: http://www.enterprisedb.com >> The Enterprise PostgreSQL Company >> >> >> -- >> Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgadmin-hackers > > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers