[vscode-go] debug: respect go test flags usage

106 views
Skip to first unread message

Gerrit Bot (Gerrit)

unread,
Aug 26, 2022, 5:18:31 AM8/26/22
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gerrit Bot has uploaded this change for review.

View Change

debug: respect go test flags usage

The `go test` require the package list appear before any flag unknown to the `go test` command.
But `vscode-go` constructs arguments for the go test call with `testify` that doesn't respect the usage.
This PR fixes this problem by filling in the package list first.

Fixes: #1831

Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
GitHub-Last-Rev: fe6720d3b8ec55927db1a3df38bb44438afde503
GitHub-Pull-Request: golang/vscode-go#2428
---
M src/testUtils.ts
1 file changed, 29 insertions(+), 12 deletions(-)

diff --git a/src/testUtils.ts b/src/testUtils.ts
index e9a43b5..4df9e0b 100644
--- a/src/testUtils.ts
+++ b/src/testUtils.ts
@@ -427,11 +427,14 @@
addJSONFlag: boolean | undefined; // true if we add extra -json flag for stream processing.
} {
const args: Array<string> = ['test'];
+ const outArgs:Array<string> = ['test']; // command to show
// user-specified flags
const argsFlagIdx = testconfig.flags?.indexOf('-args') ?? -1;
const userFlags = argsFlagIdx < 0 ? testconfig.flags : testconfig.flags.slice(0, argsFlagIdx);
const userArgsFlags = argsFlagIdx < 0 ? [] : testconfig.flags.slice(argsFlagIdx);

+ args.push(...targets);
+
// flags to limit test time
if (testconfig.isBenchmark) {
args.push('-benchmem', '-run=^$');
@@ -469,21 +472,12 @@
// all other test run/benchmark flags
args.push(...targetArgs(testconfig));

- const outArgs = args.slice(0); // command to show
-
// if user set -v, set -json to emulate streaming test output
const addJSONFlag = (userFlags.includes('-v') || testconfig.goTestOutputConsumer) && !userFlags.includes('-json');
if (addJSONFlag) {
args.push('-json'); // this is not shown to the user.
}

- if (targets.length > 4) {
- outArgs.push('<long arguments omitted>');
- } else {
- outArgs.push(...targets);
- }
- args.push(...targets);
-
// ensure that user provided flags are appended last (allow use of -args ...)
// ignore user provided -run flag if we are already using it
if (args.indexOf('-run') > -1) {
@@ -491,10 +485,16 @@
}

args.push(...userFlags);
- outArgs.push(...userFlags);
-
args.push(...userArgsFlags);
- outArgs.push(...userArgsFlags);
+
+ // build outArgs
+ if (targets.length > 4) {
+ outArgs.push('<long arguments omitted>');
+ } else {
+ outArgs.push(...targets);
+ }
+
+ outArgs.push(...args.slice(targets.length + 1));

return {
args,

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

Gerrit-Project: vscode-go
Gerrit-Branch: master
Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
Gerrit-Change-Number: 425835
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-MessageType: newchange

Gopher Robot (Gerrit)

unread,
Aug 26, 2022, 5:19:25 AM8/26/22
to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Congratulations on opening your first change. Thank you for your contribution!

Next steps:
A maintainer will review your change and provide feedback. See
https://go.dev/doc/contribute#review for more info and tips to get your
patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be
surprising to people new to the project. The careful, iterative review process
is our way of helping mentor contributors and ensuring that their contributions
have a lasting impact.

View Change

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

    Gerrit-Project: vscode-go
    Gerrit-Branch: master
    Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
    Gerrit-Change-Number: 425835
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Fri, 26 Aug 2022 09:19:23 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Gerrit Bot (Gerrit)

    unread,
    Aug 26, 2022, 5:36:00 AM8/26/22
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Attention is currently required from: Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller.

    Gerrit Bot uploaded patch set #2 to this change.

    View Change

    debug: respect go test flags usage

    The `go test` require the package list appear before any flag unknown to the `go test` command.
    But `vscode-go` constructs arguments for the go test call with `testify` that doesn't respect the usage.
    This PR fixes this problem by filling in the package list first.

    Fixes: [#1831](https://github.com/golang/vscode-go/issues/1831)


    Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
    GitHub-Last-Rev: fe6720d3b8ec55927db1a3df38bb44438afde503
    GitHub-Pull-Request: golang/vscode-go#2428
    ---
    M src/testUtils.ts
    1 file changed, 29 insertions(+), 12 deletions(-)

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

    Gerrit-Project: vscode-go
    Gerrit-Branch: master
    Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
    Gerrit-Change-Number: 425835
    Gerrit-PatchSet: 2
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
    Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Attention: Suzy Mueller <suz...@golang.org>
    Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-MessageType: newpatchset

    Jamal Carvalho (Gerrit)

    unread,
    Sep 14, 2022, 12:53:39 PM9/14/22
    to Gerrit Bot, goph...@pubsubhelper.golang.org, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

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

    Patch set 2:Run-TryBot +1

    View Change

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

      Gerrit-Project: vscode-go
      Gerrit-Branch: master
      Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
      Gerrit-Change-Number: 425835
      Gerrit-PatchSet: 2
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
      Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-Attention: Suzy Mueller <suz...@golang.org>
      Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
      Gerrit-Comment-Date: Wed, 14 Sep 2022 16:53:36 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      Gerrit-MessageType: comment

      kokoro (Gerrit)

      unread,
      Sep 14, 2022, 1:07:33 PM9/14/22
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Jamal Carvalho, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

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

      Kokoro presubmit build finished with status: FAILURE
      Logs at: https://source.cloud.google.com/results/invocations/2f3a2a0f-2c8f-42dc-87fc-35ad4ea6cd9a

      Patch set 2:TryBot-Result -1

      View Change

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

        Gerrit-Project: vscode-go
        Gerrit-Branch: master
        Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
        Gerrit-Change-Number: 425835
        Gerrit-PatchSet: 2
        Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
        Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
        Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
        Gerrit-Reviewer: kokoro <noreply...@google.com>
        Gerrit-CC: Gopher Robot <go...@golang.org>
        Gerrit-Attention: Suzy Mueller <suz...@golang.org>
        Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-Comment-Date: Wed, 14 Sep 2022 17:07:28 +0000

        Jamal Carvalho (Gerrit)

        unread,
        Sep 14, 2022, 1:28:06 PM9/14/22
        to Gerrit Bot, goph...@pubsubhelper.golang.org, kokoro, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

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

        View Change

        1 comment:

        • Patchset:

          • Patch Set #2:

            This would require updates to `/test/integration/test.test.ts`

            ```
            8 failing
            1) Test Go Test Args
            default config:
                  AssertionError [ERR_ASSERTION]: actual command
            + expected - actual
                  -test ./... -timeout 30s
            +test -timeout 30s ./...
              2) Test Go Test Args
            user flag [-v] enables -json flag:
                  AssertionError [ERR_ASSERTION]: actual command
            + expected - actual
                  -test ./... -timeout 30s -json -v
            +test -timeout 30s -json ./... -v
              3) Test Go Test Args
            user flag [-json -v] prevents -json flag addition:
                  AssertionError [ERR_ASSERTION]: actual command
            + expected - actual
                  -test ./... -timeout 30s -json -v
            +test -timeout 30s ./... -json -v

            4) Test Go Test Args
            user flag [-args] does not crash:
                  AssertionError [ERR_ASSERTION]: actual command
            + expected - actual
                  -test ./... -timeout 30s -args
            +test -timeout 30s ./... -args

            5) Test Go Test Args
            user flag [-args -v] does not enable -json flag:
                  AssertionError [ERR_ASSERTION]: actual command
            + expected - actual
                  -test ./... -timeout 30s -args -v
            +test -timeout 30s ./... -args -v
              6) Test Go Test Args
            specifying functions adds -run flags:
                  AssertionError [ERR_ASSERTION]: actual command
            + expected - actual
                  -test ./... -timeout 30s -run ^(TestA|TestB)$
            +test -timeout 30s -run ^(TestA|TestB)$ ./...

            7) Test Go Test Args
            functions & benchmark adds -bench flags and skips timeout:
                  AssertionError [ERR_ASSERTION]: actual command
            + expected - actual
                  -test ./... -benchmem -run=^$ -bench ^(TestA|TestB)$
            +test -benchmem -run=^$ -bench ^(TestA|TestB)$ ./...

            8) Test Go Test Args
            user -run flag is ignored when functions are provided:
                  AssertionError [ERR_ASSERTION]: actual command
            + expected - actual
                  -test ./... -timeout 30s -run ^(TestA|TestB)$
            +test -timeout 30s -run ^(TestA|TestB)$ ./...
            ```

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

        Gerrit-Project: vscode-go
        Gerrit-Branch: master
        Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
        Gerrit-Change-Number: 425835
        Gerrit-PatchSet: 2
        Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
        Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
        Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
        Gerrit-Reviewer: kokoro <noreply...@google.com>
        Gerrit-CC: Gopher Robot <go...@golang.org>
        Gerrit-Attention: Suzy Mueller <suz...@golang.org>
        Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-Comment-Date: Wed, 14 Sep 2022 17:28:00 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Gerrit-MessageType: comment

        Gerrit Bot (Gerrit)

        unread,
        Sep 14, 2022, 11:30:45 PM9/14/22
        to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

        Attention is currently required from: Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller.

        Gerrit Bot uploaded patch set #3 to this change.

        View Change

        The following approvals got outdated and were removed: Run-TryBot+1 by Jamal Carvalho, TryBot-Result-1 by kokoro

        debug: respect go test flags usage

        The `go test` require the package list appear before any flag unknown to the `go test` command.
        But `vscode-go` constructs arguments for the go test call with `testify` that doesn't respect the usage.
        This PR fixes this problem by filling in the package list first.

        Fixes: [#1831](https://github.com/golang/vscode-go/issues/1831)

        Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
        GitHub-Last-Rev: dd931e4023241e9168636822d72ecf33c00e3cd3

        GitHub-Pull-Request: golang/vscode-go#2428
        ---
        M src/testUtils.ts
        M test/integration/test.test.ts
        2 files changed, 45 insertions(+), 28 deletions(-)

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

        Gerrit-Project: vscode-go
        Gerrit-Branch: master
        Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
        Gerrit-Change-Number: 425835
        Gerrit-PatchSet: 3
        Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
        Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
        Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
        Gerrit-Reviewer: kokoro <noreply...@google.com>
        Gerrit-CC: Gopher Robot <go...@golang.org>
        Gerrit-Attention: Suzy Mueller <suz...@golang.org>
        Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
        Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
        Gerrit-MessageType: newpatchset

        Hyang-Ah Hana Kim (Gerrit)

        unread,
        Sep 16, 2022, 12:36:04 PM9/16/22
        to Gerrit Bot, leo steve, goph...@pubsubhelper.golang.org, Hyang-Ah Hana Kim, kokoro, Jamal Carvalho, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

        Attention is currently required from: Jamal Carvalho, Suzy Mueller.

        Patch set 3:Run-TryBot +1

        View Change

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

          Gerrit-Project: vscode-go
          Gerrit-Branch: master
          Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
          Gerrit-Change-Number: 425835
          Gerrit-PatchSet: 3
          Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
          Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
          Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
          Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
          Gerrit-Reviewer: kokoro <noreply...@google.com>
          Gerrit-CC: Gopher Robot <go...@golang.org>
          Gerrit-CC: leo steve <aios...@gmail.com>
          Gerrit-Attention: Suzy Mueller <suz...@golang.org>
          Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
          Gerrit-Comment-Date: Fri, 16 Sep 2022 16:35:59 +0000

          kokoro (Gerrit)

          unread,
          Sep 16, 2022, 12:49:51 PM9/16/22
          to Gerrit Bot, leo steve, goph...@pubsubhelper.golang.org, Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

          Attention is currently required from: Jamal Carvalho, Suzy Mueller.

          Kokoro presubmit build finished with status: FAILURE
          Logs at: https://source.cloud.google.com/results/invocations/4ef79603-c794-4a3b-81b9-037bdd2dd747

          Patch set 3:TryBot-Result -1

          View Change

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

            Gerrit-Project: vscode-go
            Gerrit-Branch: master
            Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
            Gerrit-Change-Number: 425835
            Gerrit-PatchSet: 3
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
            Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
            Gerrit-Reviewer: kokoro <noreply...@google.com>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: leo steve <aios...@gmail.com>
            Gerrit-Attention: Suzy Mueller <suz...@golang.org>
            Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
            Gerrit-Comment-Date: Fri, 16 Sep 2022 16:49:45 +0000

            leo steve (Gerrit)

            unread,
            Sep 16, 2022, 3:12:16 PM9/16/22
            to Gerrit Bot, goph...@pubsubhelper.golang.org, kokoro, Jamal Carvalho, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

            Attention is currently required from: Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller.

            View Change

            2 comments:

            • Patchset:

              • Patch Set #2:

                This would require updates to `/test/integration/test.test.ts` […]

                Thank you. I have added the modifications to the test code.

            • Patchset:

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

            Gerrit-Project: vscode-go
            Gerrit-Branch: master
            Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
            Gerrit-Change-Number: 425835
            Gerrit-PatchSet: 3
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
            Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
            Gerrit-Reviewer: kokoro <noreply...@google.com>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: leo steve <aios...@gmail.com>
            Gerrit-Attention: Suzy Mueller <suz...@golang.org>
            Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
            Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-Comment-Date: Fri, 16 Sep 2022 04:01:52 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Jamal Carvalho <ja...@golang.org>
            Gerrit-MessageType: comment

            Gerrit Bot (Gerrit)

            unread,
            Sep 18, 2022, 10:17:17 PM9/18/22
            to leo steve, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

            Attention is currently required from: Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller.

            Gerrit Bot uploaded patch set #4 to this change.

            View Change

            The following approvals got outdated and were removed: Run-TryBot+1 by Hyang-Ah Hana Kim, TryBot-Result-1 by kokoro

            debug: respect go test flags usage

            The `go test` require the package list appear before any flag unknown to the `go test` command.
            But `vscode-go` constructs arguments for the go test call with `testify` that doesn't respect the usage.
            This PR fixes this problem by filling in the package list first.

            Fixes: [#1831](https://github.com/golang/vscode-go/issues/1831)

            Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
            GitHub-Last-Rev: 42ec3e852d1540786c0091692ce0668e5fc131bc

            GitHub-Pull-Request: golang/vscode-go#2428
            ---
            M src/testUtils.ts
            M test/integration/test.test.ts
            2 files changed, 45 insertions(+), 28 deletions(-)

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

            Gerrit-Project: vscode-go
            Gerrit-Branch: master
            Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
            Gerrit-Change-Number: 425835
            Gerrit-PatchSet: 4
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
            Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
            Gerrit-Reviewer: kokoro <noreply...@google.com>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: leo steve <aios...@gmail.com>
            Gerrit-Attention: Suzy Mueller <suz...@golang.org>
            Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
            Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-MessageType: newpatchset

            leo steve (Gerrit)

            unread,
            Sep 18, 2022, 10:20:01 PM9/18/22
            to Gerrit Bot, goph...@pubsubhelper.golang.org, kokoro, Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

            Attention is currently required from: Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller.

            View Change

            1 comment:

            • Patchset:

              • Patch Set #4:

                I didn't notice an error in the original unit test, which has been fixed. Please help review again. Thank you.

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

            Gerrit-Project: vscode-go
            Gerrit-Branch: master
            Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
            Gerrit-Change-Number: 425835
            Gerrit-PatchSet: 4
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
            Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
            Gerrit-Reviewer: kokoro <noreply...@google.com>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: leo steve <aios...@gmail.com>
            Gerrit-Attention: Suzy Mueller <suz...@golang.org>
            Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
            Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
            Gerrit-Comment-Date: Mon, 19 Sep 2022 02:19:54 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Gerrit-MessageType: comment

            Jamal Carvalho (Gerrit)

            unread,
            Sep 19, 2022, 10:45:45 AM9/19/22
            to Gerrit Bot, leo steve, goph...@pubsubhelper.golang.org, kokoro, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

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

            Patch set 4:Run-TryBot +1

            View Change

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

              Gerrit-Project: vscode-go
              Gerrit-Branch: master
              Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
              Gerrit-Change-Number: 425835
              Gerrit-PatchSet: 4
              Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
              Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
              Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
              Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
              Gerrit-Reviewer: kokoro <noreply...@google.com>
              Gerrit-CC: Gopher Robot <go...@golang.org>
              Gerrit-CC: leo steve <aios...@gmail.com>
              Gerrit-Attention: Suzy Mueller <suz...@golang.org>
              Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
              Gerrit-Comment-Date: Mon, 19 Sep 2022 14:45:42 +0000

              kokoro (Gerrit)

              unread,
              Sep 19, 2022, 10:58:16 AM9/19/22
              to Gerrit Bot, leo steve, goph...@pubsubhelper.golang.org, Jamal Carvalho, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

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

              Kokoro presubmit build finished with status: FAILURE
              Logs at: https://source.cloud.google.com/results/invocations/b9782042-27cf-4c72-b039-03bd2ae738e6

              Patch set 4:TryBot-Result -1

              View Change

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

                Gerrit-Project: vscode-go
                Gerrit-Branch: master
                Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                Gerrit-Change-Number: 425835
                Gerrit-PatchSet: 4
                Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
                Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
                Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                Gerrit-Reviewer: kokoro <noreply...@google.com>
                Gerrit-CC: Gopher Robot <go...@golang.org>
                Gerrit-CC: leo steve <aios...@gmail.com>
                Gerrit-Attention: Suzy Mueller <suz...@golang.org>
                Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Comment-Date: Mon, 19 Sep 2022 14:58:10 +0000

                Gerrit Bot (Gerrit)

                unread,
                Sep 19, 2022, 10:42:21 PM9/19/22
                to leo steve, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

                Attention is currently required from: Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller.

                Gerrit Bot uploaded patch set #5 to this change.

                View Change

                The following approvals got outdated and were removed: Run-TryBot+1 by Jamal Carvalho, TryBot-Result-1 by kokoro

                debug: respect go test flags usage

                The `go test` require the package list appear before any flag unknown to the `go test` command.
                But `vscode-go` constructs arguments for the go test call with `testify` that doesn't respect the usage.
                This PR fixes this problem by filling in the package list first.

                Fixes: [#1831](https://github.com/golang/vscode-go/issues/1831)

                Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                GitHub-Last-Rev: 98a9bdb777b44fe3e34de12888140eaad1ea8c7a

                GitHub-Pull-Request: golang/vscode-go#2428
                ---
                M src/testUtils.ts
                M test/integration/test.test.ts
                2 files changed, 45 insertions(+), 28 deletions(-)

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

                Gerrit-Project: vscode-go
                Gerrit-Branch: master
                Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                Gerrit-Change-Number: 425835
                Gerrit-PatchSet: 5
                Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
                Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
                Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                Gerrit-Reviewer: kokoro <noreply...@google.com>
                Gerrit-CC: Gopher Robot <go...@golang.org>
                Gerrit-CC: leo steve <aios...@gmail.com>
                Gerrit-Attention: Suzy Mueller <suz...@golang.org>
                Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
                Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-MessageType: newpatchset

                leo steve (Gerrit)

                unread,
                Sep 19, 2022, 10:46:28 PM9/19/22
                to Gerrit Bot, goph...@pubsubhelper.golang.org, kokoro, Jamal Carvalho, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

                Attention is currently required from: Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller.

                View Change

                1 comment:

                • Patchset:

                  • Patch Set #5:

                    Fixed code style issues. Thanks again for your review.

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

                Gerrit-Project: vscode-go
                Gerrit-Branch: master
                Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                Gerrit-Change-Number: 425835
                Gerrit-PatchSet: 5
                Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
                Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
                Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                Gerrit-Reviewer: kokoro <noreply...@google.com>
                Gerrit-CC: Gopher Robot <go...@golang.org>
                Gerrit-CC: leo steve <aios...@gmail.com>
                Gerrit-Attention: Suzy Mueller <suz...@golang.org>
                Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
                Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Comment-Date: Tue, 20 Sep 2022 02:46:22 +0000

                Jamal Carvalho (Gerrit)

                unread,
                Sep 21, 2022, 1:34:00 PM9/21/22
                to Gerrit Bot, leo steve, goph...@pubsubhelper.golang.org, kokoro, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

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

                View Change

                1 comment:

                • Patchset:

                  • Patch Set #5:

                    Small lint failure. Please run prettier or add the formatting fix to testUtils.ts.


                    ```
                    /workspace/src/testUtils.ts
                    430:16 error Insert `·` prettier/prettier
                    ✖ 1 problem (1 error, 0 warnings)
                    1 error and 0 warnings potentially fixable with the `--fix` option.
                    ```

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

                Gerrit-Project: vscode-go
                Gerrit-Branch: master
                Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                Gerrit-Change-Number: 425835
                Gerrit-PatchSet: 5
                Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
                Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
                Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                Gerrit-Reviewer: kokoro <noreply...@google.com>
                Gerrit-CC: Gopher Robot <go...@golang.org>
                Gerrit-CC: leo steve <aios...@gmail.com>
                Gerrit-Attention: Suzy Mueller <suz...@golang.org>
                Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Comment-Date: Wed, 21 Sep 2022 17:33:56 +0000

                leo steve (Gerrit)

                unread,
                Sep 21, 2022, 10:24:18 PM9/21/22
                to Gerrit Bot, goph...@pubsubhelper.golang.org, kokoro, Jamal Carvalho, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

                Attention is currently required from: Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller.

                View Change

                1 comment:

                • Patchset:

                  • Patch Set #5:

                    Small lint failure. Please run prettier or add the formatting fix to testUtils.ts. […]

                    Hi Jamal, I have fixed this error, does it happen again?

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

                Gerrit-Project: vscode-go
                Gerrit-Branch: master
                Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                Gerrit-Change-Number: 425835
                Gerrit-PatchSet: 5
                Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
                Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
                Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                Gerrit-Reviewer: kokoro <noreply...@google.com>
                Gerrit-CC: Gopher Robot <go...@golang.org>
                Gerrit-CC: leo steve <aios...@gmail.com>
                Gerrit-Attention: Suzy Mueller <suz...@golang.org>
                Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
                Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Comment-Date: Thu, 22 Sep 2022 02:24:12 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No

                leo steve (Gerrit)

                unread,
                Sep 21, 2022, 10:37:53 PM9/21/22
                to Gerrit Bot, goph...@pubsubhelper.golang.org, kokoro, Jamal Carvalho, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

                Attention is currently required from: Hyang-Ah Hana Kim, Jamal Carvalho, Suzy Mueller.

                View Change

                1 comment:

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

                Gerrit-Project: vscode-go
                Gerrit-Branch: master
                Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                Gerrit-Change-Number: 425835
                Gerrit-PatchSet: 5
                Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
                Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
                Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                Gerrit-Reviewer: kokoro <noreply...@google.com>
                Gerrit-CC: Gopher Robot <go...@golang.org>
                Gerrit-CC: leo steve <aios...@gmail.com>
                Gerrit-Attention: Suzy Mueller <suz...@golang.org>
                Gerrit-Attention: Jamal Carvalho <ja...@golang.org>
                Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
                Gerrit-Comment-Date: Thu, 22 Sep 2022 02:37:47 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Comment-In-Reply-To: leo steve <aios...@gmail.com>

                Jamal Carvalho (Gerrit)

                unread,
                Sep 22, 2022, 9:31:42 AM9/22/22
                to Gerrit Bot, leo steve, goph...@pubsubhelper.golang.org, kokoro, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

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

                Patch set 5:Run-TryBot +1

                View Change

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

                  Gerrit-Project: vscode-go
                  Gerrit-Branch: master
                  Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                  Gerrit-Change-Number: 425835
                  Gerrit-PatchSet: 5
                  Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
                  Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                  Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
                  Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                  Gerrit-Reviewer: kokoro <noreply...@google.com>
                  Gerrit-CC: Gopher Robot <go...@golang.org>
                  Gerrit-CC: leo steve <aios...@gmail.com>
                  Gerrit-Attention: Suzy Mueller <suz...@golang.org>
                  Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
                  Gerrit-Comment-Date: Thu, 22 Sep 2022 13:31:37 +0000

                  kokoro (Gerrit)

                  unread,
                  Sep 22, 2022, 9:41:44 AM9/22/22
                  to Gerrit Bot, leo steve, goph...@pubsubhelper.golang.org, Jamal Carvalho, Hyang-Ah Hana Kim, Suzy Mueller, Gopher Robot, golang-co...@googlegroups.com

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

                  Kokoro presubmit build finished with status: SUCCESS
                  Logs at: https://source.cloud.google.com/results/invocations/00e33dfe-207f-4046-9cbb-1a3691ef327a

                  Patch set 5:TryBot-Result +1

                  View Change

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

                    Gerrit-Project: vscode-go
                    Gerrit-Branch: master
                    Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                    Gerrit-Change-Number: 425835
                    Gerrit-PatchSet: 5
                    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
                    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                    Gerrit-Reviewer: Jamal Carvalho <ja...@golang.org>
                    Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                    Gerrit-Reviewer: kokoro <noreply...@google.com>
                    Gerrit-CC: Gopher Robot <go...@golang.org>
                    Gerrit-CC: leo steve <aios...@gmail.com>
                    Gerrit-Attention: Suzy Mueller <suz...@golang.org>
                    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
                    Gerrit-Comment-Date: Thu, 22 Sep 2022 13:41:39 +0000

                    Gerrit Bot (Gerrit)

                    unread,
                    Oct 10, 2024, 12:26:37 AM10/10/24
                    to leo steve, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
                    Attention needed from Hyang-Ah Hana Kim, Jamal and Suzy Mueller

                    Gerrit Bot uploaded new patchset

                    Gerrit Bot uploaded patch set #6 to this change.
                    Following approvals got outdated and were removed:
                    • Legacy-TryBots-Pass: TryBot-Result+1 by kokoro, Run-TryBot+1 by Jamal
                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Hyang-Ah Hana Kim
                    • Jamal
                    • Suzy Mueller
                    Submit Requirements:
                    • requirement is not satisfiedCode-Review
                    • requirement satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    • requirement is not satisfiedkokoro-CI-Passes
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: newpatchset
                    Gerrit-Project: vscode-go
                    Gerrit-Branch: master
                    Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                    Gerrit-Change-Number: 425835
                    Gerrit-PatchSet: 6
                    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
                    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
                    Gerrit-Reviewer: Jamal <ja...@golang.org>
                    Gerrit-Reviewer: Suzy Mueller <suz...@golang.org>
                    Gerrit-Reviewer: kokoro <noreply...@google.com>
                    Gerrit-CC: Gopher Robot <go...@golang.org>
                    Gerrit-CC: leo steve <aios...@gmail.com>
                    Gerrit-Attention: Suzy Mueller <suz...@golang.org>
                    Gerrit-Attention: Jamal <ja...@golang.org>
                    unsatisfied_requirement
                    satisfied_requirement
                    open
                    diffy

                    Gerrit Bot (Gerrit)

                    unread,
                    Oct 10, 2024, 2:22:07 AM10/10/24
                    to leo steve, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
                    Attention needed from Hyang-Ah Hana Kim, Jamal and Suzy Mueller

                    Gerrit Bot uploaded new patchset

                    Gerrit Bot uploaded patch set #7 to this change.
                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Hyang-Ah Hana Kim
                    • Jamal
                    • Suzy Mueller
                    Submit Requirements:
                    • requirement is not satisfiedCode-Review
                    • requirement satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    • requirement is not satisfiedkokoro-CI-Passes
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: newpatchset
                    Gerrit-Project: vscode-go
                    Gerrit-Branch: master
                    Gerrit-Change-Id: Ic2804cc1d061445ddcd95f8217282141627df778
                    Gerrit-Change-Number: 425835
                    Gerrit-PatchSet: 7
                    unsatisfied_requirement
                    satisfied_requirement
                    open
                    diffy
                    Reply all
                    Reply to author
                    Forward
                    0 new messages