datahub icon indicating copy to clipboard operation
datahub copied to clipboard

Circle CI bug: database creating/dropping issue between commits

Open yichaoS opened this issue 2 years ago • 1 comments

Validation error in PR https://github.com/cBioPortal/datahub/pull/1613

In Circle CI test server local database, the row with value null in info table, possibly from one of earlier seedDB.sql.gz commits, didn't get dropped after a later commit with a new seedDB.sql.gz. Thus there are two rows in Circle CI DB info table, which causes a validation error.

In seedDB.sql.gz Screen Shot 2022-02-28 at 4 29 23 PM

In Circle CI DB image

Validation error Screen Shot 2022-03-01 at 3 23 05 PM

yichaoS avatar Mar 01 '22 20:03 yichaoS

The temporary solution we have for now, for seedDB release is:

Manually change the just created seedDB dumped sql file to fix gene set version validation error.o remove duplicate records in info table when importing cgds.sql and then seedDB.sql Change line INSERT INTO info VALUES ('2.XX.XX','msigdb_XXXX'); into UPDATE info SET GENESET_VERSION="msigdb_XXX";

yichaoS avatar May 24 '22 19:05 yichaoS