Closed Bug 908024 Opened 11 years ago Closed 11 years ago

Sort patcher configs to make diffs clearer

Categories

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

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nthomas, Assigned: nthomas)

References

Details

Attachments

(3 files, 1 obsolete file)

We get a lot of churn in the patcher configs because perl's Config::General doesn't enforce any sort order by default, eg http://hg.mozilla.org/build/tools/rev/105800cd997d.

You can turn sorting on if you have v2.40 or later, and we have 2.44, so yay. I've confirmed that changing the config ordering doesn't change the snippets we get for the five patcher configs we use.
Attachment #793802 - Flags: review?(bhearsum)
The sort order isn't perfect:
         past-update   22.0b6 23.0b1 betatest releasetest beta
         past-update   23.0b1 23.0b2 betatest releasetest beta
+        past-update   23.0b10 24.0b1 betatest releasetest beta
         past-update   23.0b2 23.0b3 betatest releasetest beta
and similar for the likes of the <23.b10> release block, but it doesn't regress anything in my testing and I'll live with that for the win.

These were all generated with a script that read the config in with the '-SaveSorted => 1' set on the Config::General object, then written straight back out again.
Attachment #793808 - Flags: review?(bhearsum)
Upload the right patch.
Attachment #793808 - Attachment is obsolete: true
Attachment #793808 - Flags: review?(bhearsum)
Attachment #793812 - Flags: review?(bhearsum)
Attachment #793802 - Flags: review?(bhearsum) → review+
Attachment #793812 - Flags: review?(bhearsum) → review+
Comment on attachment 793802 [details] [diff] [review]
[tools] Sort patcher config when writing to disk

https://hg.mozilla.org/build/tools/rev/adc48ae1e242
Attachment #793802 - Flags: checked-in+
Comment on attachment 793812 [details] [diff] [review]
[tools] one-off sorting of configs

With refreshed mozBeta-branch-patcher2.cfg:
https://hg.mozilla.org/build/tools/rev/917367ef222c
Attachment #793812 - Flags: checked-in+
Bump looks good in 24.0b6.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Wooot! So much better now. Thank a lot, Nick!
Turns out the machines used for ESR17 only have version 2.30 of Config::General.
Blocks: 915356
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Thankfully this version seems to do sane things with ordering even without the pref.
Attachment #803606 - Flags: review?(rail)
Attachment #803606 - Flags: review?(rail) → review+
Updates for ESR went fine with that.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 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: