evaluation G2 (cvs 2002114)

kvdb

Joined: 2002-10-10
Posts: 29
Posted: Thu, 2002-11-14 12:08

When configuring the NetPBM module, I saw some errors that I haven't seen in the previous CVS versions:

NetPBM binary test results
Binary Name Pass/Fail
jpegtopnm Passed

Error messages:

jpegtopnm: Using libpbm from Netpbm Version: Netpbm 9.20

jpegtopnm: Compiled Mon Apr 1 18:58:58 BST 2002 by user "steve"

jpegtopnm: BSD defined

jpegtopnm: RGB_ENV='RGBDEF'

jpegtopnm: RGBENV= 'RGBDEF' (env vbl is unset)

Anyway, they all pass but with these error messages.

--------

Moving on to the test harness..
I ran all tests. I now report the ones that failed.

Module core:
Constructor has problems:

Fatal error: Cannot instantiate non-existent class: galleryentity in /home/michel/public_html/gallery2/modules/core/test/TestCase/Constructor.class on line 15

CreateAndDeleteAlbumItem has problems:

Fatal error: Call to undefined function: setchildintermediatesize() in /home/michel/public_html/gallery2/modules/core/test/TestCase/CreateAndDeleteAlbumItem.class on line 42

CreatePhotoItem has problems:
Creating new photo item
Fatal error: Call to undefined function: setderivativefileextension() in /home/michel/public_html/gallery2/modules/core/test/TestCase/CreatePhotoItem.class on line 75

DeleteRandomAlbum has problems:
Test: core :: DeleteRandomAlbum [3 iteration(s)]
Timing: 34.4949 elapsed, 0.087 per second
Error: Error ()

* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1232
* in modules/core/classes/GalleryAlbumItem.class at line 201
* in modules/core/classes/Gallery.class at line 346
* in modules/core/classes/GalleryItem.class at line 611
* in modules/core/classes/GalleryAlbumItem.class at line 194
* in modules/core/classes/Gallery.class at line 346
* in modules/core/classes/GalleryItem.class at line 611
* in modules/core/classes/GalleryAlbumItem.class at line 194
* in modules/core/classes/Gallery.class at line 346
* in modules/core/classes/GalleryItem.class at line 611
* in modules/core/classes/GalleryAlbumItem.class at line 194
* in modules/core/test/TestCase/DeleteRandomAlbum.class at line 79
* in setup/test/TestCase.class at line 31
* in setup/test/index.php at line 200

DeleteAllItems:
Test: core :: DeleteAllItems [1 iteration(s)]
Timing: 10.8428 elapsed, 0.0922 per second
Error: Error ()

* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1232
* in modules/core/classes/GalleryAlbumItem.class at line 201
* in modules/core/classes/Gallery.class at line 346
* in modules/core/test/TestCase/DeleteAllItems.class at line 43
* in setup/test/TestCase.class at line 31
* in setup/test/index.php at line 200

Debug:

<<STRIP I don't know how many megabytes sql statements >>

I still have many items in my database...

-----------

I did a RemoveStore, then a CreateStore and got errors from CreateStore:
Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 238
* in modules/core/classes/Gallery.class at line 897
* in modules/core/module.inc at line 171
* in init.php at line 94
* in setup/test/index.php at line 24
* in setup/test/index.php at line 10

mysql error: [1049: Unknown database 'gallery2'] in PCONNECT(localhost, ?,
?, gallery2)

localhost: Unknown database 'gallery2'

Can't load core version -- assuming that the core needs installation
mysql error: [1049: Unknown database 'gallery2'] in PCONNECT(localhost, ?,
?, gallery2)

localhost: Unknown database 'gallery2'

--------

after this problem, I got this same error (shown above) no matter what other test harness test I would choose.
So this is where I stop testing and wait for another CVS update :smile:

Bharat and team, thanks again for the hours you put into G2!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2002-11-15 08:31

I made some fairly fundamental changes to G2 last night so it sounds like you're getting stung by those. I suggest that you drop your Gallery database by hand and remove all the gallery data files and then try everything again from scratch. Report back if you still have problems.

 
kvdb

Joined: 2002-10-10
Posts: 29
Posted: Fri, 2002-11-15 10:46

Hi,

I did just that. The test results were from that version that has this changelog
(just a fragment is shown:

Implemented WinNtPlatform. Tested under Windows (though I may have
broken plenty of Unix stuff in the process)

) So it is the latest.
Everytime I test I drop the database and the whole G2 directory (including the data directory) on my harddisk and get a fresh CVS.
So it is what you ask for.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-11-16 22:39

Ah, I misread your initial post. Sorry 'bout that.

I believe that I've fixed all of the bugs that you mentioned. Get the latest code and see if it's all better. Thanks!

 
kvdb

Joined: 2002-10-10
Posts: 29
Posted: Sat, 2002-11-16 23:22

Okay, here are the next test results.. using the CVS where README has just been updated:
Sat Nov 16 22:38:11 2002 UTC (43 minutes, 27 seconds ago) by bharat

-----
problem with CreateAndDeleteUser:
-----

Test: core :: CreateAndDeleteUser [1 iteration(s)]
Timing: 0.0299 elapsed, 33.3902 per second
Error: Error (ERROR_COLLISION)

* in modules/core/classes/GalleryUser.class at line 152
* in modules/core/test/TestCase/CreateAndDeleteUser.class at line 21
* in setup/test/TestCase.class at line 31
* in setup/test/index.php at line 200

Debug:

Create a new user

--------
this problem is still here. once I click removeStore and do a CreateStore test, this error comes up and this same error is what I get if i click back in the browser and click any other test.

Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 238
* in modules/core/classes/Gallery.class at line 897
* in modules/core/module.inc at line 171
* in init.php at line 94
* in setup/test/index.php at line 24
* in setup/test/index.php at line 10

mysql error: [1049: Unknown database 'gallery2'] in PCONNECT(localhost, ?,
?, gallery2)

localhost: Unknown database 'gallery2'

Can't load core version -- assuming that the core needs installation
mysql error: [1049: Unknown database 'gallery2'] in PCONNECT(localhost, ?,
?, gallery2)

localhost: Unknown database 'gallery2'

--------

The other errors are gone!

Cheers,
Kees

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-11-18 10:49
Quote:
Okay, here are the next test results.. using the CVS where README has just been updated:
Sat Nov 16 22:38:11 2002 UTC (43 minutes, 27 seconds ago) by bharat

-----
problem with CreateAndDeleteUser:
-----

Fixed!

Quote:
this problem is still here. once I click removeStore and do a CreateStore test, this error comes up and this same error is what I get if i click back in the browser and click any other test.

Short answer is, after doing a RemoveStore you have to re-run setup.php to get things back again. If you want to clean things out you can either do:

1. EmptyGallery, RemoveStore, setup.php (recommended)

or

2. ReInitializeGallery (fast, but not recommended)