[wiki] Watchflakes: add example for matching all subtests

1 view
Skip to first unread message

Michael Pratt (Gerrit)

unread,
5:13 PM (6 hours ago) 5:13 PM
to Michael Pratt, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Cherry Mui, golang-co...@googlegroups.com
Attention needed from Cherry Mui and Dmitri Shuralyov

Michael Pratt voted

Auto-Submit+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Cherry Mui
  • Dmitri Shuralyov
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: wiki
Gerrit-Branch: master
Gerrit-Change-Id: I57e259ad2fbf3cd81afef50644ce6e546a6a6964
Gerrit-Change-Number: 802381
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-Attention: Cherry Mui <cher...@google.com>
Gerrit-Attention: Dmitri Shuralyov <dmit...@golang.org>
Gerrit-Comment-Date: Fri, 17 Jul 2026 21:13:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy

Dmitri Shuralyov (Gerrit)

unread,
5:15 PM (6 hours ago) 5:15 PM
to Michael Pratt, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Cherry Mui, golang-co...@googlegroups.com
Attention needed from Cherry Mui and Michael Pratt

Dmitri Shuralyov voted and added 2 comments

Votes added by Dmitri Shuralyov

Code-Review+2

2 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Dmitri Shuralyov . resolved

Thanks.

File Watchflakes.md
Line 186, Patchset 1 (Latest): post <- pkg == "net/http" && test ~ `^TestServeIndexHtml/.*`
Dmitri Shuralyov . unresolved

Because of the mandatory '/', this will exclude failures in the top-level TestServeIndexHtml test itself. Maybe it's more common to want to match the test and all its subtests too? If so, consider something like:

```suggestion
post <- pkg == "net/http" && test ~ `^TestServeIndexHtml(/.+)?$`
```
Open in Gerrit

Related details

Attention is currently required from:
  • Cherry Mui
  • Michael Pratt
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: wiki
Gerrit-Branch: master
Gerrit-Change-Id: I57e259ad2fbf3cd81afef50644ce6e546a6a6964
Gerrit-Change-Number: 802381
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-Attention: Cherry Mui <cher...@google.com>
Gerrit-Attention: Michael Pratt <mpr...@google.com>
Gerrit-Comment-Date: Fri, 17 Jul 2026 21:15:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Cherry Mui (Gerrit)

unread,
5:33 PM (6 hours ago) 5:33 PM
to Michael Pratt, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, golang-co...@googlegroups.com
Attention needed from Michael Pratt

Cherry Mui voted and added 1 comment

Votes added by Cherry Mui

Code-Review+2

1 comment

File Watchflakes.md
Line 186, Patchset 1 (Latest): post <- pkg == "net/http" && test ~ `^TestServeIndexHtml/.*`
Dmitri Shuralyov . unresolved

Because of the mandatory '/', this will exclude failures in the top-level TestServeIndexHtml test itself. Maybe it's more common to want to match the test and all its subtests too? If so, consider something like:

```suggestion
post <- pkg == "net/http" && test ~ `^TestServeIndexHtml(/.+)?$`
```
Cherry Mui

In most cases a test's name is not a prefix of another, so `^TestServeIndexHtml` works just fine, and is what I usually do (and also omit the `^` as it is pretty rare a test has "Test" in the middle). We could be precise here, although it perhaps doesn't really matter much.

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Pratt
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: wiki
Gerrit-Branch: master
Gerrit-Change-Id: I57e259ad2fbf3cd81afef50644ce6e546a6a6964
Gerrit-Change-Number: 802381
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-Attention: Michael Pratt <mpr...@google.com>
Gerrit-Comment-Date: Fri, 17 Jul 2026 21:33:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Dmitri Shuralyov <dmit...@golang.org>
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages