Обсуждение: SQLAlchemy updates for check tables.

Поиск
Список
Период
Сортировка

SQLAlchemy updates for check tables.

От
Nikhil Mohite
Дата:
Hi Hackers,

Please find the attached patch for SQLAlchemy updates for check table is present in the database or not. (This will resolve load and dump server.)

--
Thanks & Regards,
Nikhil Mohite
Software Engineer.
Mob.No: +91-7798364578.
Вложения

Re: SQLAlchemy updates for check tables.

От
Akshay Joshi
Дата:
Hi Nikhil

On Mon, Jul 19, 2021 at 11:07 AM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Hackers,

Please find the attached patch for SQLAlchemy updates for check table is present in the database or not. (This will resolve load and dump server.)

    I am assuming the changes should work with the old version of  SQLAlchemy. If not please fix and resend the patch

--
Thanks & Regards,
Nikhil Mohite
Software Engineer.
Mob.No: +91-7798364578.


--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Principal Software Architect
EDB Postgres
Mobile: +91 976-788-8246

Re: SQLAlchemy updates for check tables.

От
Nikhil Mohite
Дата:
Hi Akshay,

PFA updated the patch to make it work with an older version of SQLAlchemy.

On Mon, Jul 19, 2021 at 11:36 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Hi Nikhil

On Mon, Jul 19, 2021 at 11:07 AM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Hackers,

Please find the attached patch for SQLAlchemy updates for check table is present in the database or not. (This will resolve load and dump server.)

    I am assuming the changes should work with the old version of  SQLAlchemy. If not please fix and resend the patch

--
Thanks & Regards,
Nikhil Mohite
Software Engineer.
Mob.No: +91-7798364578.


--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Principal Software Architect
EDB Postgres
Mobile: +91 976-788-8246


Regards,
Nikhil Mohite 
Вложения

Re: SQLAlchemy updates for check tables.

От
Akshay Joshi
Дата:
Thanks, the patch applied.

On Mon, Jul 19, 2021 at 11:45 AM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Akshay,

PFA updated the patch to make it work with an older version of SQLAlchemy.

On Mon, Jul 19, 2021 at 11:36 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Hi Nikhil

On Mon, Jul 19, 2021 at 11:07 AM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Hackers,

Please find the attached patch for SQLAlchemy updates for check table is present in the database or not. (This will resolve load and dump server.)

    I am assuming the changes should work with the old version of  SQLAlchemy. If not please fix and resend the patch

--
Thanks & Regards,
Nikhil Mohite
Software Engineer.
Mob.No: +91-7798364578.


--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Principal Software Architect
EDB Postgres
Mobile: +91 976-788-8246


Regards,
Nikhil Mohite 


--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Principal Software Architect
EDB Postgres
Mobile: +91 976-788-8246

Re: SQLAlchemy updates for check tables.

От
Dave Page
Дата:
Hi

On Mon, Jul 19, 2021 at 6:37 AM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Hackers,

Please find the attached patch for SQLAlchemy updates for check table is present in the database or not. (This will resolve load and dump server.)

How come this upstream change didn't fail the regression tests? 

--

Re: SQLAlchemy updates for check tables.

От
Khushboo Vashi
Дата:


On Mon, Jul 19, 2021 at 2:17 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Mon, Jul 19, 2021 at 6:37 AM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Hackers,

Please find the attached patch for SQLAlchemy updates for check table is present in the database or not. (This will resolve load and dump server.)

How come this upstream change didn't fail the regression tests? 
Flask-SQLAlchemy is dependent on SQLAlchemy and which is an indirect dependency of pgAdmin, so if the installed version of Flask-SQLAlchemy is the latest one, it will be skipped.
 
--

Re: SQLAlchemy updates for check tables.

От
Dave Page
Дата:


On Mon, Jul 19, 2021 at 9:58 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Mon, Jul 19, 2021 at 2:17 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Mon, Jul 19, 2021 at 6:37 AM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Hackers,

Please find the attached patch for SQLAlchemy updates for check table is present in the database or not. (This will resolve load and dump server.)

How come this upstream change didn't fail the regression tests? 
Flask-SQLAlchemy is dependent on SQLAlchemy and which is an indirect dependency of pgAdmin, so if the installed version of Flask-SQLAlchemy is the latest one, it will be skipped.

Sure, but the regression test runs on the buildfarm build the venv from scratch on every run (as happens when we build the packages themselves). So I can see why local regression runs might have passed (as developers generally don't recreate their venv's from scratch before testing), but I would expect to have seen failures on the buildfarm. 

--

Re: SQLAlchemy updates for check tables.

От
Khushboo Vashi
Дата:


On Mon, Jul 19, 2021 at 3:14 PM Dave Page <dpage@pgadmin.org> wrote:


On Mon, Jul 19, 2021 at 9:58 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Mon, Jul 19, 2021 at 2:17 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Mon, Jul 19, 2021 at 6:37 AM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Hackers,

Please find the attached patch for SQLAlchemy updates for check table is present in the database or not. (This will resolve load and dump server.)

How come this upstream change didn't fail the regression tests? 
Flask-SQLAlchemy is dependent on SQLAlchemy and which is an indirect dependency of pgAdmin, so if the installed version of Flask-SQLAlchemy is the latest one, it will be skipped.

Sure, but the regression test runs on the buildfarm build the venv from scratch on every run (as happens when we build the packages themselves). So I can see why local regression runs might have passed (as developers generally don't recreate their venv's from scratch before testing), but I would expect to have seen failures on the buildfarm. 

The reason for not failing the test cases is, the old version of SQLAlchemy is being installed as a Flask-Migration dependency through the requirements.txt file. So, if we explicitly install Flask-SQLAlchemy, then only this issue is reproducible.
--

Re: SQLAlchemy updates for check tables.

От
Dave Page
Дата:


On Tue, Jul 20, 2021 at 12:15 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Mon, Jul 19, 2021 at 3:14 PM Dave Page <dpage@pgadmin.org> wrote:


On Mon, Jul 19, 2021 at 9:58 AM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Mon, Jul 19, 2021 at 2:17 PM Dave Page <dpage@pgadmin.org> wrote:
Hi

On Mon, Jul 19, 2021 at 6:37 AM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Hackers,

Please find the attached patch for SQLAlchemy updates for check table is present in the database or not. (This will resolve load and dump server.)

How come this upstream change didn't fail the regression tests? 
Flask-SQLAlchemy is dependent on SQLAlchemy and which is an indirect dependency of pgAdmin, so if the installed version of Flask-SQLAlchemy is the latest one, it will be skipped.

Sure, but the regression test runs on the buildfarm build the venv from scratch on every run (as happens when we build the packages themselves). So I can see why local regression runs might have passed (as developers generally don't recreate their venv's from scratch before testing), but I would expect to have seen failures on the buildfarm. 

The reason for not failing the test cases is, the old version of SQLAlchemy is being installed as a Flask-Migration dependency through the requirements.txt file. So, if we explicitly install Flask-SQLAlchemy, then only this issue is reproducible.

OK, so how did an installed copy of pgAdmin on a user machine get into that state?
 
--