Skip to content

Conversation

@panva
Copy link
Contributor

@panva panva commented Apr 29, 2021

Please fill in this template.

If changing an existing definition:

@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 29, 2021

@panva 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 failed
  • 🕐 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.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 52652,
  "author": "panva",
  "headCommitOid": "1a7843e876bd669928019f940ebb3f5660f36531",
  "lastPushDate": "2021-05-04T06:24:04.000Z",
  "lastActivityDate": "2021-05-04T08:06:37.000Z",
  "maintainerBlessed": false,
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/crypto.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/test/crypto.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "Microsoft",
        "DefinitelyTyped",
        "jkomyno",
        "alvis",
        "r3nya",
        "btoueg",
        "smac89",
        "touffy",
        "DeividasBakanas",
        "eyqs",
        "Hannes-Magnusson-CK",
        "KSXGitHub",
        "hoo29",
        "kjin",
        "ajafff",
        "islishude",
        "mwiktorczyk",
        "mohsen1",
        "n-e",
        "galkin",
        "parambirs",
        "eps1lon",
        "SimonSchick",
        "ThomasdenH",
        "WilcoBakker",
        "wwwy3y3",
        "samuela",
        "kuehlein",
        "bhongy",
        "chyzwar",
        "trivikr",
        "nguymin4",
        "yoursunny",
        "qwelias",
        "ExE-Boss",
        "Ryan-Willpower",
        "peterblazejewicz",
        "addaleax",
        "JasonHK",
        "victorperin",
        "ZYSzys"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "stale",
      "reviewer": "SimonSchick",
      "date": "2021-04-29T19:55:17.000Z",
      "abbrOid": "8882967"
    }
  ],
  "ciResult": "fail",
  "ciUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/1a7843e876bd669928019f940ebb3f5660f36531/checks?check_suite_id=2645215874"
}

@typescript-bot
Copy link
Contributor

@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 #52652 diff
Batch compilation
Memory usage (MiB) 131.6 134.3 +2.1%
Type count 26341 26387 0%
Assignability cache size 9307 9306 0%
Language service
Samples taken 46 46 0%
Identifiers in tests 46 46 0%
getCompletionsAtPosition
    Mean duration (ms) 859.0 763.1 -11.2%
    Mean CV 8.4% 9.8%
    Worst duration (ms) 1051.9 940.7 -10.6%
    Worst identifier a a
getQuickInfoAtPosition
    Mean duration (ms) 833.5 765.4 -8.2%
    Mean CV 9.0% 10.8%
    Worst duration (ms) 989.7 959.4 -3.1%
    Worst identifier a a

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

@typescript-bot typescript-bot added Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. The CI failed When GH Actions fails labels Apr 29, 2021
@typescript-bot
Copy link
Contributor

@panva The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Apr 29, 2021
@typescript-bot
Copy link
Contributor

@panva The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@panva
Copy link
Contributor Author

panva commented Apr 29, 2021

mongoose tests failure is unrelated to this PR.

Copy link
Contributor

@SimonSchick SimonSchick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generally looks good but I'm looking to get these merged in order to avoid version confusion, I filed a PR to get up 15.2 but we are still a good bit away from 15.12.

I think we can reasonable merge this in a week, with an added note it's only available as of 15.12

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label Apr 29, 2021
@typescript-bot
Copy link
Contributor

@panva One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!

@SimonSchick
Copy link
Contributor

Also please consider merging #52653 into this as it is easier to keep track of the versioning this way.

@panva panva mentioned this pull request Apr 29, 2021
8 tasks
@typescript-bot typescript-bot removed Revision needed This PR needs code changes before it can be merged. The CI failed When GH Actions fails labels Apr 29, 2021
@panva panva changed the title node: crypto sign/verify callback from v15.12.0 node: recent crypto updates Apr 29, 2021
@typescript-bot
Copy link
Contributor

Updated numbers for you here from 416f9a9.

Comparison details 📊
master #52652 diff
Batch compilation
Memory usage (MiB) 131.6 133.7 +1.6%
Type count 26341 26437 0%
Assignability cache size 9307 9337 0%
Language service
Samples taken 46 46 0%
Identifiers in tests 46 46 0%
getCompletionsAtPosition
    Mean duration (ms) 859.0 661.2 -23.0%
    Mean CV 8.4% 10.1%
    Worst duration (ms) 1051.9 772.7 -26.5% 🌟
    Worst identifier a a
getQuickInfoAtPosition
    Mean duration (ms) 833.5 652.8 -21.7%
    Mean CV 9.0% 11.0%
    Worst duration (ms) 989.7 793.2 -19.9%
    Worst identifier a a
System information
Node version v14.16.1 v14.16.1
CPU count 2 2
CPU speed 2.294 GHz 2.593 GHz
CPU model Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz 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-1113-azure 4.15.0-1113-azure

First off, note that the system varied slightly between these two runs, so you’ll have to take these measurements with a grain of salt.

Wow, it looks like all the big movers moved in the right direction! Way to go! 🌟 I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added Perf: Better typescript-bot determined that this PR improves compilation performance. The CI failed When GH Actions fails and removed Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. labels Apr 29, 2021
@typescript-bot
Copy link
Contributor

@panva The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Apr 29, 2021
@typescript-bot
Copy link
Contributor

Updated numbers for you here from 9db36ae.

Comparison details 📊
master #52652 diff
Batch compilation
Memory usage (MiB) 131.6 129.0 -2.0%
Type count 26341 26451 0%
Assignability cache size 9307 9337 0%
Language service
Samples taken 46 46 0%
Identifiers in tests 46 46 0%
getCompletionsAtPosition
    Mean duration (ms) 859.0 908.4 +5.7%
    Mean CV 8.4% 10.0%
    Worst duration (ms) 1051.9 1092.9 +3.9%
    Worst identifier a a
getQuickInfoAtPosition
    Mean duration (ms) 833.5 884.5 +6.1%
    Mean CV 9.0% 8.6%
    Worst duration (ms) 989.7 1058.6 +7.0%
    Worst identifier a a

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

@typescript-bot typescript-bot added Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. and removed Perf: Better typescript-bot determined that this PR improves compilation performance. labels Apr 29, 2021
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Apr 29, 2021
@typescript-bot
Copy link
Contributor

@panva The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels May 4, 2021
@typescript-bot
Copy link
Contributor

@panva The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@SimonSchick
Copy link
Contributor

@panva I'm making good progress getting things up to date, see #52732

I'm trying to batch version changes together, do you have any objections of me integrating your changes into my branch?

@panva
Copy link
Contributor Author

panva commented May 4, 2021

No objections

@SimonSchick
Copy link
Contributor

Let me know if you have any other fragments you have been working on, I'd be glad to integrate them as well.

@panva panva closed this May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. The CI failed When GH Actions fails

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants