[vscode-go] src/goDebugFactory: increase timeout for dlv dap server start

169 views
Skip to first unread message

Hyang-Ah Hana Kim (Gerrit)

unread,
Aug 16, 2021, 3:59:05 PM8/16/21
to Suzy Mueller, goph...@pubsubhelper.golang.org, Hyang-Ah Hana Kim, golang-co...@googlegroups.com

Attention is currently required from: Suzy Mueller.

Hyang-Ah Hana Kim would like Suzy Mueller to review this change.

View Change

src/goDebugFactory: increase timeout for dlv dap server start

Some users are experiencing slow dlv dap server start.
The root cause of this slow start still needs investigation.

For golang/vscode-go#1693

Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
---
M src/goDebugFactory.ts
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/goDebugFactory.ts b/src/goDebugFactory.ts
index 241cee6..224e23a 100644
--- a/src/goDebugFactory.ts
+++ b/src/goDebugFactory.ts
@@ -418,13 +418,13 @@
const p = spawn(dlvPath, dlvArgs, {
cwd: dir,
env,
- stdio: ['pipe', 'pipe', 'pipe', 'pipe'] // --log-dest=3
+ stdio: onWindows ? ['pipe', 'pipe', 'pipe'] : ['pipe', 'pipe', 'pipe', 'pipe'] // --log-dest=3 if !onWindows.
});
let started = false;
- const timeoutToken: NodeJS.Timer = setTimeout(
- () => reject(new Error('timed out while waiting for DAP server to start')),
- 5_000
- );
+ const timeoutToken: NodeJS.Timer = setTimeout(() => {
+ logConsole(`Delve DAP server (PID: ${p.pid}) is not responding`);
+ reject(new Error('timed out while waiting for DAP server to start'));
+ }, 5_000);

const stopWaitingForServerToStart = () => {
clearTimeout(timeoutToken);

To view, visit change 342632. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: vscode-go
Gerrit-Branch: master
Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
Gerrit-Change-Number: 342632
Gerrit-PatchSet: 1
Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
Gerrit-Attention: Suzy Mueller <suz...@golang.org>
Gerrit-MessageType: newchange

kokoro (Gerrit)

unread,
Aug 16, 2021, 4:13:01 PM8/16/21
to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, Suzy Mueller, golang-co...@googlegroups.com

Attention is currently required from: Suzy Mueller.

Kokoro presubmit build finished with status: SUCCESS
Logs at: https://source.cloud.google.com/results/invocations/11c752d4-fd87-46af-8956-d2e41d72804b

Patch set 1:TryBot-Result +1

View Change

    To view, visit change 342632. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: vscode-go
    Gerrit-Branch: master
    Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
    Gerrit-Change-Number: 342632
    Gerrit-PatchSet: 1
    Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
    Gerrit-Reviewer: kokoro <noreply...@google.com>
    Gerrit-Attention: Suzy Mueller <suz...@golang.org>
    Gerrit-Comment-Date: Mon, 16 Aug 2021 20:12:57 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Suzy Mueller (Gerrit)

    unread,
    Aug 19, 2021, 1:08:03 PM8/19/21
    to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, kokoro, golang-co...@googlegroups.com

    Attention is currently required from: Hyang-Ah Hana Kim.

    View Change

    1 comment:

    To view, visit change 342632. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: vscode-go
    Gerrit-Branch: master
    Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
    Gerrit-Change-Number: 342632
    Gerrit-PatchSet: 1
    Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
    Gerrit-Reviewer: kokoro <noreply...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Thu, 19 Aug 2021 17:07:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Hyang-Ah Hana Kim (Gerrit)

    unread,
    Aug 20, 2021, 9:38:50 AM8/20/21
    to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, kokoro, Suzy Mueller, golang-co...@googlegroups.com

    Attention is currently required from: Suzy Mueller.

    Patch set 2:Trust +1

    View Change

    1 comment:

    • File src/goDebugFactory.ts:

      • huh. what I was doing. Thanks.
        Changed to 30s.

    To view, visit change 342632. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: vscode-go
    Gerrit-Branch: master
    Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
    Gerrit-Change-Number: 342632
    Gerrit-PatchSet: 2
    Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
    Gerrit-Reviewer: kokoro <noreply...@google.com>
    Gerrit-Attention: Suzy Mueller <suz...@golang.org>
    Gerrit-Comment-Date: Fri, 20 Aug 2021 13:38:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Suzy Mueller <suz...@golang.org>
    Gerrit-MessageType: comment

    Suzy Mueller (Gerrit)

    unread,
    Aug 20, 2021, 11:00:38 AM8/20/21
    to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, kokoro, golang-co...@googlegroups.com

    Attention is currently required from: Hyang-Ah Hana Kim.

    Patch set 2:Code-Review +2

    View Change

      To view, visit change 342632. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: vscode-go
      Gerrit-Branch: master
      Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
      Gerrit-Change-Number: 342632
      Gerrit-PatchSet: 2
      Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
      Gerrit-Reviewer: kokoro <noreply...@google.com>
      Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Comment-Date: Fri, 20 Aug 2021 15:00:33 +0000

      Hyang-Ah Hana Kim (Gerrit)

      unread,
      Aug 20, 2021, 3:04:03 PM8/20/21
      to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Suzy Mueller, kokoro, golang-co...@googlegroups.com

      Hyang-Ah Hana Kim submitted this change.

      View Change

      Approvals: Suzy Mueller: Looks good to me, approved Hyang-Ah Hana Kim: Trusted
      src/goDebugFactory: increase timeout for dlv dap server start

      Some users are experiencing slow dlv dap server start.
      The root cause of this slow start still needs investigation.

      For golang/vscode-go#1693

      Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
      Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/342632
      Trust: Hyang-Ah Hana Kim <hya...@gmail.com>
      Reviewed-by: Suzy Mueller <suz...@golang.org>

      ---
      M src/goDebugFactory.ts
      1 file changed, 5 insertions(+), 5 deletions(-)

      diff --git a/src/goDebugFactory.ts b/src/goDebugFactory.ts
      index 241cee6..a71b53e 100644

      --- a/src/goDebugFactory.ts
      +++ b/src/goDebugFactory.ts
      @@ -418,13 +418,13 @@
      const p = spawn(dlvPath, dlvArgs, {
      cwd: dir,
      env,
      - stdio: ['pipe', 'pipe', 'pipe', 'pipe'] // --log-dest=3
      + stdio: onWindows ? ['pipe', 'pipe', 'pipe'] : ['pipe', 'pipe', 'pipe', 'pipe'] // --log-dest=3 if !onWindows.
      });
      let started = false;
      - const timeoutToken: NodeJS.Timer = setTimeout(
      - () => reject(new Error('timed out while waiting for DAP server to start')),
      - 5_000
      - );
      + const timeoutToken: NodeJS.Timer = setTimeout(() => {
      + logConsole(`Delve DAP server (PID: ${p.pid}) is not responding`);
      + reject(new Error('timed out while waiting for DAP server to start'));
      +		}, 30_000);


      const stopWaitingForServerToStart = () => {
      clearTimeout(timeoutToken);

      To view, visit change 342632. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: vscode-go
      Gerrit-Branch: master
      Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
      Gerrit-Change-Number: 342632
      Gerrit-PatchSet: 3
      Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
      Gerrit-Reviewer: kokoro <noreply...@google.com>
      Gerrit-MessageType: merged

      Hyang-Ah Hana Kim (Gerrit)

      unread,
      Aug 26, 2021, 9:49:23 PM8/26/21
      to goph...@pubsubhelper.golang.org, Hyang-Ah Hana Kim, golang-co...@googlegroups.com

      Hyang-Ah Hana Kim has uploaded this change for review.

      View Change

      [release] src/goDebugFactory: increase timeout for dlv dap server start


      Some users are experiencing slow dlv dap server start.
      The root cause of this slow start still needs investigation.

      For golang/vscode-go#1693

      Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
      Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/342632
      Trust: Hyang-Ah Hana Kim <hya...@gmail.com>
      Reviewed-by: Suzy Mueller <suz...@golang.org>
      (cherry picked from commit c79e0c4e664f02771330cb6741b121cfbd649021)

      ---
      M src/goDebugFactory.ts
      1 file changed, 5 insertions(+), 5 deletions(-)

      diff --git a/src/goDebugFactory.ts b/src/goDebugFactory.ts
      index 01f77c1..09fceda 100644

      --- a/src/goDebugFactory.ts
      +++ b/src/goDebugFactory.ts
      @@ -418,13 +418,13 @@
      const p = spawn(dlvPath, dlvArgs, {
      cwd: dir,
      env,
      - stdio: ['pipe', 'pipe', 'pipe', 'pipe'] // --log-dest=3
      + stdio: onWindows ? ['pipe', 'pipe', 'pipe'] : ['pipe', 'pipe', 'pipe', 'pipe'] // --log-dest=3 if !onWindows.
      });
      let started = false;
      - const timeoutToken: NodeJS.Timer = setTimeout(
      - () => reject(new Error('timed out while waiting for DAP server to start')),
      - 5_000
      - );
      + const timeoutToken: NodeJS.Timer = setTimeout(() => {
      + logConsole(`Delve DAP server (PID: ${p.pid}) is not responding`);
      + reject(new Error('timed out while waiting for DAP server to start'));
      + }, 30_000);

      const stopWaitingForServerToStart = () => {
      clearTimeout(timeoutToken);

      To view, visit change 345550. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: vscode-go
      Gerrit-Branch: release
      Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
      Gerrit-Change-Number: 345550
      Gerrit-PatchSet: 1
      Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-MessageType: newchange

      Hyang-Ah Hana Kim (Gerrit)

      unread,
      Aug 26, 2021, 10:20:50 PM8/26/21
      to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, Suzy Mueller, Go Bot, golang-co...@googlegroups.com

      Attention is currently required from: Suzy Mueller.

      Patch set 1:Run-TryBot +1

      View Change

        To view, visit change 345550. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: vscode-go
        Gerrit-Branch: release
        Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
        Gerrit-Change-Number: 345550
        Gerrit-PatchSet: 1
        Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
        Gerrit-CC: Go Bot <go...@golang.org>
        Gerrit-Attention: Suzy Mueller <suz...@golang.org>
        Gerrit-Comment-Date: Fri, 27 Aug 2021 02:20:46 +0000

        kokoro (Gerrit)

        unread,
        Aug 26, 2021, 10:32:58 PM8/26/21
        to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, Suzy Mueller, Go Bot, golang-co...@googlegroups.com

        Attention is currently required from: Suzy Mueller.

        Kokoro presubmit build finished with status: SUCCESS
        Logs at: https://source.cloud.google.com/results/invocations/66e312c5-c919-4159-b5d1-b58d9944ff9f

        Patch set 1:TryBot-Result +1

        View Change

          To view, visit change 345550. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: vscode-go
          Gerrit-Branch: release
          Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
          Gerrit-Change-Number: 345550
          Gerrit-PatchSet: 1
          Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
          Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
          Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
          Gerrit-Reviewer: kokoro <noreply...@google.com>
          Gerrit-CC: Go Bot <go...@golang.org>
          Gerrit-Attention: Suzy Mueller <suz...@golang.org>
          Gerrit-Comment-Date: Fri, 27 Aug 2021 02:32:53 +0000

          Suzy Mueller (Gerrit)

          unread,
          Aug 27, 2021, 6:16:48 PM8/27/21
          to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, kokoro, Go Bot, golang-co...@googlegroups.com

          Attention is currently required from: Hyang-Ah Hana Kim.

          Patch set 1:Code-Review +2

          View Change

            To view, visit change 345550. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-Project: vscode-go
            Gerrit-Branch: release
            Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
            Gerrit-Change-Number: 345550
            Gerrit-PatchSet: 1
            Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
            Gerrit-Reviewer: kokoro <noreply...@google.com>
            Gerrit-CC: Go Bot <go...@golang.org>
            Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-Comment-Date: Fri, 27 Aug 2021 22:16:44 +0000

            Suzy Mueller (Gerrit)

            unread,
            Aug 27, 2021, 6:17:09 PM8/27/21
            to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, kokoro, Go Bot, golang-co...@googlegroups.com

            Attention is currently required from: Hyang-Ah Hana Kim.

            Patch set 1:Trust +1

            View Change

              To view, visit change 345550. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: vscode-go
              Gerrit-Branch: release
              Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
              Gerrit-Change-Number: 345550
              Gerrit-PatchSet: 1
              Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
              Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
              Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
              Gerrit-Reviewer: kokoro <noreply...@google.com>
              Gerrit-CC: Go Bot <go...@golang.org>
              Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
              Gerrit-Comment-Date: Fri, 27 Aug 2021 22:17:04 +0000

              Hyang-Ah Hana Kim (Gerrit)

              unread,
              Aug 27, 2021, 6:19:52 PM8/27/21
              to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, Suzy Mueller, kokoro, Go Bot, golang-co...@googlegroups.com

              Patch set 1:Trust +1

              View Change

                To view, visit change 345550. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: vscode-go
                Gerrit-Branch: release
                Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
                Gerrit-Change-Number: 345550
                Gerrit-PatchSet: 1
                Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                Gerrit-Reviewer: kokoro <noreply...@google.com>
                Gerrit-CC: Go Bot <go...@golang.org>
                Gerrit-Comment-Date: Fri, 27 Aug 2021 22:19:48 +0000

                Hyang-Ah Hana Kim (Gerrit)

                unread,
                Aug 27, 2021, 6:20:11 PM8/27/21
                to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Suzy Mueller, kokoro, Go Bot, golang-co...@googlegroups.com

                Hyang-Ah Hana Kim submitted this change.

                View Change


                Approvals: Suzy Mueller: Looks good to me, approved; Trusted Hyang-Ah Hana Kim: Trusted; Run TryBots kokoro: TryBots succeeded
                [release] src/goDebugFactory: increase timeout for dlv dap server start

                Some users are experiencing slow dlv dap server start.
                The root cause of this slow start still needs investigation.

                For golang/vscode-go#1693

                Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
                Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/342632
                Trust: Hyang-Ah Hana Kim <hya...@gmail.com>
                Reviewed-by: Suzy Mueller <suz...@golang.org>
                (cherry picked from commit c79e0c4e664f02771330cb6741b121cfbd649021)
                Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/345550
                Run-TryBot: Hyang-Ah Hana Kim <hya...@gmail.com>
                TryBot-Result: kokoro <noreply...@google.com>
                Trust: Suzy Mueller <suz...@golang.org>

                To view, visit change 345550. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: vscode-go
                Gerrit-Branch: release
                Gerrit-Change-Id: Ie932bc2b9b7d273e0be2553b9fc154f2ae0b3ead
                Gerrit-Change-Number: 345550
                Gerrit-PatchSet: 2
                Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                Gerrit-Reviewer: kokoro <noreply...@google.com>
                Gerrit-CC: Go Bot <go...@golang.org>
                Gerrit-MessageType: merged
                Reply all
                Reply to author
                Forward
                0 new messages