Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 22, 2024

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

On branch mergify/bp/v1.x/pr-1974
Your branch is up to date with 'origin/v1.x'.

You are currently cherry-picking commit dfd3f6cd0.
  (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/features/1974-statestore-metrics.md
	new file:   .changelog/unreleased/features/1974-store-metrics.md
	modified:   internal/state/export_test.go
	modified:   internal/state/metrics.gen.go
	modified:   internal/state/metrics.go
	modified:   internal/state/store.go
	new file:   internal/store/metrics.gen.go
	new file:   internal/store/metrics.go
	modified:   node/node.go
	modified:   node/setup.go
	modified:   test/loadtime/basic.sh

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

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/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

This PR superceeds #79 with some adjustments to the segments of code
timed as well as bucket sizes. The majority of the code was done by
William in #79. I tried to fine tune the measurements to exclude proto
marshalling/unmarshalling where I think it made sense.

Closes #46

Blocked on benchmarking to confirm it is measuring what we want.
(follow up) The metrics gave us nice and realistic measurements in our
benchmarks.

<!--

Please add a reference to the issue that this PR addresses and indicate
which
files are most critical to review. If it fully addresses a particular
issue,
please include "Closes #XXX" (where "XXX" is the issue number).

If this PR is non-trivial/large/complex, please ensure that you have
either
created an issue that the team's had a chance to respond to, or had some
discussion with the team prior to submitting substantial pull requests.
The team
can be reached via GitHub Discussions or the Cosmos Network Discord
server in
the #cometbft channel. GitHub Discussions is preferred over Discord as
it
allows us to keep track of conversations topically.
https://github.com/cometbft/cometbft/discussions

If the work in this PR is not aligned with the team's current
priorities, please
be advised that it may take some time before it is merged - especially
if it has
not yet been discussed with the team.

See the project board for the team's current priorities:
https://github.com/orgs/cometbft/projects/1

-->

---

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

---------

Co-authored-by: Andy Nogueira <me@andynogueira.dev>
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
(cherry picked from commit dfd3f6c)

# Conflicts:
#	internal/store/store.go
@mergify mergify bot requested a review from a team as a code owner February 22, 2024 16:32
@mergify mergify bot requested a review from a team February 22, 2024 16:32
@mergify mergify bot added the conflicts label Feb 22, 2024
@melekes melekes merged commit ed84675 into v1.x Feb 22, 2024
@melekes melekes deleted the mergify/bp/v1.x/pr-1974 branch February 22, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants