Closed Bug 1225836 Opened 9 years ago Closed 8 years ago

remove patches to bmo when deploying during test

Categories

(MozReview Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: glob, Assigned: glob)

References

Details

Attachments

(1 file)

patching bmo while deploying is fragile.

we have:

apache24.patch:
- this patch doesn't appear to be required - apache2.4 works find with "deny from all"

bmodata.patch:
- will be fixed by bug 1225833

elasticsearch.patch:
- will be fixed by bug 1225830
testing: stop patching bmo when deploying to test (bug 1225836) r?gps

Remove the last patch and the supporting patching code.  Also fixes pyflakes
and pep8 issues.
Attachment #8694039 - Flags: review?(gps)
Comment on attachment 8694039 [details]
MozReview Request: testing: stop patching bmo when deploying to test (bug 1225836) r?gps

https://reviewboard.mozilla.org/r/26651/#review24159

Nice work removing hacks.

::: testing/docker/builder-bmoweb/entrypoint.py:227
(Diff revision 1)
> -try:
> +if os.path.exists('/var/run/apache2/apache2.pid'):
>      os.unlink('/var/run/apache2/apache2.pid')

This is an anti-pattern since it requires multiple system calls and is prone to race conditions. Both aren't an issue here so I'm not going to block on it.
Attachment #8694039 - Flags: review?(gps) → review+
https://reviewboard.mozilla.org/r/26651/#review24159

> This is an anti-pattern since it requires multiple system calls and is prone to race conditions. Both aren't an issue here so I'm not going to block on it.

my bad - i thought this script was python2.  i'll revert this change.
(holding off on committing due to autoland-only commit freeze)
https://hg.mozilla.org/hgcustom/version-control-tools/rev/127967697980
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Developer Services → MozReview
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: