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

chore(deps): bump go.uber.org/fx from 1.18.2 to 1.19.2 #1801

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 22, 2023

Bumps go.uber.org/fx from 1.18.2 to 1.19.2.

Release notes

Sourced from go.uber.org/fx's releases.

v1.19.2

Changed

  • Upgrade Dig dependency to v1.16.1.

v1.19.1

Changed

  • Calling fx.Stop() after the App has already stopped no longer errors out.

Fixed

  • Addressed a regression in 1.19.0 release which caused apps to ignore OS signals after running for startTimeout duration.

v1.19.0

Added

  • fx.RecoverFromPanics Option which allows Fx to recover from user-provided constructors and invoked functions.
  • fx.Private that allows the constructor to limit the scope of its outputs to the wrapping fx.Module.
  • ExitCode ShutdownOption which allows setting custom exit code at the end of app lifecycle.
  • Wait which returns a channel that can be used for waiting on application shutdown.
  • fxevent/ZapLogger now exposes UseLogLevel and UseErrorLevel methods to set the level of the Zap logs produced by it.
  • Add lifecycle hook-convertible methods: StartHook, StopHook, StartStopHook that can be used with more function signatures.

Changed

  • fx.WithLogger can now be passed at fx.Module level, setting custom logger at Module scope instead of the whole App.

Fixed

  • fx.OnStart and fx.OnStop Annotations now work with annotated types that was provided by the annotated constructor.
  • fxevent/ZapLogger: Errors from fx.Supply are now logged at Error level, not Info.
  • A race condition in lifecycle Start/Stop methods.
  • Typos in docs.
Changelog

Sourced from go.uber.org/fx's changelog.

1.19.2 - 2023-02-21

Changed

  • Upgrade Dig dependency to v1.16.1.

1.19.1 - 2023-01-10

Changed

  • Calling fx.Stop() after the App has already stopped no longer errors out.

Fixed

  • Addressed a regression in 1.19.0 release which caused apps to ignore OS signals after running for startTimeout duration.

1.19.0 - 2023-01-03

Added

  • fx.RecoverFromPanics Option which allows Fx to recover from user-provided constructors and invoked functions.
  • fx.Private that allows the constructor to limit the scope of its outputs to the wrapping fx.Module.
  • ExitCode ShutdownOption which allows setting custom exit code at the end of app lifecycle.
  • Wait which returns a channel that can be used for waiting on application shutdown.
  • fxevent/ZapLogger now exposes UseLogLevel and UseErrorLevel methods to set the level of the Zap logs produced by it.
  • Add lifecycle hook-convertible methods: StartHook, StopHook, StartStopHook that can be used with more function signatures.

Changed

  • fx.WithLogger can now be passed at fx.Module level, setting custom logger at Module scope instead of the whole App.

Fixed

  • fx.OnStart and fx.OnStop Annotations now work with annotated types that was provided by the annotated constructor.
  • fxevent/ZapLogger: Errors from fx.Supply are now logged at Error level, not Info.
  • A race condition in lifecycle Start/Stop methods.
  • Typos in docs.
Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the kind:deps Pull requests that update a dependency file label Feb 22, 2023
@dependabot dependabot bot force-pushed the dependabot/go_modules/go.uber.org/fx-1.19.2 branch from 9e9722b to 91eb0aa Compare February 23, 2023 14:07
@dependabot dependabot bot requested a review from walldiss as a code owner February 23, 2023 14:07
@dependabot dependabot bot force-pushed the dependabot/go_modules/go.uber.org/fx-1.19.2 branch from 91eb0aa to 15cfd1a Compare February 23, 2023 15:22
renaynay
renaynay previously approved these changes Feb 27, 2023
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2023-02-27 at 08 37 09

vgonkivs
vgonkivs previously approved these changes Feb 27, 2023
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit tests are borked, so we cannot merge it. Requesting changes to avoid accident merge

@dependabot dependabot bot dismissed stale reviews from vgonkivs and renaynay via f06b80f February 28, 2023 17:35
@dependabot dependabot bot force-pushed the dependabot/go_modules/go.uber.org/fx-1.19.2 branch 5 times, most recently from 22b62be to d99f5b6 Compare March 1, 2023 07:44
@dependabot dependabot bot force-pushed the dependabot/go_modules/go.uber.org/fx-1.19.2 branch 4 times, most recently from b1f4f0c to 8c069bc Compare March 15, 2023 16:56
@dependabot dependabot bot force-pushed the dependabot/go_modules/go.uber.org/fx-1.19.2 branch 4 times, most recently from 507476d to 1e05319 Compare March 28, 2023 15:48
@dependabot dependabot bot force-pushed the dependabot/go_modules/go.uber.org/fx-1.19.2 branch 3 times, most recently from ac06a21 to 57f017f Compare April 4, 2023 14:23
@dependabot dependabot bot force-pushed the dependabot/go_modules/go.uber.org/fx-1.19.2 branch 2 times, most recently from d04f9cb to f1a1cfa Compare April 6, 2023 10:59
@dependabot dependabot bot force-pushed the dependabot/go_modules/go.uber.org/fx-1.19.2 branch 2 times, most recently from 3e6fb82 to 67b8f15 Compare April 13, 2023 08:12
Bumps [go.uber.org/fx](https://github.com/uber-go/fx) from 1.18.2 to 1.19.2.
- [Release notes](https://github.com/uber-go/fx/releases)
- [Changelog](https://github.com/uber-go/fx/blob/v1.19.2/CHANGELOG.md)
- [Commits](uber-go/fx@v1.18.2...v1.19.2)

---
updated-dependencies:
- dependency-name: go.uber.org/fx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/go.uber.org/fx-1.19.2 branch from 67b8f15 to 9346b9f Compare April 13, 2023 15:11
Wondertan added a commit that referenced this pull request Apr 18, 2023
This PR solves two problems:
* Updates FX and fixes issues we observed in [the
PR](#1801)
* Fixes #2041

Surprisingly, those two problems were related, so I decided to fix them
once and for all. The issue with FX happens after [this
change](uber-go/fx#983). The outcome of this
change is summarized:
> In other words, lifecycle hook annotations can no longer pull in extra
> dependencies outside of things on which
> the annotated constructor is dependent, results that the annotated
> constructor provides, context.Context
> object which is injected by Lifecycle, and the Lifecycle object itself.

Our current code does pull extra dependencies in the service having
`modfraud.Lifecycle` on them, like
[DASer](https://github.com/celestiaorg/celestia-node/blob/main/nodebuilder/das/module.go#L47).
Specifically, it pulls FraudService, and this is no longer allowed. This
forces us to rewrite the fraud lifecycling and here is the solution,
which additionally satisfies #2041.

This also unblocks
#2040, which is now
implemented in celestiaorg/go-fraud#1

I tried to split FX update and the refactor into two diff PRs. However,
the solution does not work with the old FX version, so we have to couple
those.

The chain here is that I needed a new version of FX that fixes
`OnStart/OnStop` hooks, and updating created the whole story. The PR
that does clean-ups basing on new version of FX will com right after.
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 15, 2023

Superseded by #2199.

@dependabot dependabot bot closed this May 15, 2023
@dependabot dependabot bot deleted the dependabot/go_modules/go.uber.org/fx-1.19.2 branch May 15, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:deps Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants