There's work being done in #346494: DB drivers need to be able to change the configure database form during install to allow driver to define their own options. This has resulted in a change to the structure of the database install form, which breaks PIFR.

From catch @ http://drupal.org/node/346494#comment-3710472:

This is going to need a patch against pifr/pift to change the installation code most likely, along with simultaneous commits/deployment to save the test bot being broken.

Comments

duellj’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

Seems like it would be a simple fix of changing the post values in pifr_client_review_pifr_simpletest->install()

dalin’s picture

StatusFileSize
new1023 bytes

@duellj It looks like you're patching against an old version. I can't find PIFR_CLIENT_DB anywhere in the project. So I used $edit['driver'].

dalin’s picture

Assigned: Unassigned » dalin
Status: Needs review » Needs work

I guess we could very easily handle things gracefully so that this patch can be committed without breaking testing, then #346494: DB drivers need to be able to change the configure database form during install can be committed without breaking testing.

boombatower’s picture

Probably need to apply as hotfix to 2.2 instead of HEAD since the workers all run that.

duellj’s picture

Thanks dalin, I was actually patching against a newer version. The patch in #2 applies fine against 2.2

boombatower’s picture

Lets re-roll the patch per #2 so handle things gracefully and then commit a final change (without grace) to HEAD.

dalin’s picture

Status: Needs work » Needs review
StatusFileSize
new1.18 KB
new1.15 KB

@duellj I'm not sure I follow. Your patch is against pifr_simpletest.client.inc,v 1.7 whereas the 6--2-2 version is pifr_simpletest.client.inc,v 1.39. Also the 6--2-2 pifr_simpletest.client.inc does not install Drupal, but allows the parent class to do that. So unless I'm missing something we should be patching pifr_drupal.client.inc,v 1.9 in 6--2-2.

Patches against 6--2-2 and HEAD are attached that should gracefully handle both before and after #346494: DB drivers need to be able to change the configure database form during install.

dalin’s picture

And by graceful I meant explosive fail. Apparently you can't just dump stuff into $edit that isn't actually in the form.

Here's patches that use xpath to determine which version to use. I can't actually get PIFR to run locally, so these should be tested.

dalin’s picture

Assigned: dalin » Unassigned
dalin’s picture

Priority: Normal » Critical

Upping this to critical since it is blocking the resolution of a critical core issue.

duellj’s picture

dalin, thanks for taking this over. The patch in #1 was against the 7.x branch, which I didn't realize isn't being run on qa.d.o. The patch in #8 looks great, but I can't get PIFR to run locally either, so I can't properly test it.

boombatower’s picture

no idea where the 7x. branch came form...i've noticed it on a number of projects that don't actually have any 7.x code...must be something messed up with cvs. Working on getting this deployed, but those involve don't like to get back to me.

boombatower’s picture

Waiting on either #976834: Convert qa.drupal.org to bzr which will allow full update, or access to hotfix the current clients.

damien tournoud’s picture

Updated the drupaltestbot deployment package with the patch from #8:

https://github.com/damz/drupaltestbot/commit/36518594239e8fe448d63201312...

Pushed the package on #32. Waiting for rfay to wake up for #504.

damien tournoud’s picture

#504 is now updated too.

rfay’s picture

Updated #504 and sent an email to the other testbot managers requesting the same. This is the puppet-managed upgrade procedure DamZ specified:

apt-get update
apt-get upgrade (Say "Yes" when it asks if you want to reconfigure the db. It's OK)
puppetd --test --server puppet.damz.org

reboot

Submit testbot for retesting on qa.drupal.org.

damien tournoud’s picture

StatusFileSize
new1.58 KB

Testing patches is overrated apparently. Next time, test a patch before whining about deploying it to the test clients.

pfrenssen’s picture

I updated testbot #414 but get division by zero errors: http://qa.drupal.org/pifr/test/91739

I'll try a retest.

deekayen’s picture

boombatower’s picture

StatusFileSize
new1.04 KB

Once the core issue has been resolved I will commit the following or something like it to HEAD.

@DamZ Sorry about this mess. I thought patch had been tested and I had updated scratch qa.d.o and tested HEAD pifr, but forgot I had not committed. :)

dalin’s picture

Status: Needs review » Closed (fixed)
rfay’s picture

Status: Closed (fixed) » Needs review

@dalin - If you're going to close something, please say why you're closing it.

dalin’s picture

Ahh, my bad.

And now that I look closer I see that I was getting carried away on this one. The workaround still needs to be removed a la #20.

rfay’s picture

Status: Needs review » Needs work

Patch no longer applies (even with -p0). I'm not sure where this one stands.