Closed Bug 751455 Opened 12 years ago Closed 12 years ago

Adjust virus scanning for new stage servers

Categories

(Release Engineering :: Release Automation: Other, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nthomas, Assigned: nthomas)

References

Details

Attachments

(1 file)

Both post_upload.py and extract_and_run_command.py (from tools/stage) are living in sysadmins repo on the new upload servers (at opsec's request). The extract script needs to import mar.py, which it does by looking at the right relative-path in a tools checkout:

sys.path.append(path.join(path.dirname(path.realpath(__file__)), "../buildfarm/utils"))
...
from mar import BZ2MarFile

Since we no longer have a tools checkout I propose we get puppet to manage mar.py too, putting it in /usr/lib64/python2.6/site-packages (on sys.path), and then drop the sys.path modification.
I committed rev 36509 to add mar.py to /usr/lib64/python2.6/site-packages/, but it hasn't appeared on upload1 in the 50 minutes since. If puppet is erroring then this is a good thing to check on.
A virus scan works with the change in comment #2, plus installing p7zip (to provide 7za, also in puppet). 1h 18 minutes elapsed on upload1, compared to 3hrs 14 to do the virus scan + dummy rsync for 13.0b2 (ie more work, but not many minutes worth).
Assignee: nobody → nrthomas
Priority: -- → P2
The idea with these comment blocks is to help us remember that builds/tools is the canonical location for these scripts, but that they're managed by puppet on stage.m.o. I put this after the docstrings because that seemed vaguely better, but means it doesn't always go right at the very top of the file. Looks like you can do the other way around if that's seems better to you.
Attachment #623624 - Flags: review?(bhearsum)
Comment on attachment 623624 [details] [diff] [review]
[tools] Add header block to help people with deployment

Review of attachment 623624 [details] [diff] [review]:
-----------------------------------------------------------------

This seems good enough to me.
Attachment #623624 - Flags: review?(bhearsum) → review+
Comment on attachment 623624 [details] [diff] [review]
[tools] Add header block to help people with deployment

http://hg.mozilla.org/build/tools/rev/2fd823c26d35

Sending        bin/extract_and_run_command.py
Sending        bin/mar.py
Sending        bin/post_upload.py
Transmitting file data ...
Committed revision 37822.
Attachment #623624 - Flags: checked-in+
All done here.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: