Closed Bug 1820882 Opened 3 years ago Closed 3 years ago

Convert toolkit/crashreporter to ES modules

Categories

(Toolkit :: Crash Reporting, task)

task

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: standard8, Assigned: ianiket23, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [esmification-timeline][lang=js])

Attachments

(1 file, 3 obsolete files)

I'm happy to mentor work towards this bug. Please don't ask to be assigned to it, though you can say you're working on it. You'll be automatically assigned when you upload the first patches.

Here's what to do:

  • Make sure you have a local build of Firefox up and running. Use these instructions if you haven't already.
  • Using the ESMification walkthrough as a guide:
    1. Run ./mach esmify --convert path/to/files
    2. Examine the output for any errors from ESLint and fix them.
    3. Commit the changes with a commit messages such as "Bug nnnnnn - Convert path/to/files to ES modules. r?Standard8"
    4. Next convert the imports - ./mach esmify --import . --prefix path/to/files
    5. Again, check for any errors and fix them.
    6. Run a build to check it passes.
    7. Also run ./mach eslint --fix path/to/files and check there are no raised failures
    8. Commit the changes with a commit message such as "Bug nnnnnn - Convert consumers of path/to/files to import ES modules directly. r?Standard8"
  • Use moz-phab submit to submit the patches for review.

Hey Mark, I am taking a look into this bug.

Assignee: nobody → ianiket23
Status: NEW → ASSIGNED

Hey Mark, I submitted my patch. This is my first open source contribution! Please let me know if I did something wrong:)

D171967 is the most recent revision. It passes the test.

(In reply to ianiket23 from comment #6)

D171967 is the most recent revision. It passes the test.

When modifying code, please don't create new revisions, but modify your existing commit - see the documentation here for how to do that.

Also, please can you abandon the unwanted revisions - to do that, go into each revision on phabricator, and scroll down to the bottom. Just above the comment box, there is an action box that lets you select "Abandon Revision", you can then submit that and it'll be marked as obsolete.

Attachment #9321774 - Attachment is obsolete: true
Attachment #9321784 - Attachment is obsolete: true

(In reply to Mark Banner (:standard8) from comment #7)

(In reply to ianiket23 from comment #6)

D171967 is the most recent revision. It passes the test.

When modifying code, please don't create new revisions, but modify your existing commit - see the documentation here for how to do that.

Also, please can you abandon the unwanted revisions - to do that, go into each revision on phabricator, and scroll down to the bottom. Just above the comment box, there is an action box that lets you select "Abandon Revision", you can then submit that and it'll be marked as obsolete.

I will do that for next time!
Also, I abandoned the unwanted revision.

Did you see my comments on the phabricator revision? It seems that the wrong patch is in the queue.

Flags: needinfo?(ianiket23)

I will fix it, submit a new revision!

Flags: needinfo?(ianiket23)
Attachment #9321785 - Attachment is obsolete: true

I submitted a new revision!

I reverted the changes you asked for

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/474472954034 Convert consumers of toolkit/crashreporter to import ES modules directly r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
See Also: → 1822644
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: