Skip to content

node: ChildProcess "close" event can have null code/signal - #50262

Merged
typescript-bot merged 1 commit into
DefinitelyTyped:masterfrom
calebsander:master
Jan 2, 2021
Merged

typescript-bot merged 1 commit into
DefinitelyTyped:masterfrom
calebsander:master

Conversation

@calebsander

@calebsander calebsander commented Dec 23, 2020 •

Copy link
Copy Markdown
Contributor

If changing an existing definition:

Also removes some extraneous whitespace in the tests

@typescript-bot

typescript-bot commented Dec 23, 2020 •

Copy link
Copy Markdown
Contributor

@calebsander Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners or 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": 50262,
  "author": "calebsander",
  "headCommitAbbrOid": "3e7b477",
  "headCommitOid": "3e7b47709b9cc9fa4ee8a40d588ad4d131256759",
  "lastPushDate": "2020-12-29T16:28:02.000Z",
  "lastActivityDate": "2021-01-02T15:08:47.000Z",
  "maintainerBlessed": true,
  "mergeOfferDate": "2021-01-01T17:40:56.000Z",
  "mergeRequestDate": "2021-01-02T15:08:47.000Z",
  "mergeRequestUser": "calebsander",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/child_process.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/test/child_process.ts",
          "kind": "test"
        }
      ],
      "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"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "Flarna",
      "date": "2020-12-29T19:03:49.000Z",
      "isMaintainer": false
    }
  ],
  "ciResult": "pass"
}

@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?

Comparison details 📊
master #50262 diff
Batch compilation
Memory usage (MiB) 108.1 108.3 +0.2%
Type count 17694 17694 0%
Assignability cache size 5062 5062 0%
Language service
Samples taken 28 28 0%
Identifiers in tests 28 28 0%
getCompletionsAtPosition
    Mean duration (ms) 758.3 738.1 -2.7%
    Mean CV 9.4% 8.3%
    Worst duration (ms) 837.2 825.1 -1.5%
    Worst identifier preopens importObject
getQuickInfoAtPosition
    Mean duration (ms) 752.6 760.7 +1.1%
    Mean CV 9.7% 11.6%
    Worst duration (ms) 815.2 844.3 +3.6%
    Worst identifier returnOnExit returnOnExit

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 Dec 24, 2020
@typescript-bot

Copy link
Copy Markdown
Contributor

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

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

@calebsander

Copy link
Copy Markdown
Contributor Author

Hmm, it's not clear to me why the tests are failing. These are the TypeScript errors, which appear for 3 different packages:

Error: Errors in [email protected] for external dependencies:
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(307,9): error TS2717: Subsequent property declarations must have the same type.  Property 'localeMatcher' must be of type 'string | undefined', but here has type '"lookup" | "best fit" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(311,9): error TS2717: Subsequent property declarations must have the same type.  Property 'formatMatcher' must be of type 'string | undefined', but here has type '"basic" | "best fit" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(312,9): error TS2717: Subsequent property declarations must have the same type.  Property 'weekday' must be of type 'string | undefined', but here has type '"long" | "short" | "narrow" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(313,9): error TS2717: Subsequent property declarations must have the same type.  Property 'era' must be of type 'string | undefined', but here has type '"long" | "short" | "narrow" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(314,9): error TS2717: Subsequent property declarations must have the same type.  Property 'year' must be of type 'string | undefined', but here has type '"numeric" | "2-digit" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(315,9): error TS2717: Subsequent property declarations must have the same type.  Property 'month' must be of type 'string | undefined', but here has type '"long" | "short" | "narrow" | "numeric" | "2-digit" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(316,9): error TS2717: Subsequent property declarations must have the same type.  Property 'day' must be of type 'string | undefined', but here has type '"numeric" | "2-digit" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(317,9): error TS2717: Subsequent property declarations must have the same type.  Property 'hour' must be of type 'string | undefined', but here has type '"numeric" | "2-digit" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(318,9): error TS2717: Subsequent property declarations must have the same type.  Property 'minute' must be of type 'string | undefined', but here has type '"numeric" | "2-digit" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(319,9): error TS2717: Subsequent property declarations must have the same type.  Property 'second' must be of type 'string | undefined', but here has type '"numeric" | "2-digit" | undefined'.
../../../../.dts/typescript-installs/4.2/node_modules/typescript/lib/lib.es2020.intl.d.ts(321,9): error TS2717: Subsequent property declarations must have the same type.  Property 'timeZoneName' must be of type 'string | undefined', but here has type '"long" | "short" | undefined'.

It looks like there are conflicts between the types of the fields for DateTimeFormatOptions between lib.es2020.intl.d.ts and lib.es5.d.ts. But this seems completely unrelated to my change.

@calebsander

Copy link
Copy Markdown
Contributor Author

Appears due to microsoft/TypeScript@bce412c, which was committed 2 days ago

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Dec 28, 2020
@typescript-bot

Copy link
Copy Markdown
Contributor

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

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

@calebsander

Copy link
Copy Markdown
Contributor Author

The bug in the TypeScript declaration files seems to have been fixed in microsoft/TypeScript@e4c4292.

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner labels Dec 29, 2020
@typescript-bot

Copy link
Copy Markdown
Contributor

@calebsander Everything looks good here. Great job! I am ready to merge this PR (at 3e7b477) 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.)

@calebsander

Copy link
Copy Markdown
Contributor Author

Ready to merge

@typescript-bot
typescript-bot merged commit afffc48 into DefinitelyTyped:master Jan 2, 2021
kaznovac pushed a commit to kaznovac/DefinitelyTyped that referenced this pull request Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package 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.

3 participants