Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react-dom): Remove Blocking Mode #52463

Merged
merged 1 commit into from May 10, 2021

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Apr 19, 2021

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

@typescript-bot typescript-bot added this to Needs Author Action in New Pull Request Status Board Apr 19, 2021
@eps1lon eps1lon marked this pull request as ready for review April 19, 2021 20:27
@eps1lon eps1lon requested a review from Jessidhia as a code owner April 19, 2021 20:27
@typescript-bot typescript-bot moved this from Needs Author Action to Needs Maintainer Review in New Pull Request Status Board Apr 19, 2021
@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 19, 2021

@eps1lon Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Most recent commit is approved by a DT maintainer

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.

Inactive

This PR has been inactive for 20 days — it is still unreviewed!


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 52463,
  "author": "eps1lon",
  "headCommitOid": "9c2010cd1f03e3fc0c96f1186864b14ec5fc57c1",
  "lastPushDate": "2021-04-19T20:14:27.000Z",
  "lastActivityDate": "2021-04-19T20:27:42.000Z",
  "maintainerBlessed": false,
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "react-dom",
      "kind": "edit",
      "files": [
        {
          "path": "types/react-dom/experimental.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react-dom/test/experimental-tests.tsx",
          "kind": "test"
        }
      ],
      "owners": [
        "MartynasZilinskas",
        "theruther4d",
        "Jessidhia"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @MartynasZilinskas @theruther4d @Jessidhia — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

Comparison details 📊
master #52463 diff
Batch compilation
Memory usage (MiB) 125.1 124.5 -0.5%
Type count 28267 28261 0%
Assignability cache size 7833 7820 0%
Language service
Samples taken 438 426 -3%
Identifiers in tests 438 426 -3%
getCompletionsAtPosition
    Mean duration (ms) 604.6 602.3 -0.4%
    Mean CV 8.0% 8.4%
    Worst duration (ms) 936.7 889.9 -5.0%
    Worst identifier element element
getQuickInfoAtPosition
    Mean duration (ms) 610.2 606.1 -0.7%
    Mean CV 8.8% 8.8%
    Worst duration (ms) 895.1 931.8 +4.1%
    Worst identifier createElement createElement

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Apr 19, 2021
@typescript-bot typescript-bot added the Edits Owners This PR adds or removes owners label Apr 21, 2021
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in New Pull Request Status Board Apr 21, 2021
@typescript-bot typescript-bot removed the Edits Owners This PR adds or removes owners label Apr 21, 2021
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board Apr 21, 2021
@typescript-bot
Copy link
Contributor

Updated numbers for you here from a788989.

Comparison details 📊
master #52463 diff
Batch compilation
Memory usage (MiB) 123.8 124.1 +0.3%
Type count 28267 28261 0%
Assignability cache size 7833 7820 0%
Language service
Samples taken 438 426 -3%
Identifiers in tests 438 426 -3%
getCompletionsAtPosition
    Mean duration (ms) 451.1 510.4 +13.2%
    Mean CV 9.6% 19.4%
    Worst duration (ms) 671.0 971.7 +44.8% 🔸
    Worst identifier element TestComponent
getQuickInfoAtPosition
    Mean duration (ms) 456.6 508.8 +11.4%
    Mean CV 10.7% 19.1%
    Worst duration (ms) 675.4 820.6 +21.5% 🔸
    Worst identifier createElement scryRenderedDOMComponentsWithClass
System information
Node version v14.16.1 v14.16.1
CPU count 2 2
CPU speed 2.593 GHz 2.593 GHz
CPU model Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
CPU Architecture x64 x64
Memory 6.8 GiB 6.8 GiB
Platform linux linux
Release 4.15.0-1111-azure 4.15.0-1113-azure

Looks like there were a couple significant differences—take a look at worst-case duration for getting completions at a position and worst-case duration for getting quick info at a position to make sure everything looks ok.

@typescript-bot typescript-bot added Perf: Worse typescript-bot determined that this PR has a negative impact on compilation performance. and removed Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. labels Apr 21, 2021
@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label May 1, 2021
@typescript-bot
Copy link
Contributor

Re-ping @MartynasZilinskas, @theruther4d, @Jessidhia:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@typescript-bot typescript-bot moved this from Needs Maintainer Review to Needs Maintainer Action in New Pull Request Status Board May 7, 2021
@typescript-bot
Copy link
Contributor

It has been more than two weeks and this PR still has no reviews.

I'll bump it to the DT maintainer queue. Thank you for your patience, @eps1lon.

(Ping @MartynasZilinskas, @theruther4d, @Jessidhia.)

@elibarzilay elibarzilay merged commit b949150 into DefinitelyTyped:master May 10, 2021
@typescript-bot typescript-bot removed this from Needs Maintainer Action in New Pull Request Status Board May 10, 2021
@typescript-bot
Copy link
Contributor

I just published @types/react-dom@17.0.4 to npm.

@eps1lon eps1lon deleted the fix/react/blocking-mode branch May 11, 2021 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical package Perf: Worse typescript-bot determined that this PR has a negative impact on compilation performance. Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants