Re: [patch] Test dependencies and screenshots

From: Joao Pedro De Almeida Pereira <jpereira(at)pivotal(dot)io>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Atira Odhner <aodhner(at)pivotal(dot)io>
Subject: Re: [patch] Test dependencies and screenshots
Date: 2017-03-02 22:05:43
Message-ID: CAE+jjakqwDoQHtxekB9LYfSg_CXg4_g4u8Cq=nakEhdo3bfuHg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,
We adjusted the patches to correct the issues that you mentioned

Improves screenshots and reduces test flakiness

- rename screenshot files to add python version
- put screenshots into separate pg version folders

Thanks
Joao & Tira & Sarah

On Thu, Mar 2, 2017 at 5:15 AM, Dave Page <dpage(at)pgadmin(dot)org> wrote:

> Hi
>
> On Wed, Mar 1, 2017 at 9:34 PM, Joao Pedro De Almeida Pereira
> <jpereira(at)pivotal(dot)io> wrote:
> > Hi Hackers
> >
> > We noticed that the feature test dependencies were removed in a recent
> > patch, so we added them back.
>
> They were intentionally moved - see:
>
> https://www.postgresql.org/message-id/CA%2BOCxoxz8ZPsWBvEhSnMfq%3DW3QX-
> TaeXN9O9Gwbb%2Bf58X-9GQg%40mail.gmail.com
>
> and
>
> https://git.postgresql.org/gitweb/?p=pgadmin4.git;a=commit;h=
> 1e5de7e66e7e578a7803087389d18102e0f5d945
>
> > We also now create a screenshot with a
> > timestamp when tests fail. This should help with debugging issues in CI.
>
> Nice! There are a couple of minor issues though:
>
> - The screenshots are saving with names like:
> TemplateSelectionFeatureTest-2017-03-02 10/06/24.253843.png. Can you
> please:
>
> * Change the / to a . or similar? Having forward slashes in
> filenames is likely to be painful (the space should probably be
> changed to an _ as well).
> * Store the screenshots in a sub-directory named for the server
> that's currently being tested? That'll make it much easier to
> associate a screenshot with the right server in multi-server runs
> (each of my runs currently tests against 10 different servers for
> example).
>
> - I modified the ConnectToServer test to induce a failure. When I ran
> the tests (on macOS Sierra, with Python 2.7) the testsuite took
> screenshots for every test, not just the ones that failed. We should
> only store them for tests that actually did fail.
>
> Thanks, Dave.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

--
Thanks
Joao

Attachment Content-Type Size
0001-Take-screenshots-all-of-the-time-in-feature-tests.patch application/octet-stream 3.7 KB
0002-Create-screenshot-with-timestamp-when-tests-fail.patch application/octet-stream 4.1 KB
0003-Improves-screenshots-and-reduces-test-flakiness.patch application/octet-stream 7.2 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Neel Patel 2017-03-03 09:25:58 [pgAdmin4][patch]: RM #1796 - Added 'Run now' option to run pgAgent Job
Previous Message Atira Odhner 2017-03-02 18:11:55 [discussion] Javascript package management (Yarn?)