Closed Bug 1819736 Opened 2 years ago Closed 2 years ago

Make test-manifest-alpha more helpful and actionable in its comments

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(firefox112 fixed)

RESOLVED FIXED
Tracking Status
firefox112 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(1 file)

test-manifest-alpha currently complains when mochitest ini files are out of order, which is great. It even goes so far as to provide the expected ordering. Fantastic!

What it doesn't do, however, is give you guidance on how to reorder the prior state of the ini file to become alphabetical. This is normally trivial in short ini files, but in sufficiently long ones, it'd be helpful if test-manifest-alpha gave some assistance.

Using difflib, I think we can do this.

Blocks: 1815447

This patch makes it so that test-manifest-alpha emits a diff between unsorted
and sorted order to make it easier for people to reorder these files (since it's
currently kinda difficult to reorder the files automatically).

Assignee: nobody → mconley
Status: NEW → ASSIGNED
Attachment #9320638 - Attachment description: Bug 1819736 - Make test-manifest-alpha more helpful in its feedback. r?ahal → Bug 1819736 - Make test-manifest-alpha more helpful in its feedback. r?ahal!
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d848dbfa71cc Make test-manifest-alpha more helpful in its feedback. r=ahal
Status: ASSIGNED → RESOLVED
Closed: 2 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: