Closed Bug 532224 Opened 17 years ago Closed 16 years ago

SetMozillaBuildProperties class doesn't use platform.ini

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: armenzg)

References

()

Details

Attachments

(1 file)

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
Depends on: 475382
I don't think this is blocked by us dropping SetMozillaBuildProperties...
No longer depends on: 475382
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
I carry forward Ben's r+ but I want coop to review it since he has been recently been touching it.
Assignee: nobody → armenzg
Status: NEW → ASSIGNED
Attachment #417557 - Flags: review?(ccooper)
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+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Armen, thanks a lot for the fix.
Not a problem. Thanks for catching it!
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: