Closed
Bug 532224
Opened 17 years ago
Closed 16 years ago
SetMozillaBuildProperties class doesn't use platform.ini
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rail, Assigned: armenzg)
References
()
Details
Attachments
(1 file)
|
993 bytes,
patch
|
coop
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5
Build Identifier:
Hi.
Seems like there is a logic typo in modified buildbot, SetMozillaBuildProperties slave command class.
Lines 2964 and 2967 check for the same condition, while the comments imply that line 2967 should check for platformIni existence ("use application.ini by default, fallback on platform.ini").
The following patch should solve the problem, please review.
diff --git a/buildbot/slave/commands.py b/buildbot/slave/commands.py
--- a/buildbot/slave/commands.py
+++ b/buildbot/slave/commands.py
@@ -2959,17 +2959,17 @@ class SetMozillaBuildProperties(Command)
completeMarHash = 'UNKNOWN'
completeMarSize = 'UNKNOWN'
# get the buildid and the app version
# use application.ini by default, fallback on platform.ini
if path.exists(appIni):
buildid = self.getConfigSetting(appIni, 'App', 'BuildID')
appVersion = self.getConfigSetting(appIni, 'App', 'Version')
- elif path.exists(appIni):
+ elif path.exists(platformIni):
buildid = self.getConfigSetting(platformIni, 'Build', 'BuildID')
appVersion = self.getConfigSetting(platformIni, 'Build',
'Milestone')
# This is pretty simple, actually. It's simply searching the dist
# directory for the package.
try:
for entry in listdir(distDir):
Reproducible: Always
Comment 1•17 years ago
|
||
I don't think this is blocked by us dropping SetMozillaBuildProperties...
No longer depends on: 475382
Comment 2•17 years ago
|
||
r=me on that, though as comment #1 implies, we're going to stop using this class soon (for Firefox at least, SeaMonkey, Thunderbird, and maybe others will continue using it for the time being).
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 3•16 years ago
|
||
I carry forward Ben's r+ but I want coop to review it since he has been recently been touching it.
Comment 4•16 years ago
|
||
Comment on attachment 417557 [details] [diff] [review]
check for the right file
Fine to fix this up for other consumers, but we don't use SetMozillaBuildProperties for Firefox.
Attachment #417557 -
Flags: review?(ccooper) → review+
| Assignee | ||
Comment 5•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 6•16 years ago
|
||
Armen, thanks a lot for the fix.
| Assignee | ||
Comment 7•16 years ago
|
||
Not a problem. Thanks for catching it!
Updated•13 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•