Skip to content

fix: avoid recursive call after rename to (*PeerState).MarshalJSON (backport #865)#970

Merged
sergio-mena merged 3 commits intov0.34.xfrom
mergify/bp/v0.34.x/pr-865
Jun 14, 2023
Merged

fix: avoid recursive call after rename to (*PeerState).MarshalJSON (backport #865)#970
sergio-mena merged 3 commits intov0.34.xfrom
mergify/bp/v0.34.x/pr-865

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jun 14, 2023

This is an automatic backport of pull request #865 done by Mergify.
Cherry-pick of f6ea091 has failed:

On branch mergify/bp/v0.34.x/pr-865
Your branch is up to date with 'origin/v0.34.x'.

You are currently cherry-picking commit f6ea09171.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   .changelog/unreleased/bug-fixes/865-fix-peerstate-marshaljson.md
	modified:   consensus/reactor.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   consensus/reactor_test.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

)

* avoid recursive call after rename to (*PeerState).MarshalJSON

* add test

* add change doc

* explain for nolint

* fix lint

* fix golangci-lint to v1.52.2

* fix golangci-lint to v1.52.2

* Revert "fix golangci-lint to v1.52.2"

This reverts commit 598a9ef.

* Revert "fix golangci-lint to v1.52.2"

This reverts commit a8aad12.

* Reintroduced `cmtjson`

* Avoid copying Mutex

* Avoid copying Mutex -- 2nd try, more succint

* Update .changelog/unreleased/bug-fixes/865-fix-peerstate-marshaljson.md

* Update consensus/reactor_test.go

---------

Co-authored-by: Sergio Mena <sergio@informal.systems>
(cherry picked from commit f6ea091)

# Conflicts:
#	consensus/reactor_test.go
@mergify mergify bot requested a review from a team as a code owner June 14, 2023 13:29
@mergify mergify bot added the conflicts label Jun 14, 2023
@sergio-mena sergio-mena self-assigned this Jun 14, 2023
@sergio-mena sergio-mena added the bug Something isn't working label Jun 14, 2023
sergio-mena and others added 2 commits June 14, 2023 15:43
)

* avoid recursive call after rename to (*PeerState).MarshalJSON

* add test

* add change doc

* explain for nolint

* fix lint

* fix golangci-lint to v1.52.2

* fix golangci-lint to v1.52.2

* Revert "fix golangci-lint to v1.52.2"

This reverts commit 598a9ef.

* Revert "fix golangci-lint to v1.52.2"

This reverts commit a8aad12.

* Reintroduced `cmtjson`

* Avoid copying Mutex

* Avoid copying Mutex -- 2nd try, more succint

* Update .changelog/unreleased/bug-fixes/865-fix-peerstate-marshaljson.md

* Update consensus/reactor_test.go

---------

Co-authored-by: Sergio Mena <sergio@informal.systems>
@sergio-mena sergio-mena merged commit 2a526ca into v0.34.x Jun 14, 2023
@sergio-mena sergio-mena deleted the mergify/bp/v0.34.x/pr-865 branch June 14, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants