Sitelet https://github.com/DefinitelyTyped/DefinitelyTyped/pull/48424
Skip to content

[node] Update worker_threads module - #48424

Merged
typescript-bot merged 2 commits into
DefinitelyTyped:masterfrom
Semigradsky:update-worker_threads
Oct 9, 2020
Merged

typescript-bot merged 2 commits into
DefinitelyTyped:masterfrom
Semigradsky:update-worker_threads

Conversation

@typescript-bot

typescript-bot commented Oct 2, 2020 •

Copy link
Copy Markdown
Contributor

@Semigradsky 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 DT maintainers

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 48424,
  "author": "Semigradsky",
  "owners": [
    "Microsoft",
    "DefinitelyTyped",
    "jkomyno",
    "a-tarasyuk",
    "alvis",
    "r3nya",
    "btoueg",
    "brunoscheufler",
    "smac89",
    "touffy",
    "DeividasBakanas",
    "eyqs",
    "Flarna",
    "Hannes-Magnusson-CK",
    "KSXGitHub",
    "hoo29",
    "kjin",
    "ajafff",
    "islishude",
    "mwiktorczyk",
    "mohsen1",
    "n-e",
    "galkin",
    "parambirs",
    "eps1lon",
    "SimonSchick",
    "ThomasdenH",
    "WilcoBakker",
    "wwwy3y3",
    "samuela",
    "kuehlein",
    "j-oliveras",
    "bhongy",
    "chyzwar",
    "trivikr",
    "nguymin4",
    "yoursunny",
    "qwelias",
    "ExE-Boss",
    "Ryan-Willpower",
    "peterblazejewicz",
    "addaleax",
    "JasonHK",
    "victorperin"
  ],
  "dangerLevel": "ScopedAndTested",
  "headCommitAbbrOid": "c7d8417",
  "headCommitOid": "c7d8417010c6c85d84c7c6e872d5f62e2937ff1b",
  "mergeIsRequested": true,
  "stalenessInDays": 0,
  "lastPushDate": "2020-10-06T08:13:48.000Z",
  "lastCommentDate": "2020-10-09T06:32:50.000Z",
  "maintainerBlessed": false,
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/48424/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": false,
  "popularityLevel": "Critical",
  "newPackages": [],
  "packages": [
    "node"
  ],
  "files": [
    {
      "path": "types/node/test/worker_threads.ts",
      "kind": "test",
      "package": "node"
    },
    {
      "path": "types/node/v12/worker_threads.d.ts",
      "kind": "definition",
      "package": "node"
    },
    {
      "path": "types/node/v13/worker_threads.d.ts",
      "kind": "definition",
      "package": "node"
    },
    {
      "path": "types/node/worker_threads.d.ts",
      "kind": "definition",
      "package": "node"
    }
  ],
  "hasDismissedReview": false,
  "ciResult": "pass",
  "lastReviewDate": "2020-10-08T20:01:21.000Z",
  "reviewersWithStaleReviews": [
    {
      "reviewedAbbrOid": "fd2ee11",
      "reviewer": "a-tarasyuk",
      "date": "2020-10-06T06:12:28Z"
    }
  ],
  "approvalFlags": 6,
  "isChangesRequested": false
}

@typescript-bot

Copy link
Copy Markdown
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?

node/v*

Comparison details for node/* 📊
master #48424 diff
Batch compilation
Memory usage (MiB) 106.4 103.9 -2.4%
Type count 17541 17558 0%
Assignability cache size 5047 5047 0%
Language service
Samples taken 28 28 0%
Identifiers in tests 28 28 0%
getCompletionsAtPosition
    Mean duration (ms) 667.3 680.4 +2.0%
    Mean CV 10.1% 10.4%
    Worst duration (ms) 778.7 756.1 -2.9%
    Worst identifier instance WASI
getQuickInfoAtPosition
    Mean duration (ms) 667.0 657.8 -1.4%
    Mean CV 10.1% 11.2% +10.4%
    Worst duration (ms) 767.4 723.0 -5.8%
    Worst identifier start returnOnExit

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

node/v*

Comparison details for node/* 📊
master #48424 diff
Batch compilation
Memory usage (MiB) 108.2 111.3 +2.9%
Type count 17541 17558 0%
Assignability cache size 5047 5047 0%
Language service
Samples taken 28 28 0%
Identifiers in tests 28 28 0%
getCompletionsAtPosition
    Mean duration (ms) 672.8 665.2 -1.1%
    Mean CV 11.2% 9.8%
    Worst duration (ms) 742.6 785.4 +5.8%
    Worst identifier WASI instance
getQuickInfoAtPosition
    Mean duration (ms) 663.3 661.7 -0.2%
    Mean CV 10.2% 10.2% -0.1%
    Worst duration (ms) 764.3 741.6 -3.0%
    Worst identifier instance instance

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

node/v*

Comparison details for node/* 📊
master #48424 diff
Batch compilation
Memory usage (MiB) 101.8 103.0 +1.3%
Type count 17541 17558 0%
Assignability cache size 5047 5047 0%
Language service
Samples taken 28 28 0%
Identifiers in tests 28 28 0%
getCompletionsAtPosition
    Mean duration (ms) 669.0 668.2 -0.1%
    Mean CV 9.6% 11.1%
    Worst duration (ms) 745.7 716.8 -3.9%
    Worst identifier process wasi
getQuickInfoAtPosition
    Mean duration (ms) 663.0 664.3 +0.2%
    Mean CV 11.7% 10.2% -12.3%
    Worst duration (ms) 785.1 765.7 -2.5%
    Worst identifier instance start

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 Oct 2, 2020
Comment thread types/node/worker_threads.d.ts Outdated
@typescript-bot

Copy link
Copy Markdown
Contributor

@ExE-Boss Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@ExE-Boss

ExE-Boss commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

The TransferListItem type should be also added to the v12 types, but only containing:

type TransferListItem = ArrayBuffer | MessagePort;

Comment thread types/node/worker_threads.d.ts
@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Oct 6, 2020
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Oct 6, 2020
@typescript-bot

Copy link
Copy Markdown
Contributor

@Semigradsky 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 Owner Approved A listed owner of this package signed off on the pull request. The CI failed When GH Actions fails labels Oct 6, 2020
@typescript-bot

Copy link
Copy Markdown
Contributor

@Flarna Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Oct 6, 2020
@typescript-bot

Copy link
Copy Markdown
Contributor

@a-tarasyuk, @rbuckton, @ExE-Boss Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot

Copy link
Copy Markdown
Contributor

@a-tarasyuk, @rbuckton Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Oct 8, 2020
@typescript-bot

Copy link
Copy Markdown
Contributor

@Semigradsky Everything looks good here. Great job! I am ready to merge this PR on your behalf.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@microsoft, @DefinitelyTyped, @jkomyno, @a-tarasyuk, @alvis, @r3nya, @btoueg, @BrunoScheufler, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Flarna, @Hannes-Magnusson-CK, @KSXGitHub, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @n-e, @galkin, @parambirs, @eps1lon, @SimonSchick, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @j-oliveras, @bhongy, @chyzwar, @trivikr, @nguymin4, @yoursunny, @qwelias, @ExE-Boss, @Ryan-Willpower, @peterblazejewicz, @addaleax, @JasonHK, @victorperin: you can do this too.)

@typescript-bot

Copy link
Copy Markdown
Contributor

@a-tarasyuk Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@Semigradsky

Copy link
Copy Markdown
Contributor Author

Ready to merge

@typescript-bot
typescript-bot merged commit b81e3f6 into DefinitelyTyped:master Oct 9, 2020
@Semigradsky
Semigradsky deleted the update-worker_threads branch October 9, 2020 06:40
@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/node@14.11.8 to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/node@13.13.25 to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/node@12.12.67 to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Maintainer Approved Owner Approved A listed owner of this package signed off on the pull request. Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants