Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/onsi/gomega to v1.36.0 #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 17, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/onsi/gomega v1.10.2 -> v1.36.0 age adoption passing confidence

Release Notes

onsi/gomega (github.com/onsi/gomega)

v1.36.0

Compare Source

1.36.0

Features
  • new: make collection-related matchers Go 1.23 iterator aware [4c964c6]
Maintenance
  • Replace min/max helpers with built-in min/max [ece6872]
  • Fix some typos in docs [8e924d7]

v1.35.1

Compare Source

1.35.1

Fixes
  • Export EnforceDefaultTimeoutsWhenUsingContexts and DisableDefaultTimeoutsWhenUsingContext [ca36da1]

v1.35.0

Compare Source

1.35.0

Features
  • You can now call EnforceDefaultTimeoutsWhenUsingContexts() to have Eventually honor the default timeout when passed a context. (prior to this you had to expclility add a timeout) [e4c4265]
  • You can call StopTrying(message).Successfully() to abort a Consistently early without failure [eeca931]
Fixes
  • Stop memoizing the result of HaveField to avoid unexpected errors when used with async assertions. [3bdbc4e]
Maintenance

v1.34.2

Compare Source

1.34.2

Require Go 1.22+

Maintenance
  • bump ginkgo as well [c59c6dc]
  • bump to go 1.22 - remove x/exp dependency [8158b99]

v1.34.1

Compare Source

1.34.1

Maintenance
  • Use slices from exp/slices to keep golang 1.20 compat [5e71dcd]

v1.34.0

Compare Source

1.34.0

Features
  • Add RoundTripper method to ghttp.Server [c549e0d]
Fixes
  • fix incorrect handling of nil slices in HaveExactElements (fixes #​771) [878940c]
  • issue_765 - fixed bug in Hopcroft-Karp algorithm [ebadb67]
Maintenance

v1.33.1

Compare Source

1.33.1

Fixes
  • fix confusing eventually docs [3a66379]
Maintenance
  • Bump github.com/onsi/ginkgo/v2 from 2.17.1 to 2.17.2 [e9bc35a]

v1.33.0

Compare Source

1.33.0

Features

Receive not accepts Receive(<POINTER>, MATCHER>), allowing you to pick out a specific value on the channel that satisfies the provided matcher and is stored in the provided pointer.

Maintenance

v1.32.0

Compare Source

1.32.0

Maintenance
  • Migrate github.com/golang/protobuf to google.golang.org/protobuf [436a197]

    This release drops the deprecated github.com/golang/protobuf and adopts google.golang.org/protobuf. Care was taken to ensure the release is backwards compatible (thanks @​jbduncan !). Please open an issue if you run into one.

  • chore: test with Go 1.22 (#​733) [32ef35e]

  • Bump golang.org/x/net from 0.19.0 to 0.20.0 (#​717) [a0d0387]

  • Bump github-pages and jekyll-feed in /docs (#​732) [b71e477]

  • docs: fix typo and broken anchor link to gstruct [f460154]

  • docs: fix HaveEach matcher signature [a2862e4]

v1.31.1

Compare Source

1.31.1

Fixes
  • Inverted arguments order of FailureMessage of BeComparableToMatcher [e0dd999]
  • Update test in case keeping msg is desired [ad1a367]
Maintenance
  • Show how to import the format sub package [24e958d]
  • tidy up go.sum [26661b8]
  • bump dependencies [bde8f7a]

v1.31.0

Compare Source

1.31.0

Features
  • Async assertions include context cancellation cause if present [121c37f]
Maintenance

v1.30.0

Compare Source

1.30.0

Features
  • BeTrueBecause and BeFalseBecause allow for better failure messages [4da4c7f]
Maintenance

v1.29.0

Compare Source

1.29.0

Features
  • MatchError can now take an optional func(error) bool + description [2b39142]

v1.28.1

Compare Source

1.28.1

Maintenance
  • Bump github.com/onsi/ginkgo/v2 from 2.12.0 to 2.13.0 [635d196]
  • Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 [14f8859]
  • Bump golang.org/x/net from 0.14.0 to 0.17.0 [d8a6508]
  • #​703 doc(matchers): HaveEach() doc comment updated [2705bdb]
  • Minor typos (#​699) [375648c]

v1.28.0

Compare Source

1.28.0

Features
Fixes
  • Read Body for Newer Responses in HaveHTTPBodyMatcher (#​686) [18d6673]
Maintenance

v1.27.10

Compare Source

1.27.10

Fixes
  • fix: go 1.21 adding goroutine ID to creator+location (#​685) [bdc7803]

v1.27.9

Compare Source

v1.27.8

Compare Source

1.27.8

Fixes
  • HaveExactElement should not call FailureMessage if a submatcher returned an error [096f392]
Maintenance
  • Bump github.com/onsi/ginkgo/v2 from 2.9.5 to 2.9.7 (#​669) [8884bee]

v1.27.7

Compare Source

1.27.7

Fixes
  • fix: gcustom.MakeMatcher accepts nil as actual value (#​666) [57054d5]
Maintenance

v1.27.6

Compare Source

1.27.6

Fixes
  • Allow collections matchers to work correctly when expected has nil elements [60e7cf3]
Maintenance
  • updates MatchError godoc comment to also accept a Gomega matcher (#​654) [67b869d]

v1.27.5

Compare Source

1.27.5

Maintenance

v1.27.4

Compare Source

1.27.4

Fixes
  • improve error formatting and remove duplication of error message in Eventually/Consistently [854f075]
Maintenance
  • Bump github.com/onsi/ginkgo/v2 from 2.9.0 to 2.9.1 (#​650) [ccebd9b]

v1.27.3

Compare Source

1.27.3

Fixes
  • format.Object now always includes err.Error() when passed an error [86d97ef]
  • Fix HaveExactElements to work inside ContainElement or other collection matchers (#​648) [636757e]
Maintenance
  • Bump github.com/golang/protobuf from 1.5.2 to 1.5.3 (#​649) [cc16689]
  • Bump github.com/onsi/ginkgo/v2 from 2.8.4 to 2.9.0 (#​646) [e783366]

v1.27.2

Compare Source

1.27.2

Fixes
  • improve poll progress message when polling a consistently that has been passing [28a319b]
Maintenance
  • bump ginkgo
  • remove tools.go hack as Ginkgo 2.8.2 automatically pulls in the cli dependencies [81443b3]

v1.27.1

Compare Source

1.27.1

Maintenance

v1.27.0

Compare Source

1.27.0

Features
  • Add HaveExactElements matcher (#​634) [9d50783]
  • update Gomega docs to discuss GinkgoHelper() [be32774]
Maintenance

v1.26.0

Compare Source

1.26.0

Features
  • When a polled function returns an error, keep track of the actual and report on the matcher state of the last non-errored actual [21f3090]
  • improve eventually failure message output [c530fb3]
Fixes
  • fix several documentation spelling issues [e2eff1f]

v1.25.0

Compare Source

1.25.0

Features
Maintenance

v1.24.2

Compare Source

1.24.2

Fixes
Maintenance

v1.24.1

Compare Source

v1.24.0

Compare Source

1.24.0

Features

Introducting gcustom - a convenient mechanism for building custom matchers.

This is an RC release for gcustom. The external API may be tweaked in response to feedback however it is expected to remain mostly stable.

Maintenance
  • Update BeComparableTo documentation [756eaa0]

v1.23.0

Compare Source

1.23.0

Features
  • Custom formatting on a per-type basis can be provided using format.RegisterCustomFormatter() -- see the docs here

  • Substantial improvement have been made to StopTrying():

    • Users can now use StopTrying().Wrap(err) to wrap errors and StopTrying().Attach(description, object) to attach arbitrary objects to the StopTrying() error
    • StopTrying() is now always interpreted as a failure. If you are an early adopter of StopTrying() you may need to change your code as the prior version would match against the returned value even if StopTrying() was returned. Going forward the StopTrying() api should remain stable.
    • StopTrying() and StopTrying().Now() can both be used in matchers - not just polled functions.
  • TryAgainAfter(duration) is used like StopTrying() but instructs Eventually and Consistently that the poll should be tried again after the specified duration. This allows you to dynamically adjust the polling duration.

  • ctx can now be passed-in as the first argument to Eventually and Consistently.

Maintenance

v1.22.1

Compare Source

1.22.1

Fixes

  • When passed a context and no explicit timeout, Eventually will only timeout when the context is cancelled [e5105cf]
  • Allow StopTrying() to be wrapped [bf3cba9]

Maintenance

v1.22.0

Compare Source

1.22.0

Features

Several improvements have been made to Eventually and Consistently in this and the most recent releases:

  • Eventually and Consistently can take a context.Context [65c01bc]
    This enables integration with Ginkgo 2.3.0's interruptible nodes and node timeouts.
  • Eventually and Consistently that are passed a SpecContext can provide reports when an interrupt occurs [0d063c9]
  • Eventually/Consistently will forward an attached context to functions that ask for one [e2091c5]
  • Eventually/Consistently supports passing arguments to functions via WithArguments() [a2dc7c3]
  • Eventually and Consistently can now be stopped early with StopTrying(message) and StopTrying(message).Now() [52976bb]

These improvements are all documented in Gomega's docs

v1.21.1

Compare Source

v1.21.1

Features
  • Eventually and Consistently that are passed a SpecContext can provide reports when an interrupt occurs [0d063c9]

v1.21.0

Compare Source

1.21.0

Features
  • Eventually and Consistently can take a context.Context [65c01bc]
    This enables integration with Ginkgo 2.3.0's interruptible nodes and node timeouts.
  • Introduces Eventually.Within.ProbeEvery with tests and documentation (#​591) [f633800]
  • New BeKeyOf matcher with documentation and unit tests (#​590) [fb586b3]

Fixes

  • Cover the entire gmeasure suite with leak detection [8c54344]
  • Fix gmeasure leak [119d4ce]
  • Ignore new Ginkgo ProgressSignal goroutine in gleak [ba548e2]

Maintenance

  • Fixes crashes on newer Ruby 3 installations by upgrading github-pages gem dependency (#​596) [12469a0]

v1.20.2

Compare Source

1.20.2

Fixes

  • label specs that rely on remote access; bump timeout on short-circuit test to make it less flaky [35eeadf]
  • gexec: allow more headroom for SIGABRT-related unit tests (#​581) [5b78f40]
  • Enable reading from a closed gbytes.Buffer (#​575) [061fd26]

Maintenance

  • Bump github.com/onsi/ginkgo/v2 from 2.1.5 to 2.1.6 (#​583) [55d895b]
  • Bump github.com/onsi/ginkgo/v2 from 2.1.4 to 2.1.5 (#​582) [346de7c]

v1.20.1

Compare Source

1.20.1
Fixes
Maintenance

v1.20.0

Compare Source

Features
Fixes
Maintenance
1.19.0
Features
  • New HaveEach matcher to ensure that each and every element in an array, slice, or map satisfies the passed in matcher. (#​523) [9fc2ae2] (#​524) [c8ba582]
  • Users can now wrap the Gomega interface to implement custom behavior on each assertion. (#​521) [1f2e714]
  • ContainElement now accepts an additional pointer argument. Elements that satisfy the matcher are stored in the pointer enabling developers to easily add subsequent, more detailed, assertions against the matching element. (#​527) [1a4e27f]
Fixes

v1.19.0

Compare Source

Features

  • New HaveEach matcher to ensure that each and every element in an array, slice, or map satisfies the passed in matcher. (#​523) [9fc2ae2] (#​524) [c8ba582]
  • Users can now wrap the Gomega interface to implement custom behavior on each assertion. (#​521) [1f2e714]
  • ContainElement now accepts an additional pointer argument. Elements that satisfy the matcher are stored in the pointer enabling developers to easily add subsequent, more detailed, assertions against the matching element. (#​527) [1a4e27f]

Fixes

v1.18.1

Compare Source

v1.18.0

Compare Source

Features

  • Docs now live on the master branch in the docs folder which will make for easier PRs. The docs also use Ginkgo 2.0's new docs html/css/js. [2570272]
  • New HaveValue matcher can handle actuals that are either values (in which case they are passed on unscathed) or pointers (in which case they are indirected). Docs here. (#​485) [bdc087c]
  • Gmeasure has been declared GA [360db9d]

Fixes

  • Gomega now uses ioutil for Go 1.15 and lower (#​492) - official support is only for the most recent two major versions of Go but this will unblock users who need to stay on older unsupported versions of Go. [c29c1c0]

Maintenace

  • Remove Travis workflow (#​491) [72e6040]
  • Upgrade to Ginkgo 2.0.0 GA [f383637]
  • chore: fix description of HaveField matcher (#​487) [2b4b2c0]
  • use tools.go to ensure Ginkgo cli dependencies are included [f58a52b]
  • remove dockerfile and simplify github actions to match ginkgo's actions [3f8160d]

v1.17.0

Compare Source

1.17.0

Features
Fixes

Stop using deprecated ioutil package (#​467) [07f405d]

v1.16.0

Compare Source

Features

v1.15.0

Compare Source

1.15.0

Fixes

The previous version (1.14.0) introduced a change to allow Eventually and Consistently to support functions that make assertions. This was accomplished by overriding the global fail handler when running the callbacks passed to Eventually/Consistently in order to capture any resulting errors. Issue #​457 uncovered a flaw with this approach: when multiple Eventuallys are running concurrently they race when overriding the singleton global fail handler.

1.15.0 resolves this by requiring users who want to make assertions in Eventually/Consistently call backs to explicitly pass in a function that takes a Gomega as an argument. The passed-in Gomega instance can be used to make assertions. Any failures will cause Eventually to retry the callback. This cleaner interface avoids the issue of swapping out globals but comes at the cost of changing the contract introduced in v1.14.0. As such 1.15.0 introduces a breaking change with respect to 1.14.0 - however we expect that adoption of this feature in 1.14.0 remains limited.

In addition, 1.15.0 cleans up some of Gomega's internals. Most users shouldn't notice any differences stemming from the refactoring that was made.

v1.14.0

Compare Source

1.14.0

Features
  • gmeasure.SamplingConfig now suppers a MinSamplingInterval [e94dbca]
  • Eventually and Consistently support functions that make assertions [2f04e6e]
    • Eventually and Consistently now allow their passed-in functions to make assertions.
      These assertions must pass or the function is considered to have failed and is retried.
    • Eventually and Consistently can now take functions with no return values. These implicitly return nil
      if they contain no failed assertion. Otherwise they return an error wrapping the first assertion failure. This allows
      these functions to be used with the Succeed() matcher.
    • Introduce InterceptGomegaFailure - an analogue to InterceptGomegaFailures - that captures the first assertion failure
      and halts execution in its passed-in callback.
Fixes

v1.13.0

Compare Source

  • Set consistently and eventually defaults on init (#​443)

    Using environment variables

    Closes #​434

    Signed-off-by: toby lorne [email protected]

  • gmeasure provides BETA support for benchmarking (#​447)

    gmeasure is a new gomega subpackage intended to provide measurement and benchmarking support for durations and values. gmeasure replaces Ginkgo V1s deprecated Measure nodes and provides a migration path for users migrating to Ginkgo V2.

    gmeasure is organized around an Experiment metaphor. Experiments can record several different Measurements, with each Measurement comprised of multiple data points. Measurements can hold time.Durations and float64 values and gmeasure includes support measuring the duraiton of callback functions and for sampling functions repeatedly to build an ensemble of data points. In addition, gmeasure introduces a Stopwatch abtraction for easily measuring and recording durations of code segments.

    Once measured, users can readily generate Stats for Measurements to capture their key statistics and these stats can be ranked using a Ranking and associated RankingCriteria.

    Experiments can be Cached to disk to speed up subsequent runs. Experiments are cached by name and version number which makes it easy to manage and bust the cache.

    Finally, gmeasure integrates with Ginkgo V2 via the new ReportEntry abstraction. Experiments, Measurements, and Rankings can all be registered via AddReportEntry. Doing so generates colorful reports as part of Ginkgo's test output.

    gmeasure is currently in beta and will go GA around when Ginkgo V2 goes GA.

v1.12.0

Compare Source

Features
Fixes

v1.11.0

Compare Source

Features
Fixes
  • Check more carefully for nils in WithTransform (#​423) [3c60a15]
  • fix: typo in Makefile [b82522a]
  • Allow WithTransform function to accept a nil value (#​422) [b75d2f2]
  • fix: print value type for interface{} containers (#​409) [f08e2dc]
  • fix(BeElementOf): consistently flatten expected values [1fa9468]

v1.10.5

Compare Source

Fixes
  • fix: collections matchers should display type of expectation (#​408) [6b4eb5a]
  • fix(ContainElements): consistently flatten expected values [073b880]
  • fix(ConsistOf): consistently flatten expected values [7266efe]

v1.10.4

Compare Source

Fixes
  • update golang net library to more recent version without vulnerability (#​406) [817a8b9]
  • Correct spelling: alloted -> allotted (#​403) [0bae715]
  • fix a panic in MessageWithDiff with long message (#​402) [ea06b9b]

v1.10.3

Compare Source

Fixes
  • updates golang/x/net to fix vulnerability detected by snyk (#​394) [c479356]

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

Copy link
Contributor Author

renovate bot commented Sep 17, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.16 -> 1.23.3
golang.org/x/crypto v0.0.0-20201124201722-c8d3bf9c5392 -> v0.28.0

@renovate renovate bot force-pushed the renovate/github.com-onsi-gomega-1.x branch from afec8bf to 2acf70d Compare October 30, 2024 05:35
@renovate renovate bot changed the title Update module github.com/onsi/gomega to v1.34.2 Update module github.com/onsi/gomega to v1.35.0 Oct 30, 2024
@renovate renovate bot force-pushed the renovate/github.com-onsi-gomega-1.x branch from 2acf70d to 68e16e1 Compare October 31, 2024 23:45
@renovate renovate bot changed the title Update module github.com/onsi/gomega to v1.35.0 Update module github.com/onsi/gomega to v1.35.1 Oct 31, 2024
@renovate renovate bot force-pushed the renovate/github.com-onsi-gomega-1.x branch from 68e16e1 to ededa55 Compare November 18, 2024 14:48
@renovate renovate bot force-pushed the renovate/github.com-onsi-gomega-1.x branch from ededa55 to bcc7d94 Compare November 26, 2024 23:38
@renovate renovate bot changed the title Update module github.com/onsi/gomega to v1.35.1 Update module github.com/onsi/gomega to v1.36.0 Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants