mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-08-23 22:26:49 +00:00
🌱 Bump github.com/onsi/ginkgo/v2 from 2.29.0 to 2.30.0 (#1570)
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.29.0 to 2.30.0. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.29.0...v2.30.0) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.30.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
+11
@@ -1,3 +1,14 @@
|
||||
## 2.30.0
|
||||
|
||||
### Features
|
||||
Ginkgo now allows `extentions/global.Reset` to support running multiple suites from within a single process. This may take some massaging on your part (see [1672](https://github.com/onsi/ginkgo/issues/1672)) but can dramatically speed up codebases with O(hundreds) of test suites.
|
||||
|
||||
Thanks @lawrencejones !
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix nested --github-output group for progress report nested inside timeline [4f62d7a]
|
||||
|
||||
## 2.29.0
|
||||
|
||||
`GinkgoHelperGo` makes it easier to write test helpers that need to run in goroutines. Specifically, it makes managing the failure state and capturing failure panics correctly straightforward.
|
||||
|
||||
+2
-3
@@ -39,7 +39,6 @@ var flagSet types.GinkgoFlagSet
|
||||
var deprecationTracker = types.NewDeprecationTracker()
|
||||
var suiteConfig = types.NewDefaultSuiteConfig()
|
||||
var reporterConfig = types.NewDefaultReporterConfig()
|
||||
var suiteDidRun = false
|
||||
var outputInterceptor internal.OutputInterceptor
|
||||
var client parallel_support.Client
|
||||
|
||||
@@ -259,10 +258,10 @@ for more on how specs are parallelized in Ginkgo.
|
||||
You can also pass suite-level Label() decorators to RunSpecs. The passed-in labels will apply to all specs in the suite.
|
||||
*/
|
||||
func RunSpecs(t GinkgoTestingT, description string, args ...any) bool {
|
||||
if suiteDidRun {
|
||||
if global.SuiteDidRun {
|
||||
exitIfErr(types.GinkgoErrors.RerunningSuite())
|
||||
}
|
||||
suiteDidRun = true
|
||||
global.SuiteDidRun = true
|
||||
err := global.PushClone()
|
||||
if err != nil {
|
||||
exitIfErr(err)
|
||||
|
||||
+7
@@ -8,6 +8,12 @@ var Suite *internal.Suite
|
||||
var Failer *internal.Failer
|
||||
var backupSuite *internal.Suite
|
||||
|
||||
// SuiteDidRun tracks whether RunSpecs has already been invoked for the current global
|
||||
// suite. It lives here (rather than in package ginkgo) so that InitializeGlobals can
|
||||
// clear it, allowing extensions/globals.Reset to support running multiple suites
|
||||
// sequentially in a single process.
|
||||
var SuiteDidRun bool
|
||||
|
||||
func init() {
|
||||
InitializeGlobals()
|
||||
}
|
||||
@@ -15,6 +21,7 @@ func init() {
|
||||
func InitializeGlobals() {
|
||||
Failer = internal.NewFailer()
|
||||
Suite = internal.NewSuite()
|
||||
SuiteDidRun = false
|
||||
}
|
||||
|
||||
func PushClone() error {
|
||||
|
||||
+2
-1
@@ -423,7 +423,7 @@ func (r *DefaultReporter) emitTimeline(indent uint, report types.SpecReport, tim
|
||||
case types.ReportEntry:
|
||||
r.emitReportEntry(indent, x)
|
||||
case types.ProgressReport:
|
||||
r.emitProgressReport(indent, false, isVeryVerbose, x)
|
||||
r.emitProgressReport(indent, isVeryVerbose, false, x)
|
||||
case types.SpecEvent:
|
||||
if isVeryVerbose || !x.IsOnlyVisibleAtVeryVerbose() || r.conf.ShowNodeEvents {
|
||||
r.emitSpecEvent(indent, x, isVeryVerbose)
|
||||
@@ -533,6 +533,7 @@ func (r *DefaultReporter) emitProgressReport(indent uint, emitGinkgoWriterOutput
|
||||
indent -= 1
|
||||
}
|
||||
|
||||
// Emit only top-level groups because github logging cannot handle nested groups correctly.
|
||||
if r.conf.GithubOutput && emitGroup {
|
||||
r.emitBlock(r.fi(indent, "::group::Progress Report"))
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
package types
|
||||
|
||||
const VERSION = "2.29.0"
|
||||
const VERSION = "2.30.0"
|
||||
|
||||
Reference in New Issue
Block a user