Closed (fixed)
Project:
Project Issue File Review
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2012 at 21:31 UTC
Updated:
10 Mar 2012 at 23:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
rfayI looked through #699's history and it looks to me like http://qa.drupal.org/pifr/test/224738 was the test that broke it.
Comment #2
jthorson commentedThis should do it ... need to find a 'breaking' test which can confirm it. :)
Comment #3
jthorson commentedEliminated a redundant chmod on the sites/default directory.
Comment #4
jthorson commentedSecond missed apostrophe tonight. :(
Comment #5
jthorson commentedTested on scratchtestbot and committed to 6.x-2.x (d95a082).
Comment #6
sunShouldn't it be: a+w ?
Comment #7
jthorson commentedI checked on the last patch which broke testbot, and the files were still owned by www-data. The chmod is executed as www-data, so it likely won't be able to modify anything that it didn't already own, anyway.
Can you provide a link to your last patch which broke things this way? I'll run it through a dev testbot before we roll this into a new release candidate.
Comment #8
sunI can only refer to #1364798: Impossible to generate meaningful diffs of upgrade db dumps, but that seems to be the issue you already tested.
As you're making the extra step already, and the sole purpose is to change permissions in order to be able to delete the checkout files right afterwards (correct?), I'd say it would make more sense to go the full way and ensure that files can be deleted no matter what.
The previous code did exactly that (0777), merely limited to settings.php, instead of all files.
Comment #9
jthorson commentedAs the chmod is run as the www-data user, it would not succeed for files not already owned by www-data ... thus 'owned by www-data' becomes a pre-assumption for this patch, and a+w does not buy us anything extra.
Comment #10
rfayOops. Looks like the directory might not exist. I guess we have to check first. From http://qa.drupal.org/pifr/test/135299 (or https://www.evernote.com/shard/s15/sh/0ca32b9b-6c18-46ef-a89a-96b74b9a85...)
Comment #11
rfayAll testbots failed reconfirmation, so I rolled PIFR on each back to 6.x-2.8-rc2. Hope that was the right thing to do. They're reconfirming now.
Comment #12
jthorson commentedOf course ... that path won't exist during the reconfirmation process. I'll strip it back to just the '/checkout' directory.
Thanks, rfay!
Comment #13
rfayI think it might be best to just ignore failure on this one as well. Nothing we can do about it...
Comment #14
jthorson commentedThe code is already wrapped in a 'if exists' condition for the checkout directory itself ... so this patch should allow the reconfirmation to happen.
However, if the directory removal fails, that could result in future tests running with an invalid settings.php file. I think a better option would be to have the testbot disable itself if the 'remove checkout directory' failure is detected (I'll create a new feature request for that scenario.)
Edit: Ah, I get what you're saying. I had left out the return statement to ensure that the 'rm' command would also be executed ... but the error would need to be cleared after the rm anyway, so I'll just leave it out altogether.
Comment #15
jthorson commentedComment #16
jthorson commentedBoo to extra whitespace.
Comment #17
jthorson commentedDouble Boo to whitespace! (Starting to hate this patch ... remove two lines, and somehow add two different whitespace errors?)
Comment #18
jthorson commentedI give up. \o/
Comment #19
jthorson commentedFixed in 6.x-2.8-rc4.