Closed Bug 526093 Opened 16 years ago Closed 16 years ago

[FyFx] Run extract-po.sh regularly on fyfx.stage.mozilla.com

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

All
Other
task
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: fox2mike)

References

Details

Attachments

(1 file, 1 obsolete file)

There seems to be a cronjob pulling files from http://viewvc.svn.mozilla.org/vc/projects/fyfx/trunk/ so that they can show up here: http://fyfx.stage.mozilla.com/ I added a script that merges the PO files and compiles them to MO automatically for all locales. http://viewvc.svn.mozilla.org/vc/projects/fyfx/trunk/locale/extract-po.sh?view=markup Could you add this script to the cronjob so that the localizers can preview their changes to PO files after commit?
Blocks: 525857
Done. Runs once every 10 mins.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee: server-ops → shyam
Thanks Shyam, works great.
Status: RESOLVED → VERIFIED
Hey guys - The Zemoga guys are not able to see the changes they have made on stage. Please can we check we're all good here. Thanks
Severity: major → critical
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Jane, I'm sending you an email on this in a while. Nothing to do with this script or the changes that were made here.
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Stas, This script either needs to be re-written or needs a lockfile. Two issues : 1) There was a gazillion instances of the script on mrapp-stage02, hogging CPU doing nothing. 2) You generating .po files locally means there should be no .po files checked into svn. The two don't go well - Automated svn ups are blocked on conflicts and well...we have a zillion blocked svn ups on the box Not a fun scenario to be in :) I've stopped the cron jobs for fyfx until these are fixed.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch compile-po.sh (obsolete) — Splinter Review
Uh-oh, sorry for that. Here's a new script, compile-po.sh, that only compiles the po files, doesn't change them at all. compile-po.sh should be run by cron, while extract-po.sh should be run manually after every change to source content in order to regenerate messaes.pot and merge it with existing messaes.po. It will not compile. Additionally, I'll remove two messages.mo files that are right now in svn but shouldn't: es_CO/LC_MESSAGES/messages.mo en/LC_MESSAGES/messages.mo That should prevent any svn up conflicts in the future.
Attachment #410210 - Flags: review?(shyam)
Attachment #410210 - Flags: review?(shyam) → review+
Commit the compile-po.sh, and I'll add a lockfile to it and put up a patch here which you can push in and we should be okay.
Comment on attachment 410210 [details] [diff] [review] compile-po.sh Committed in r55060 without lockfile. Shyam, pls help :)
Stas, This should do it. I can run it by hand and verify once you've commited it.
Attachment #410210 - Attachment is obsolete: true
r55063 has the patch, works like a charm. Thanks so much and sorry again for the trouble!
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Checked on stage, works. I've re-enabled the crons for both the site as well as compile-po.sh.
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: