patch-operator
patch-operator copied to clipboard
fix(deps): update module github.com/onsi/ginkgo to v2
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| github.com/onsi/ginkgo | v1.16.5 -> v2.23.4 |
Release Notes
onsi/ginkgo (github.com/onsi/ginkgo)
v2.23.4
2.23.4
Prior to this release Ginkgo would compute the incorrect number of available CPUs when running with -p in a linux container. Thanks to @βemirot for the fix!
Features
- Add automaxprocs for using CPUQuota [
2b9c428]
Fixes
- clarify gotchas about -vet flag [
1f59d07]
Maintenance
- bump dependencies [
2d134d5]
v2.23.3
2.23.3
Fixes
- allow
-as a standalone argument [cfcc1a5] - Bug Fix: Add GinkoTBWrapper.Chdir() and GinkoTBWrapper.Context() [
feaf292] - ignore exit code for symbol test on linux [
88e2282]
v2.23.2
2.23.2
πππ
At long last, some long-standing performance gaps between ginkgo and go test have been resolved!
Ginkgo operates by running go test -c to generate test binaries, and then running those binaries. It turns out that the compilation step of go test -c is slower than go test's compilation step because go test strips out debug symbols (ldflags=-w) whereas go test -c does not.
Ginkgo now passes the appropriate ldflags to go test -c when running specs to strip out symbols. This is only done when it is safe to do so and symbols are preferred when profiling is enabled and when ginkgo build is called explicitly.
This, coupled, with the instructions for disabling XProtect on MacOS yields a much better performance experience with Ginkgo.
v2.23.1
2.23.1
π¨ For users on MacOS π¨
A long-standing Ginkgo performance issue on MacOS seems to be due to mac's antimalware XProtect. You can follow the instructions here to disable it in your terminal. Doing so sped up Ginkgo's own test suite from 1m8s to 47s.
Fixes
Ginkgo's CLI is now a bit clearer if you pass flags in incorrectly:
- make it clearer that you need to pass a filename to the various profile flags, not an absolute directory [
a0e52ff] - emit an error and exit if the ginkgo invocation includes flags after positional arguments [
b799d8d]
This might cause existing CI builds to fail. If so then it's likely that your CI build was misconfigured and should be corrected. Open an issue if you need help.
v2.23.0
2.23.0
Ginkgo 2.23.0 adds a handful of methods to GinkgoT() to make it compatible with the testing.TB interface in Go 1.24. GinkgoT().Context(), in particular, is a useful shorthand for generating a new context that will clean itself up in a DeferCleanup(). This has subtle behavior differences from the golang implementation but should make sense in a Ginkgo... um... context.
Features
- bump to go 1.24.0 - support new testing.TB methods and add a test to cover testing.TB regressions [
37a511b]
Fixes
- fix edge case where build -o is pointing at an explicit file, not a directory [
7556a86] - Fix binary paths when precompiling multiple suites. [
4df06c6]
Maintenance
- Fix: Correct Markdown list rendering in MIGRATING_TO_V2.md [
cbcf39a] - docs: fix test workflow badge (#β1512) [
9b261ff] - Bump golang.org/x/net in /integration/_fixtures/version_mismatch_fixture (#β1516) [
00f19c8] - Bump golang.org/x/tools from 0.28.0 to 0.30.0 (#β1515) [
e98a4df] - Bump activesupport from 6.0.6.1 to 6.1.7.5 in /docs (#β1504) [
60cc4e2] - Bump github-pages from 231 to 232 in /docs (#β1447) [
fea6f2d] - Bump rexml from 3.2.8 to 3.3.9 in /docs (#β1497) [
31d7813] - Bump webrick from 1.8.1 to 1.9.1 in /docs (#β1501) [
fc3bbd6] - Code linting (#β1500) [
aee0d56] - change interface{} to any (#β1502) [
809a710]
v2.22.2
What's Changed
- Bump golang.org/x/net from 0.32.0 to 0.33.0 by @βdependabot in https://github.com/onsi/ginkgo/pull/1496
- Bump golang.org/x/crypto from 0.17.0 to 0.31.0 in /ginkgo/performance/_fixtures/performance_fixture by @βdependabot in https://github.com/onsi/ginkgo/pull/1498
- Bump github.com/onsi/gomega from 1.36.1 to 1.36.2 by @βdependabot in https://github.com/onsi/ginkgo/pull/1499
Full Changelog: https://github.com/onsi/ginkgo/compare/v2.22.1...v2.22.2
v2.22.1
2.22.1
Fixes
Fix CSV encoding
- Update tests [
aab3da6] - Properly encode CSV rows [
c09df39] - Add test case for proper csv escaping [
96a80fc] - Add meta-test [
43dad69]
Maintenance
- ensure *.test files are gitignored so we don't accidentally commit compiled tests again [
c88c634] - remove golang.org/x/net/context in favour of stdlib context [
4df44bf]
v2.22.0
2.22.0
Features
- Add label to serial nodes [
0fcaa08]
This allows serial tests to be filtered using the label-filter
Maintenance
Various doc fixes
v2.21.0
2.21.0
Features
- add support for GINKGO_TIME_FORMAT [
a69eb39] - add GINKGO_NO_COLOR to disable colors via environment variables [
bcab9c8]
Fixes
- increase threshold in timeline matcher [
e548367] - Fix the document by replacing
SpecsThatWillBeRunwithSpecsThatWillRun[c2c4d3c]
Maintenance
- bump various dependencies [
7e65a00]
v2.20.2
2.20.2
Require Go 1.22+
Maintenance
- bump go to v1.22 [
a671816]
v2.20.1
2.20.1
Fixes
- make BeSpecEvent duration matcher more forgiving [
d6f9640]
v2.20.0
2.20.0
Features
- Add buildvcs flag [
be5ab95]
Maintenance
v2.19.1
2.19.1
Fixes
- update supported platforms for race conditions [
63c8c30] - [build] Allow custom name for binaries. [
ff41e27]
Maintenance
- bump gomega [
76f4e0c] - Bump rexml from 3.2.6 to 3.2.8 in /docs (#β1417) [
b69c00d] - Bump golang.org/x/sys from 0.20.0 to 0.21.0 (#β1425) [
f097741]
v2.19.0
2.19.0
Features
Label Sets allow for more expressive and flexible label filtering.
v2.18.0
2.18.0
Features
- Add --slience-skips and --force-newlines [
f010b65] - fail when no tests were run and --fail-on-empty was set [
d80eebe]
Fixes
- Fix table entry context edge case [
42013d6]
Maintenance
- Bump golang.org/x/tools from 0.20.0 to 0.21.0 (#β1406) [
fcf1fd7] - Bump github.com/onsi/gomega from 1.33.0 to 1.33.1 (#β1399) [
8bb14fd] - Bump golang.org/x/net from 0.24.0 to 0.25.0 (#β1407) [
04bfad7]
v2.17.3
2.17.3
Fixes
ginkgo watch now ignores hidden files [bde6e00]
v2.17.2
2.17.2
Fixes
Maintenance
- Bump github.com/google/pprof [
d91fe4e] - Bump github.com/go-task/slim-sprig to v3 [
8cb662e] - Bump golang.org/x/net in /integration/_fixtures/version_mismatch_fixture (#β1391) [
3134422] - Bump github-pages from 230 to 231 in /docs (#β1384) [
eca81b4] - Bump golang.org/x/tools from 0.19.0 to 0.20.0 (#β1383) [
760def8] - Bump golang.org/x/net from 0.23.0 to 0.24.0 (#β1381) [
4ce33f4] - Fix test for gomega version bump [
f2fcd97] - Bump github.com/onsi/gomega from 1.30.0 to 1.33.0 (#β1390) [
fd622d2] - Bump golang.org/x/tools from 0.17.0 to 0.19.0 (#β1368) [
5474a26] - Bump github-pages from 229 to 230 in /docs (#β1359) [
e6d1170] - Bump google.golang.org/protobuf from 1.28.0 to 1.33.0 (#β1374) [
7f447b2] - Bump golang.org/x/net from 0.20.0 to 0.23.0 (#β1380) [
f15239a]
v2.17.1
2.17.1
Fixes
- If the user sets --seed=0, make sure all parallel nodes get the same seed [
af0330d]
v2.17.0
2.17.0
Features
- add
--github-outputfor nicer output in github actions [e8a2056]
Maintenance
v2.16.0
2.16.0
Features
- add SpecContext to reporting nodes
Fixes
- merge coverages instead of combining them (#β1329) (#β1340) [
23f0cc5] - core_dsl: disable Getwd() with environment variable (#β1357) [
cd418b7]
Maintenance
- docs/index.md: Typo [
2cebe8d] - fix docs [
06de431] - chore: test with Go 1.22 (#β1352) [
898cba9] - Bump golang.org/x/tools from 0.16.1 to 0.17.0 (#β1336) [
17ae120] - Bump golang.org/x/sys from 0.15.0 to 0.16.0 (#β1327) [
5a179ed] - Bump github.com/go-logr/logr from 1.3.0 to 1.4.1 (#β1321) [
a1e6b69] - Bump github-pages and jekyll-feed in /docs (#β1351) [
d52951d] - Fix docs for handling failures in goroutines (#β1339) [
4471b2e]
v2.15.0
2.15.0
Features
- JUnit reports now interpret Label(owner:X) and set owner to X. [
8f3bd70] - include cancellation reason when cancelling spec context [
96e915c]
Fixes
- emit output of failed go tool cover invocation so users can try to debug things for themselves [
c245d09] - fix outline when using nodot in ginkgo v2 [
dca77c8] - Document areas where GinkgoT() behaves differently from testing.T [
dbaf18f] - bugfix(docs): use Unsetenv instead of Clearenv (#β1337) [
6f67a14]
Maintenance
- Bump to go 1.20 [
4fcd0b3]
v2.14.0
2.14.0
Features
You can now use GinkgoTB() when you need an instance of testing.TB to pass to a library.
Prior to this release table testing only supported generating individual Its for each test entry. DescribeTableSubtree extends table testing support to entire testing subtrees - under the hood DescrieTableSubtree generates a new container for each entry and invokes your function to fill our the container. See the docs to learn more.
- Introduce DescribeTableSubtree [
65ec56d] - add GinkgoTB() to docs [
4a2c832] - Add GinkgoTB() function (#β1333) [
92b6744]
Fixes
- Fix typo in internal/suite.go (#β1332) [
beb9507] - Fix typo in docs/index.md (#β1319) [
4ac3a13] - allow wasm to compile with ginkgo present (#β1311) [
b2e5bc5]
Maintenance
- Bump golang.org/x/tools from 0.16.0 to 0.16.1 (#β1316) [
465a8ec] - Bump actions/setup-go from 4 to 5 (#β1313) [
eab0e40] - Bump github/codeql-action from 2 to 3 (#β1317) [
fbf9724] - Bump golang.org/x/crypto (#β1318) [
3ee80ee] - Bump golang.org/x/tools from 0.14.0 to 0.16.0 (#β1306) [
123e1d5] - Bump github.com/onsi/gomega from 1.29.0 to 1.30.0 (#β1297) [
558f6e0] - Bump golang.org/x/net from 0.17.0 to 0.19.0 (#β1307) [
84ff7f3]
v2.13.2
2.13.2
Fixes
- Fix file handler leak (#β1309) [
e2e81c8] - Avoid allocations with
(*regexp.Regexp).MatchString(#β1302) [3b2a2a7]
v2.13.1
2.13.1
Fixes
Maintenance
- Bump github.com/go-logr/logr from 1.2.4 to 1.3.0 (#β1291) [
7161a9d] - Bump golang.org/x/sys from 0.13.0 to 0.14.0 (#β1295) [
7fc7b10] - Bump golang.org/x/tools from 0.12.0 to 0.14.0 (#β1282) [
74bbd65] - Bump github.com/onsi/gomega from 1.27.10 to 1.29.0 (#β1290) [
9373633] - Bump golang.org/x/net in /integration/_fixtures/version_mismatch_fixture (#β1286) [
6e3cf65]
v2.13.0
2.13.0
Features
Add PreviewSpect() to enable programmatic preview access to the suite report (fixes #β1225)
v2.12.1
2.12.1
Fixes
Maintenance
- Bump actions/checkout from 3 to 4 (#β1271) [
555f543] - Bump golang.org/x/sys from 0.11.0 to 0.12.0 (#β1270) [
d867b7d]
v2.12.0
2.12.0
Features
Fixes
Maintenance
Various chores/dependency bumps.
v2.11.0
2.11.0
In prior versions of Ginkgo specs the CLI filter flags (e.g. --focus, --label-filter) would override any programmatic focus. This behavior has proved surprising and confusing in at least the following ways:
- users cannot combine programmatic filters and CLI filters to more efficiently select subsets of tests
- CLI filters can override programmatic focus on CI systems resulting in an exit code of 0 despite the presence of (incorrectly!) committed focused specs.
Going forward Ginkgo will AND all programmatic and CLI filters. Moreover, the presence of any programmatic focused tests will always result in a non-zero exit code.
This change is technically a change in Ginkgo's external contract and may require some users to make changes to successfully adopt. Specifically: it's possible some users were intentionally using CLI filters to override programmatic focus. If this is you please open an issue so we can explore solutions to the underlying problem you are trying to solve.
Fixes
- Programmatic focus is no longer overwrriten by CLI filters [
d6bba86]
Maintenance
- Bump github.com/onsi/gomega from 1.27.7 to 1.27.8 (#β1218) [
4a70a38] - Bump golang.org/x/sys from 0.8.0 to 0.9.0 (#β1219) [
97eda4d]
v2.10.0
2.10.0
Features
- feat(ginkgo/generators): add --tags flag (#β1216) [
a782a77] adds a new --tags flag to ginkgo generate
Fixes
Maintenance
v2.9.7
2.9.7
Fixes
- fix race when multiple defercleanups are called in goroutines [
07fc3a0]
v2.9.6
2.9.6
Fixes
Maintenance
v2.9.5
2.9.5
Fixes
- ensure the correct deterministic sort order is produced when ordered specs are generated by a helper function [
7fa0b6b]
Maintenance
- fix generators link (#β1200) [
9f9d8b9] - Bump golang.org/x/tools from 0.8.0 to 0.9.1 (#β1196) [
150e3f2] - fix spelling err in docs (#β1199) [
0013b1a] - Bump golang.org/x/sys from 0.7.0 to 0.8.0 (#β1193) [
9e9e3e5]
v2.9.4
2.9.4
Fixes
-
fix hang with ginkgo -p (#β1192) [
15d4bdc] - this addresses a long standing issue related to Ginkgo hanging when a child process spawned by the test does not exit. -
fix: fail fast may cause Serial spec or cleanup Node interrupted (#β1178) [
8dea88b] - prior to this there was a small gap in which specs on other processes might start even if one process has tried to abort the suite.
Maintenance
- Document run order when multiple setup nodes are at the same nesting level [
903be81]
v2.9.3
2.9.3
Features
- Add RenderTimeline to GinkgoT() [
c0c77b6]
Fixes
- update Measure deprecation message. fixes #β1176 [
227c662] - add newlines to GinkgoLogr (#β1170) (#β1171) [
0de0e7c]
Maintenance
- Bump commonmarker from 0.23.8 to 0.23.9 in /docs (#β1183) [
8b925ab] - Bump nokogiri from 1.14.1 to 1.14.3 in /docs (#β1184) [
e3795a4] - Bump golang.org/x/tools from 0.7.0 to 0.8.0 (#β1182) [
b453793] - Bump actions/setup-go from 3 to 4 (#β1164) [
73ed75b] - Bump github.com/onsi/gomega from 1.27.4 to 1.27.6 (#β1173) [
0a2bc64] - Bump github.com/go-logr/logr from 1.2.3 to 1.2.4 (#β1174) [
f41c557] - Bump golang.org/x/sys from 0.6.0 to 0.7.0 (#β1179) [
8e423e5]
v2.9.2
2.9.2
Maintenance
- Bump github.com/go-task/slim-sprig (#β1167) [
3fcc5bf] - Bump github.com/onsi/gomega from 1.27.3 to 1.27.4 (#β1163) [
6143ffe]
v2.9.1
2.9.1
Fixes
This release fixes a longstanding issue where ginkgo -coverpkg=./... would not work. This is now resolved and fixes #β1161 and #β995
Maintenance
v2.9.0
2.9.0
Features
-
AttachProgressReporter is an experimental feature that allows users to provide arbitrary information when a ProgressReport is requested [
28801fe] -
GinkgoT() has been expanded to include several Ginkgo-specific methods [
2bd5a3b]The intent is to enable the development of third-party libraries that integrate deeply with Ginkgo using
GinkgoT()to access Ginkgo's functionality.
v2.8.4
2.8.4
Features
- Add OmitSuiteSetupNodes to JunitReportConfig (#β1147) [
979fbc2] - Add a reference to ginkgolinter in docs.index.md (#β1143) [
8432589]
Fixes
- rename tools hack to see if it fixes things for downstream users [
a8bb39a]
Maintenance
- Bump golang.org/x/text (#β1144) [
41b2a8a] - Bump github.com/onsi/gomega from 1.27.0 to 1.27.1 (#β1142) [
7c4f583]
v2.8.3
2.8.3
Released to fix security issue in golang.org/x/net dependency
Maintenance
- Bump golang.org/x/net from 0.6.0 to 0.7.0 (#β1141) [
fc1a02e] - remove tools.go hack from documentation [
0718693]
v2.8.2
2.8.2
Ginkgo now includes a tools.go file in the root directory of the ginkgo package. This should allow modules that simply go get github.com/onsi/ginkgo/v2 to also pull in the CLI dependencies. This obviates the need for consumers of Ginkgo to have their own tools.go file and makes it simpler to ensure that the version of the ginkgo CLI being used matches the version of the library. You can simply run go run github.com/onsi/ginkgo/v2/ginkgo to run the version of the cli associated with your package go.mod.
Maintenance
- Bump github.com/onsi/gomega from 1.26.0 to 1.27.0 (#β1139) [
5767b0a] - Fix minor typos (#β1138) [
e1e9723] - Fix link in V2 Migration Guide (#β1137) [
a588f60]
v2.8.1
2.8.1
Fixes
- lock around default report output to avoid triggering the race detector when calling By from goroutines [
2d5075a] - don't run ReportEntries through sprintf [
febbe38]
Maintenance
- Bump golang.org/x/tools from 0.5.0 to 0.6.0 (#β1135) [
11a4860] - test: update matrix for Go 1.20 (#β1130) [
4890a62] - Bump golang.org/x/sys from 0.4.0 to 0.5.0 (#β1133) [
a774638] - Bump github.com/onsi/gomega from 1.25.0 to 1.26.0 (#β1120) [
3f233bd] - Bump github-pages from 227 to 228 in /docs (#β1131) [
f9b8649] - Bump activesupport from 6.0.6 to 6.0.6.1 in /docs (#β1127) [
6f8c042] - Update index.md with instructions on how to upgrade Ginkgo [
833a75e]
v2.8.0
2.8.0
Features
- Introduce GinkgoHelper() to track and exclude helper functions from potential CodeLocations [
e19f556]
Modeled after testing.T.Helper(). Now, rather than write code like:
func helper(model Model) {
Expect(model).WithOffset(1).To(BeValid())
Expect(model.SerialNumber).WithOffset(1).To(MatchRegexp(/[a-f0-9]*/))
}
you can stop tracking offsets (which makes nesting composing helpers nearly impossible) and simply write:
func helper(model Model) {
GinkgoHelper()
Expect(model).To(BeValid())
Expect(model.SerialNumber).To(MatchRegexp(/[a-f0-9]*/))
}
- Introduce GinkgoLabelFilter() and Label().MatchesLabelFilter() to make it possible to programmatically match filters (fixes #β1119) [
2f6597c]
You can now write code like this:
BeforeSuite(func() {
if Label("slow").MatchesLabelFilter(GinkgoLabelFilter()) {
// do slow setup
}
if Label("fast").MatchesLabelFilter(GinkgoLabelFilter()) {
// do fast setup
}
})
to programmatically check whether a given set of labels will match the configured --label-filter.
Maintenance
- Bump webrick from 1.7.0 to 1.8.1 in /docs (#β1125) [
ea4966e] - cdeql: add ruby language (#β1124) [
9dd275b] - dependabot: add bundler package-ecosystem for docs (#β1123) [
14e7bdd]
v2.7.1
2.7.1
Fixes
- Bring back SuiteConfig.EmitSpecProgress to avoid compilation issue for consumers that set it manually [
d2a1cb0]
Maintenance
- Bump github.com/onsi/gomega from 1.24.2 to 1.25.0 (#β1118) [
cafece6] - Bump golang.org/x/tools from 0.4.0 to 0.5.0 (#β1111) [
eda66c2] - Bump golang.org/x/sys from 0.3.0 to 0.4.0 (#β1112) [
ac5ccaa] - Bump github.com/onsi/gomega from 1.24.1 to 1.24.2 (#β1097) [
eee6480]
v2.7.0
2.7.0
Features
- Introduce ContinueOnFailure for Ordered containers [
e0123ca] - Ordered containers that are also decorated with ContinueOnFailure will not stop running specs after the first spec fails. - Support for bootstrap commands to use custom data for templates (#β1110) [
7a2b242] - Support for labels and pending decorator in ginkgo outline output (#β1113) [
e6e3b98] - Color aliases for custom color support (#β1101) [
49fab7a]
Fixes
- correctly ensure deterministic spec order, even if specs are generated by iterating over a map [
89dda20] - Fix a bug where timedout specs were not correctly treated as failures when determining whether or not to run AfterAlls in an Ordered container.
- Ensure go test coverprofile outputs to the expected location (#β1105) [
b0bd77b]
v2.6.1
2.6.1
Features
- Override formatter colors from envvars - this is a new feature but an alternative approach involving config files might be taken in the future (#β1095) [
60240d1]
Fixes
- GinkgoRecover now supports ignoring panics that match a specific, hidden, interface [
301f3e2]
Maintenance
- Bump github.com/onsi/gomega from 1.24.0 to 1.24.1 (#β1077) [
3643823] - Bump golang.org/x/tools from 0.2.0 to 0.4.0 (#β1090) [
f9f856e] - Bump nokogiri from 1.13.9 to 1.13.10 in /docs (#β1091) [
0d7087e]
v2.6.0
2.6.0
Features
ReportBeforeSuiteprovides access to the suite report before the suite begins.- Add junit config option for omitting leafnodetype (#β1088) [
956e6d2] - Add support to customize junit report config to omit spec labels (#β1087) [
de44005]
Fixes
- Fix stack trace pruning so that it has a chance of working on windows [
2165648]
v2.5.1
2.5.1
Fixes
- skipped tests only show as 'S' when running with -v [
3ab38ae] - Fix typo in docs/index.md (#β1082) [
55fc58d] - Fix typo in docs/index.md (#β1081) [
8a14f1f] - Fix link notation in docs/index.md (#β1080) [
2669612] - Fix typo in
--progressdeprecation message (#β1076) [b4b7edc]
Maintenance
- chore: Included githubactions in the dependabot config (#β976) [
baea341] - Bump golang.org/x/sys from 0.1.0 to 0.2.0 (#β1075) [
9646297]
v2.5.0
2.5.0
Ginkgo output now includes a timeline-view of the spec
This commit changes Ginkgo's default output. Spec details are now presented as a timeline that includes events that occur during the spec lifecycle interleaved with any GinkgoWriter content. This makes is much easier to understand the flow of a spec and where a given failure occurs.
The --progress, --slow-spec-threshold, --always-emit-ginkgo-writer flags
and the SuppressProgressReporting decorator have all been deprecated. Instead
the existing -v and -vv flags better capture the level of verbosity to display. However,
a new --show-node-events flag is added to include node > Enter and < Exit events
in the spec timeline.
In addition, JUnit reports now include the timeline (rendered with -vv) and custom JUnit
reports can be configured and generated using
GenerateJUnitReportWithConfig(report types.Report, dst string, config JunitReportConfig)
Code should continue to work unchanged with this version of Ginkgo - however if you have tooling that was relying on the specific output format of Ginkgo you may run into issues. Ginkgo's console output is not guaranteed to be stable for tooling and automation purposes. You should, instead, use Ginkgo's JSON format to build tooling on top of as it has stronger guarantees to be stable from version to version.
Features
- Provide details about which timeout expired [
0f2fa27]
Fixes
- Add Support Policy to docs [
c70867a]
Maintenance
v2.4.0
2.4.0
Features
- DeferCleanup supports functions with multiple-return values [
5e33c75] - Add GinkgoLogr (#β1067) [
bf78c28] - Introduction of 'MustPassRepeatedly' decorator (#β1051) [
047c02f]
Fixes
- correcting some typos (#β1064) [
1403d3c] - fix flaky internal_integration interupt specs [
2105ba3] - Correct busted link in README [
be6b5b9]
Maintenance
- Bump actions/checkout from 2 to 3 (#β1062) [
8a2f483] - Bump golang.org/x/tools from 0.1.12 to 0.2.0 (#β1065) [
529c4e8] - Bump github/codeql-action from 1 to 2 (#β1061) [
da09146] - Bump actions/setup-go from 2 to 3 (#β1060) [
918040d] - Bump github.com/onsi/gomega from 1.22.0 to 1.22.1 (#β1053) [
2098e4d] - Bump nokogiri from 1.13.8 to 1.13.9 in /docs (#β1066) [
1d74122] - Add GHA to dependabot config [
4442772]
v2.3.1
2.3.1
Fixes
Several users were invoking ginkgo by installing the latest version of the cli via go install github.com/onsi/ginkgo/v2/ginkgo@latest. When 2.3.0 was released this resulted in an influx of issues as CI systems failed due to a change in the internal contract between the Ginkgo CLI and the Ginkgo library. Ginkgo only supports running the same version of the library as the cli (which is why both are packaged in the same repository).
With this patch release, the ginkgo CLI can now identify a version mismatch and emit a helpful error message.
- Ginkgo cli can identify version mismatches and emit a helpful error message [
bc4ae2f] - further emphasize that a version match is required when running Ginkgo on CI and/or locally [
2691dd8]
Maintenance
- bump gomega to v1.22.0 [
822a937]
v2.3.0
2.3.0
Interruptible Nodes and Timeouts
Ginkgo now supports per-node and per-spec timeouts on interruptible nodes. Check out the documentation for all the details but the gist is you can now write specs like this:
It("is interruptible", func(ctx SpecContext) { // or context.Context instead of SpecContext, both are valid.
// do things until `ctx.Done()` is closed, for example:
req, err := http.NewRequestWithContext(ctx, "POST", "/build-widgets", nil)
Expect(err).NotTo(HaveOccured())
_, err := http.DefaultClient.Do(req)
Expect(err).NotTo(HaveOccured())
Eventually(client.WidgetCount).WithContext(ctx).Should(Equal(17))
}, NodeTimeout(time.Second*20), GracePeriod(5*time.Second))
and have Ginkgo ensure that the node completes before the timeout elapses. If it does elapse, or if an external interrupt is received (e.g. ^C) then Ginkgo will cancel the context and wait for the Grace Period for the node to exit before proceeding with any cleanup nodes associated with the spec. The ctx provided by Ginkgo can also be passed down to Gomega's Eventually to have all assertions within the node governed by a single deadline.
Features
- Ginkgo now records any additional failures that occur during the cleanup of a failed spec. In prior versions this information was quietly discarded, but the introduction of a more rigorous approach to timeouts and interruptions allows Ginkgo to better track subsequent failures.
SpecContextalso provides a mechanism for third-party libraries to provide additional information when a Progress Report is generated. Gomega uses this to provide the current state of anEventually().WithContext()assertion when a Progress Report is requested.- DescribeTable now exits with an error if it is not passed any Entries [
a4c9865]
Fixes
- fixes crashes on newer Ruby 3 installations by upgrading github-pages gem dependency [
92c88d5] - Make the outline command able to use the DSL import [
1be2427]
Maintenance
- chore(docs): delete no meaning d [
57c373c] - chore(docs): Fix hyperlinks [
30526d5] - chore(docs): fix code blocks without language settings [
cf611c4] - fix intra-doc link [
b541bcb]
v2.2.0
2.2.0
Generate real-time Progress Reports [f91377c]
Ginkgo can now generate Progress Reports to point users at the current running line of code (including a preview of the actual source code) and a best guess at the most relevant subroutines.
These Progress Reports allow users to debug stuck or slow tests without exiting the Ginkgo process. A Progress Report can be generated at any time by sending Ginkgo
Configuration
π Schedule: Branch creation - "* 0-3 * * 1" (UTC), 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
This PR was generated by Mend Renovate. View the repository job log.