Closed Bug 910727 Opened 11 years ago Closed 11 years ago

patcher-config-bump.pl shouldn't fail if there are no partials in the patcher config

Categories

(Release Engineering :: Release Automation: Other, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: rail)

Details

Attachments

(1 file, 1 obsolete file)

Thunderbird 24.0b2 updates failed with the following:

Use of uninitialized value $oldPartialVersions[0] in hash element at tools/release/patcher-config-bump.pl line 258.
Use of uninitialized value $newPath in substitution (s///) at tools/lib/perl/Release/Patcher/Config.pm line 138.
Use of uninitialized value $newPath in pattern match (m//) at tools/lib/perl/Release/Patcher/Config.pm line 140.
Use of uninitialized value $newPath in pattern match (m//) at tools/lib/perl/Release/Patcher/Config.pm line 145.
Use of uninitialized value $oldFilePath in concatenation (.) or string at tools/lib/perl/Release/Patcher/Config.pm line 151.
ASSERT: BumpFilePath() - Unknown file type for '' at tools/lib/perl/Release/Patcher/Config.pm line 151.

The patcher config file contains the following:

<partials>
</partials>

what makes the code unhappy - it cannot find "betatest-url" and "path" in that block and cannot bump.

Using default values for would be better.

Patch incoming.
Attached patch fall back to default values (obsolete) — Splinter Review
It generates the following bump: https://gist.github.com/rail/6379312
It looks sane to me.
Attachment #797269 - Flags: review?
Assignee: nobody → rail
Since BumpFilePath strips everything up to build\d+\/ (http://mxr.mozilla.org/build/source/tools/lib/perl/Release/Patcher/Config.pm#138) there is no reason to populate it. The bumper patch is exactly the same.
Attachment #797269 - Attachment is obsolete: true
Attachment #797269 - Flags: review?
Attachment #797282 - Flags: review?(jhopkins)
Comment on attachment 797282 [details] [diff] [review]
fall back to default values

Please add a semicolon after:

 $oldPaths->{"betatest-url"} = $oldPaths->{"path"}
Attachment #797282 - Flags: review?(jhopkins) → review+
Comment on attachment 797282 [details] [diff] [review]
fall back to default values

https://hg.mozilla.org/build/tools/rev/28bf6229b6d2
Attachment #797282 - Flags: checked-in+
(In reply to John Hopkins (:jhopkins) from comment #3)
> Comment on attachment 797282 [details] [diff] [review]
> fall back to default values
> 
> Please add a semicolon after:
> 
>  $oldPaths->{"betatest-url"} = $oldPaths->{"path"}

I blame Python! :)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: