Closed
Bug 468197
Opened 16 years ago
Closed 16 years ago
Simplify / automate the addition of the pre-release suffix string (e.g. Alpha 1, Beta 2, etc.)
Categories
(Firefox Build System :: General, defect, P1)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla3.1b2
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
Details
Attachments
(3 files, 4 obsolete files)
(deleted),
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mconnor
:
review+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
Talked this over briefly with beltzner and joduinn... I've got most of this done already
Assignee | ||
Comment 1•16 years ago
|
||
Assignee | ||
Comment 2•16 years ago
|
||
It might be nice to get this in for Beta 3 since we have some time until the release... it makes it so we can set the pre-release suffix in one file and have it set the value in the places we need it for pre-releases. I'll add release automation so this value can be easily set by the release team at a later time.
Attachment #361969 -
Attachment is obsolete: true
Attachment #362093 -
Flags: review?(mconnor)
Assignee | ||
Comment 3•16 years ago
|
||
Comment on attachment 362093 [details] [diff] [review]
patch rev1 (doesn't include the automation bits for releases)
bah... copy paste error... new patch coming up
Attachment #362093 -
Attachment is obsolete: true
Attachment #362093 -
Flags: review?(mconnor)
Assignee | ||
Comment 4•16 years ago
|
||
This has been tested building both the en-US and de Win32 installer and I also verified that browser.xul gets the proper values... all were tested for the empty file and the beta string cases.
Attachment #362098 -
Flags: review?(mconnor)
Assignee | ||
Comment 5•16 years ago
|
||
Forgot to mention that both NO_INSTDIR_FROM_REG cases were tested with both en-US and de Win32 installers as well.
Assignee | ||
Comment 6•16 years ago
|
||
Attachment #362110 -
Flags: review?(mconnor)
Assignee | ||
Comment 7•16 years ago
|
||
Comment on attachment 362098 [details] [diff] [review]
patch rev2
I think I have a simpler way to automate this... patch coming up
Attachment #362098 -
Attachment is obsolete: true
Attachment #362098 -
Flags: review?(mconnor)
Assignee | ||
Comment 8•16 years ago
|
||
This automates the addition of Alpha X and Beta X naming for the installer and browser.xul as well as setting the NO_INSTDIR_FROM_REG define as appropriate.
Attachment #362183 -
Flags: review?(mconnor)
Comment 9•16 years ago
|
||
Comment on attachment 362183 [details] [diff] [review]
patch rev3 (checked in)
Cool beans, looks great.
Attachment #362183 -
Flags: review?(mconnor) → review+
Assignee | ||
Comment 10•16 years ago
|
||
Comment on attachment 362183 [details] [diff] [review]
patch rev3 (checked in)
Drivers, I'd like to use this method for changing the Beta 3 string for Beta 3 but with the way the mozilla-central tinderbox has been the last week I have no idea when the tree will be in decent shape to check in there... so, I am asking for approval for this prior to landing it on mozilla-central.
Attachment #362183 -
Flags: approval1.9.1?
Assignee | ||
Comment 11•16 years ago
|
||
Pushed to mozilla-central
http://hg.mozilla.org/mozilla-central/rev/8a3394e165a9
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 12•16 years ago
|
||
Has this been tested? I'd like to do that before we land it on branch.
Assignee | ||
Comment 13•16 years ago
|
||
I've tested this locally but I haven't figured out a way to automate the testing for this change. Then again, we don't have automated testing of the manual change either.
Assignee | ||
Comment 14•16 years ago
|
||
Seems a bit overkill but this could be converted into python and ut could then be tested in the same way that a few of the python scripts are tested under config... thoughts?
Comment 15•16 years ago
|
||
Sorry, I didn't mean automated tests. I mean, has someone built with the new mechanism to ensure that it, you know, works.
Comment 16•16 years ago
|
||
Comment on attachment 362183 [details] [diff] [review]
patch rev3 (checked in)
a191=beltzner
Attachment #362183 -
Flags: approval1.9.1? → approval1.9.1+
Assignee | ||
Comment 17•16 years ago
|
||
Pushed to mozilla-1.9.1
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/e5099792b0b9
Keywords: fixed1.9.1
Target Milestone: --- → Firefox 3.1b2
Comment 19•16 years ago
|
||
Wish I'd looked at this bug sooner. Rob, we have code to do this in http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/installer/package-name.mk - MOZ_PKG_LONGVERSION will be, eg, '3.1 Beta 3' when MOZ_PKG_PRETTYNAMES is passed. We already pass this for packaging and could easily pass it to the build step too.
It doesn't matter much to me how we do it, but just wanted to mention it.
Assignee | ||
Comment 20•16 years ago
|
||
I thought the output should have been Beta 3 instead of 3.1 Beta 3 likely due to being ill this last week :( this patch fixes that.
Attachment #362837 -
Attachment is obsolete: true
Assignee | ||
Updated•16 years ago
|
Keywords: fixed1.9.1
Assignee | ||
Comment 21•16 years ago
|
||
Pushed the followup to mozilla-1.9.1
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/230e03ff70fc
Keywords: fixed1.9.1
Comment 22•16 years ago
|
||
Carrying over blocking from the source dupe bug 475100.
So, what's left to do here on the build side after we tag? Just patch a single file? If so, we should get a P1 blocker on that, too, to make sure we don't forget.
Flags: blocking-firefox3.1+
Priority: -- → P1
Comment 23•16 years ago
|
||
As I understand it there's nothing we have to do. Automation will bump version.txt to '3.1b3' and Rob's patch will do the rest.
Comment 24•16 years ago
|
||
(In reply to comment #19)
> MOZ_PKG_LONGVERSION will be, eg, '3.1 Beta 3' when MOZ_PKG_PRETTYNAMES is
> passed. We already pass this for packaging and could easily pass it to the
> build step too.
Sounds like we should get a followup filed to investigate doing it this way, though.
Assignee | ||
Comment 25•16 years ago
|
||
(In reply to comment #24)
> (In reply to comment #19)
> > MOZ_PKG_LONGVERSION will be, eg, '3.1 Beta 3' when MOZ_PKG_PRETTYNAMES is
> > passed. We already pass this for packaging and could easily pass it to the
> > build step too.
>
> Sounds like we should get a followup filed to investigate doing it this way,
> though.
We probably could use the same sed statements but we would have to modify the results since packaging returns using "3.1 Beta 3" and we need " 3.1 Beta 3". The name returned for packaging can also be "3.1 RC 1" which we never want. This is why I didn't go with what packaging uses.
Comment 26•16 years ago
|
||
(In reply to comment #25)
> (In reply to comment #24)
> > (In reply to comment #19)
> > > MOZ_PKG_LONGVERSION will be, eg, '3.1 Beta 3' when MOZ_PKG_PRETTYNAMES is
> > > passed. We already pass this for packaging and could easily pass it to the
> > > build step too.
> >
> > Sounds like we should get a followup filed to investigate doing it this way,
> > though.
> We probably could use the same sed statements but we would have to modify the
> results since packaging returns using "3.1 Beta 3" and we need " 3.1 Beta 3".
> The name returned for packaging can also be "3.1 RC 1" which we never want.
> This is why I didn't go with what packaging uses.
wfm. it's already checked in and working, anyways, no need to rock the boat.
Assignee | ||
Comment 27•16 years ago
|
||
(In reply to comment #22)
> Carrying over blocking from the source dupe bug 475100.
>
> So, what's left to do here on the build side after we tag? Just patch a single
> file? If so, we should get a P1 blocker on that, too, to make sure we don't
> forget.
Just to confirm what bhearsum wrote, nothing needs to be done except the version change in version.txt which is done by build automation.
Assignee | ||
Comment 28•16 years ago
|
||
Comment on attachment 362110 [details] [diff] [review]
string removal patch for trunk (checked in)
verbal r+ from mconnor
Attachment #362110 -
Flags: review?(mconnor) → review+
Assignee | ||
Comment 29•16 years ago
|
||
Comment on attachment 362110 [details] [diff] [review]
string removal patch for trunk (checked in)
Pushed this last remaining patch to remove the unused string to mozilla-central
http://hg.mozilla.org/mozilla-central/rev/47947c9ae4fc
Assignee | ||
Updated•16 years ago
|
Attachment #362110 -
Attachment description: string removal patch for trunk → string removal patch for trunk (checked in)
Assignee | ||
Updated•16 years ago
|
Attachment #362183 -
Attachment description: patch rev3 → patch rev3 (checked in)
Assignee | ||
Updated•16 years ago
|
Attachment #362988 -
Attachment description: followup patch → followup patch (checked in)
Updated•16 years ago
|
Comment 30•15 years ago
|
||
I am trying to port this over to comm-central in bug 481374, and I just noticed something odd with sed on OS X which caused me some grief with the sed pattern:
$> echo 12345 | sed -e's/[0-9]\+/x/'
12345
$> echo 12345 | gsed -e's/[0-9]\+/x/'
x
Has this patch been verified working on OS X as it is ?
Assignee | ||
Comment 31•15 years ago
|
||
Phil, take a look at bug 481703 for what is actually being used to generate the pre-release suffix
Updated•6 years ago
|
Component: Build Config → General
Product: Firefox → Firefox Build System
Updated•6 years ago
|
Keywords: fixed1.9.1
Target Milestone: Firefox 3.1b2 → mozilla3.1b2
You need to log in
before you can comment on or make changes to this bug.
Description
•