fix(deps): update module github.com/onsi/ginkgo/v2 to v2.25.1

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-08-22 06:31:44 +00:00
committed by GitHub
parent 3548ae1caf
commit 18aa78a7e6
8 changed files with 26 additions and 11 deletions

View File

@@ -1,3 +1,9 @@
## 2.25.1
### Fixes
- fix(types): ignore nameless nodes on FullText() [10866d3]
- chore: fix some CodeQL warnings [2e42cff]
## 2.25.0
### `AroundNode`

View File

@@ -2,12 +2,9 @@ package watch
import (
"go/build"
"regexp"
"strings"
)
var ginkgoAndGomegaFilter = regexp.MustCompile(`github\.com/onsi/ginkgo|github\.com/onsi/gomega`)
var ginkgoIntegrationTestFilter = regexp.MustCompile(`github\.com/onsi/ginkgo/integration`) //allow us to integration test this thing
type Dependencies struct {
deps map[string]int
}
@@ -78,7 +75,7 @@ func (d Dependencies) resolveAndAdd(deps []string, depth int) {
if err != nil {
continue
}
if !pkg.Goroot && (!ginkgoAndGomegaFilter.MatchString(pkg.Dir) || ginkgoIntegrationTestFilter.MatchString(pkg.Dir)) {
if !pkg.Goroot && (!matchesGinkgoOrGomega(pkg.Dir) || matchesGinkgoIntegration(pkg.Dir)) {
d.addDepIfNotPresent(pkg.Dir, depth)
}
}
@@ -90,3 +87,11 @@ func (d Dependencies) addDepIfNotPresent(dep string, depth int) {
d.deps[dep] = depth
}
}
func matchesGinkgoOrGomega(s string) bool {
return strings.Contains(s, "github.com/onsi/ginkgo") || strings.Contains(s, "github.com/onsi/gomega")
}
func matchesGinkgoIntegration(s string) bool {
return strings.Contains(s, "github.com/onsi/ginkgo/integration") // allow us to integration test this thing
}

View File

@@ -236,7 +236,7 @@ func extractRunningGoroutines() ([]types.Goroutine, error) {
}
functionCall.Filename = line[:delimiterIdx]
line = strings.Split(line[delimiterIdx+1:], " ")[0]
lineNumber, err := strconv.ParseInt(line, 10, 64)
lineNumber, err := strconv.ParseInt(line, 10, 32)
functionCall.Line = int(lineNumber)
if err != nil {
return nil, types.GinkgoErrors.FailedToParseStackTrace(fmt.Sprintf("Invalid function call line number: %s\n%s", line, err.Error()))

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"os"
"slices"
"sort"
"strings"
"time"
@@ -299,6 +300,9 @@ func (report SpecReport) FullText() string {
if report.LeafNodeText != "" {
texts = append(texts, report.LeafNodeText)
}
texts = slices.DeleteFunc(texts, func(t string) bool {
return t == ""
})
return strings.Join(texts, " ")
}

View File

@@ -1,3 +1,3 @@
package types
const VERSION = "2.25.0"
const VERSION = "2.25.1"