Closed
Bug 1311122
Opened 9 years ago
Closed 9 years ago
l10n.py doesn't show "Missing file" errors in some cases as it hits a python error first
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox52 fixed)
RESOLVED
FIXED
mozilla52
| Tracking | Status | |
|---|---|---|
| firefox52 | --- | fixed |
People
(Reporter: aleth, Assigned: aleth)
References
Details
Attachments
(1 file, 1 obsolete file)
|
1.50 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
Example: https://ftp.mozilla.org/pub/thunderbird/nightly/2016/10/2016-10-18-15-07-14-comm-central-l10n/comm-central-linux64-l10n-nightly-el-bm72-build1-build1923.txt.gz
Traceback (most recent call last):
File "/builds/slave/tb-c-cen-l64-l10n-ntly-0000000/build/comm-central/mozilla/toolkit/mozapps/installer/l10n-repack.py", line 60, in <module>
main()
File "/builds/slave/tb-c-cen-l64-l10n-ntly-0000000/build/comm-central/mozilla/toolkit/mozapps/installer/l10n-repack.py", line 56, in main
non_resources=args.non_resource, non_chrome=NON_CHROME)
File "/builds/slave/tb-c-cen-l64-l10n-ntly-0000000/build/comm-central/mozilla/python/mozbuild/mozpack/packager/l10n.py", line 250, in repack
_repack(app_finder, l10n_finder, copier, formatter, non_chrome)
File "/builds/slave/tb-c-cen-l64-l10n-ntly-0000000/build/comm-central/mozilla/python/mozbuild/mozpack/packager/l10n.py", line 171, in _repack
os.path.join(l10n_finder.base, path))
AttributeError: 'ComposedFinder' object has no attribute 'base'
make[1]: *** [repackage-zip] Error 1
Setting an empty base on ComposeFinder leads to actual missing files being reported in the log (from http://searchfox.org/mozilla-central/source/python/mozbuild/mozpack/packager/l10n.py#170).
| Assignee | ||
Comment 1•9 years ago
|
||
It's possible this is a very specific problem, so maybe a simple fix like this this would be best?
Attachment #8802259 -
Flags: review?(mh+mozilla)
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → aleth
Status: NEW → ASSIGNED
Comment 2•9 years ago
|
||
Comment on attachment 8802259 [details] [diff] [review]
Ensure missing file errors get reported despite missing base path in l10n.py
Review of attachment 8802259 [details] [diff] [review]:
-----------------------------------------------------------------
::: python/mozbuild/mozpack/packager/l10n.py
@@ +167,5 @@
> files = [f for p, f in l10n_finder.find(path)]
> if not len(files):
> if base not in non_chrome:
> + finderBase = ""
> + if base in l10n_finder:
This is not the right test to ensure that l10n_finder.base exists. The right test would be hasattr(l10n_finder, 'base')
Attachment #8802259 -
Flags: review?(mh+mozilla)
| Assignee | ||
Comment 3•9 years ago
|
||
Ooops, thanks! The bug this was intended to help with has since been fixed, but it probably doesn't hurt to have this.
Attachment #8804242 -
Flags: review?(mh+mozilla)
| Assignee | ||
Updated•9 years ago
|
Attachment #8802259 -
Attachment is obsolete: true
Updated•9 years ago
|
Attachment #8804242 -
Flags: review?(mh+mozilla) → review+
| Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e47ad07f2d527ca78a01f022c177df8437b03b6a
Bug 1311122 - Ensure missing file errors get reported despite missing base path in l10n.py. r=glandium
Pushed by aleth@instantbird.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e47ad07f2d52
Ensure missing file errors get reported despite missing base path in l10n.py. r=glandium
Comment 6•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•