Closed Bug 753863 Opened 13 years ago Closed 13 years ago

mobile_l10n.py broken by latest Fennec makefile changes

Categories

(Release Engineering :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla, Unassigned)

References

Details

(Whiteboard: [mozharness])

Attachments

(2 files, 1 obsolete file)

I find the package name by doing a make echo-variable-PACKAGE AB_CD=%(locale)s in OBJDIR/mobile/android/locales. This is now giving me the output of cd ../../.. && CONFIG_HEADERS= CONFIG_FILES=config/autoconf.mk ./config.status instead of the package name. Ted says this works in mobile/android/installer : [09:35] <ted> luser@cuatro:~/build$ make -C fennec-android-mozilla-central/mobile/android/installer/ echo-variable-PACKAGE [09:35] <ted> fennec-15.0a1.en-US.android-arm.apk We can either fix make echo-variable-PACKAGE in mobile/android/locales or change mobile_l10n.py to change directories for the package name.
Attached patch partial package name fix (obsolete) — Splinter Review
This should allow us to change which directory we call make echo-variable-* from. I could hardcode mobile/android/installer in the script, but it would be more mozharness-y to put that in the config files. I need to do that and test nightly repacks. I also need to test to see if mobile/android/installer works for Aurora as well, or if we need to keep doing that in mobile/android/locales.
13:11:46 INFO - Getting output from command: ['make', 'echo-variable-PACKAGE', 'AB_CD=%(locale)s'] in /builds/slave/aki/build/mozilla-central/obj-l10n/mobile/android/installer 13:11:47 INFO - Reading from file tmpfile_stdout 13:11:47 INFO - cd ../../.. && CONFIG_HEADERS= CONFIG_FILES=config/autoconf.mk ./config.status 13:11:47 INFO - creating config/autoconf.mk The directory doesn't seem to be what's wrong here.
It sounds like the objdir isn't up to date when you're running echo-variable-PACKAGE.
This comes after a make -f client.mk configure and a 'make' in the config dir, as well as a make wget-en-US and make unpack. However, after the unpack, we do hg update to the en-US revision; does that invalidate the configure?
Changing the revision being used in any way potentially invalidates the configuration done earlier.
That was it. I wrote this to re-call the |make -f client.mk configure| and |make| in config/ after the |hg update|. Afterwards I got the correct output: 13:40:27 INFO - Getting output from command: ['make', 'echo-variable-PACKAGE', 'AB_CD=%(locale)s'] in /builds/slave/aki/build/mozilla-central/obj-l10n/mobile/android/locales 13:40:27 INFO - Reading from file tmpfile_stdout 13:40:27 INFO - fennec-15.0a1.%(locale)s.android-arm.apk Jordan: do you feel comfortable reviewing this?
Attachment #622772 - Attachment is obsolete: true
Attachment #622896 - Flags: review?(jlund)
This should make it more user-friendly to test this.
Attachment #622932 - Flags: review?(jlund)
Comment on attachment 622896 [details] [diff] [review] call configure both before and after unpack/hg up looks fine to me. I would be up for trying to get the en_US revision prior to setup so we do not have to run 'make configure' twice. Ping me if that becomes important and its something you would like me to do.
Attachment #622896 - Flags: review?(jlund) → review+
Attachment #622932 - Flags: review?(jlund) → review+
Comment on attachment 622896 [details] [diff] [review] call configure both before and after unpack/hg up http://hg.mozilla.org/build/mozharness/rev/90cae9848565
Attachment #622896 - Flags: checked-in+
Attachment #622932 - Flags: checked-in+
This should now be fixed. Respinning nightly l10n repacks to verify.
Successful mobile l10n repack; now we can re-verify the strings are all one language.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: