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)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla3.1b2

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

References

Details

Attachments

(3 files, 4 obsolete files)

Talked this over briefly with beltzner and joduinn... I've got most of this done already
Attached patch patch in progress rev1 (obsolete) (deleted) — Splinter Review
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)
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)
Attached patch patch rev2 (obsolete) (deleted) — Splinter Review
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)
Forgot to mention that both NO_INSTDIR_FROM_REG cases were tested with both en-US and de Win32 installers as well.
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)
Attached patch patch rev3 (checked in) (deleted) — Splinter Review
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 on attachment 362183 [details] [diff] [review] patch rev3 (checked in) Cool beans, looks great.
Attachment #362183 - Flags: review?(mconnor) → review+
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?
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Has this been tested? I'd like to do that before we land it on branch.
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.
Attached patch alternative approach (in progress) (obsolete) (deleted) — Splinter Review
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?
Sorry, I didn't mean automated tests. I mean, has someone built with the new mechanism to ensure that it, you know, works.
Comment on attachment 362183 [details] [diff] [review] patch rev3 (checked in) a191=beltzner
Attachment #362183 - Flags: approval1.9.1? → approval1.9.1+
Keywords: fixed1.9.1
Target Milestone: --- → Firefox 3.1b2
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.
Attached patch followup patch (checked in) (deleted) — Splinter Review
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
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
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.
(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.
(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.
(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.
(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.
Comment on attachment 362110 [details] [diff] [review] string removal patch for trunk (checked in) verbal r+ from mconnor
Attachment #362110 - Flags: review?(mconnor) → review+
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
Attachment #362110 - Attachment description: string removal patch for trunk → string removal patch for trunk (checked in)
Attachment #362183 - Attachment description: patch rev3 → patch rev3 (checked in)
Attachment #362988 - Attachment description: followup patch → followup patch (checked in)
Blocks: 481680
No longer blocks: 481680
Depends on: 481680
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 ?
Phil, take a look at bug 481703 for what is actually being used to generate the pre-release suffix
Component: Build Config → General
Product: Firefox → Firefox Build System
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.

Attachment

General

Created:
Updated:
Size: