You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(deps): update module github.com/onsi/ginkgo/v2 to v2.34.0 - #69
DeferOnFailure registers a callback that runs only when a spec fails - as soon as the failing node returns and before any teardown (JustAfterEach, AfterEach, AfterAll, DeferCleanup) - so it can capture the state teardown is about to destroy. It takes exactly what DeferCleanup takes and shares its scoping: called in BeforeEach/JustBeforeEach/It it covers the spec, in BeforeAll the ordered container, and in BeforeSuite the whole suite. It is also available on GinkgoT(); note that this adds a method to FullGinkgoTInterface, so hand-written implementations of that interface need to add it. See https://onsi.github.io/ginkgo/#capturing-failure-state-deferonfailure
Fixes
Progress reporters (AttachProgressReporter) are no longer called while Ginkgo holds an internal lock, so a reporter that calls CurrentSpecReport() or AddReportEntry() no longer stalls for 5 seconds and has its output dropped.
--sleep-on-failure now runs after any DeferOnFailure callbacks, also pauses when a spec times out, and no longer pauses if the suite has already been interrupted.
Configuration
📅 Schedule: (UTC)
Branch creation
"before 9am on monday"
Automerge
At any time (no schedule defined)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
If you want to rebase/retry this PR, check this box
Version change: github.com/onsi/ginkgo/v2 v2.33.1 -> v2.34.0 Semver bump type: minor
Changes:
New DeferOnFailure (also on GinkgoT()): a callback that runs only when a spec fails, before teardown. Using it also adds a method to FullGinkgoTInterface.
Fix: progress reporters (AttachProgressReporter) are no longer called while Ginkgo holds an internal lock.
Fix: --sleep-on-failure now runs after DeferOnFailure, also pauses on timeouts, and skips the pause once the suite is interrupted.
Breaking changes: None for this repo. The only incompatible change is the new method on FullGinkgoTInterface, which breaks hand-written implementations of that interface. This repo has none.
Security concerns: None. No CVEs. Only the ginkgo hashes change in go.sum, so no new transitive dependencies come in.
Impact on codebase: Ginkgo is a test-only dependency (errors_test.go), so library consumers are not affected. The go directive stays at 1.26.0. No uses of FullGinkgoTInterface, GinkgoT(), AttachProgressReporter or --sleep-on-failure were found.
Recommendation: REVIEW REQUIRED
Notes: The code itself is low risk. Two procedural points stop an automatic approval: the PR is authored by scality-renovate[bot] (only pure dependabot PRs are auto-approved), and CI (lint, test / Run on Ubuntu) was still running when this was checked. Once CI is green, a human can merge it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.33.1→v2.34.0This repository is a library. If this PR raises the
godirective, every consumer must build with that Go: check the lowest consumer first.Release Notes
onsi/ginkgo (github.com/onsi/ginkgo/v2)
v2.34.0Compare Source
Features
DeferOnFailureregisters a callback that runs only when a spec fails - as soon as the failing node returns and before any teardown (JustAfterEach,AfterEach,AfterAll,DeferCleanup) - so it can capture the state teardown is about to destroy. It takes exactly whatDeferCleanuptakes and shares its scoping: called inBeforeEach/JustBeforeEach/Itit covers the spec, inBeforeAllthe ordered container, and inBeforeSuitethe whole suite. It is also available onGinkgoT(); note that this adds a method toFullGinkgoTInterface, so hand-written implementations of that interface need to add it. See https://onsi.github.io/ginkgo/#capturing-failure-state-deferonfailureFixes
AttachProgressReporter) are no longer called while Ginkgo holds an internal lock, so a reporter that callsCurrentSpecReport()orAddReportEntry()no longer stalls for 5 seconds and has its output dropped.--sleep-on-failurenow runs after anyDeferOnFailurecallbacks, also pauses when a spec times out, and no longer pauses if the suite has already been interrupted.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.