When setting up a slave, I originally installed Ubuntu server 8.10. After installing, I installed the necessary additional software, etc. I also made sure that all installed packages were updated.

Hunmonk and I spent several hours trying to figure why every time the server tried to test a patch it would report that HEAD could not be installed. I added a debugging statement just before the return line in pifr_review_install() to print the $d object, and here is the output of all of the assertions:

    [db_prefix_original:protected] => 
    [original_file_directory:protected] => 
    [_results] => Array
        (
            [#pass] => 6
            [#fail] => 10
            [#exception] => 0
        )

    [_assertions] => Array
        (
            [0] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => pass
                    [message] => GET to http://amacrine.ophthal.northwestern.edu/checkout, response is 3713 bytes.
                    [message_group] => Browser
                    [function] => pifr_review_install()
                    [line] => 225
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [1] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => pass
                    [message] => GET to http://amacrine.ophthal.northwestern.edu/checkout/install.php?profile=default&locale=en, response is 5973 bytes.
                    [message_group] => Browser
                    [function] => pifr_review_install()
                    [line] => 225
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [2] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => pass
                    [message] => Valid HTML found on "http://amacrine.ophthal.northwestern.edu/checkout/install.php?profile=default&locale=en"
                    [message_group] => Browser
                    [function] => pifr_review_install()
                    [line] => 225
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [3] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => pass
                    [message] => POST to http://amacrine.ophthal.northwestern.edu/checkout/install.php?profile=default&locale=en, response is 5973 bytes.
                    [message_group] => Browser
                    [function] => pifr_review_install()
                    [line] => 233
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [4] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => pass
                    [message] => Valid HTML found on "http://amacrine.ophthal.northwestern.edu/checkout/install.php?profile=default&locale=en"
                    [message_group] => Browser
                    [function] => pifr_review_install()
                    [line] => 233
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [5] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => Failed to set field site_name to checkout
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [6] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => Failed to set field site_mail to admin@example.com
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [7] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => Failed to set field account[name] to admin
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [8] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => Failed to set field account[mail] to admin@example.com
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [9] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => Failed to set field account[pass][pass1] to simpletest_gWOlRExCVvxd
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [10] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => Failed to set field account[pass][pass2] to simpletest_gWOlRExCVvxd
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [11] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => Failed to set field clean_url to 0
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [12] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => Failed to set field update_status_module[1] to 
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [13] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => pass
                    [message] => Found the Save and continue button
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [14] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => Found the requested form fields at 
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 245
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

            [15] => Array
                (
                    [test_id] => 
                    [test_class] => DrupalWebTestCase
                    [status] => fail
                    [message] => "Drupal installation complete" found
                    [message_group] => Other
                    [function] => pifr_review_install()
                    [line] => 251
                    [file] => /var/www/amacrine.ophthal.northwestern.edu/public/sites/all/modules/project_issue_file_review/pifr.review.inc
                )

The tests that are failing are the ones for entering the site information (name, email, admin account, etc.). This page is the page after the form where you enter the database credentials.

If, after simpletest failed to get HEAD installed, I went to the same URL via my browser, I was able to provide the database credentials and then go on and properly install the site. I tried printing $db, $user, and $pass at the top of the function and those values were all correct.

I'm not familiar enough with simpletest to figure out exactly what is happening.

In an attempt to fix the problem, I reinstalled, but this time used Ubuntu 8.04.1 server LTS. I then installed the additional pieces of software as before. This time, I was able to get the test server all set up without problems. All code in the webroot (including all drupal code) was identical to the code I was using on 8.10, as I copied that to a different server before reinstalling.

My guess is that the problem was caused by either a different PHP version in 8.10 (I think it was using 5.2.6, whereas 8.04 is using 5.2.4, but it might instead be CURL or something else that simpletest uses.

It would be good to figure out where the problem is, because this was quite difficult to troubleshoot and it would be nice if Ubuntu 8.10 could be used.

I still have one potential test bot that has 8.10 on it, and though I haven't yet confirmed that it won't test successfully, I'm pretty sure it won't, since the software install should be essentially identical. If you have specific things that you want me to test, or need the specific version of some of the software in use, let me know.

Comments

boombatower’s picture

This sounds like might be SimpleTest issue, otherwise as you said cURL. If so we should move this issue to D7 core SimpleTest queue.

aclight’s picture

It could very well be a simpletest issue. However, I also tried enabling the simpletest module on the HEAD checkout site (after I manually provided the db info and other settings to get the site installed). I then ran all available tests and they all passed with no exceptions nor failures. So if this issue is moved into the core queue I suspect we'll get a lot of people who can't reproduce the problem, since the only tests that seem to be failing are the special ones in PIFR.

However, if we can actually figure out what the problem is with the PIFR tests, and if they are isolated to simpletest or curl, then I think we can move this to the core queue.

boombatower’s picture

Status: Active » Closed (fixed)

If an issue on current Ubuntu please re-open.