Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 29, 2024

The mempool benchmarks were invalid due to an incorrect transaction payload. To see this, one may run go test -v -count 1 -bench ^BenchmarkCheckTx$ -test.run ^$ against main from the mempool directory. These modificationss fix such a problem and add a new benchmark to exercicemempool:update.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

This is an automatic backport of pull request #934 done by [Mergify](https://mergify.com).

* fix mempool benchmarks
* add a benchmark for `mempool:update`

---------

Co-authored-by: Lasaro <lasaro@informal.systems>
(cherry picked from commit c0a5715)

# Conflicts:
#	mempool/clist_mempool_test.go
#	mempool/mempool.go
@mergify mergify bot requested a review from a team as a code owner August 29, 2024 08:15
@mergify mergify bot added the conflicts label Aug 29, 2024
Copy link
Contributor Author

mergify bot commented Aug 29, 2024

Cherry-pick of c0a5715 has failed:

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

You are currently cherry-picking commit c0a57150c.
  (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:
	modified:   mempool/bench_test.go
	modified:   mempool/cache_test.go
	modified:   mempool/reactor.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   mempool/clist_mempool_test.go
	both modified:   mempool/mempool.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 mergify bot mentioned this pull request Aug 29, 2024
3 tasks
@mergify mergify bot added the backport-to-v0.38.x-experimental Tell Mergify to backport the PR to v0.38.x-experimental label Aug 29, 2024
@hvanz hvanz removed the conflicts label Aug 29, 2024
@hvanz hvanz merged commit 969c8d1 into v0.38.x Aug 29, 2024
18 of 19 checks passed
@hvanz hvanz deleted the mergify/bp/v0.38.x/pr-934 branch August 29, 2024 08:30
mergify bot added a commit that referenced this pull request Aug 29, 2024
The mempool
[benchmarks](https://github.com/cometbft/cometbft/blob/main/mempool/bench_test.go)
were invalid due to an incorrect transaction payload. To see this, one
may run `go test -v -count 1 -bench ^BenchmarkCheckTx$ -test.run ^$`
against `main` from the `mempool` directory. These modificationss fix
such a problem and add a new benchmark to exercice`mempool:update`.

---

#### 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

<hr>This is an automatic backport of pull request #934 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Pierre Sutra <0track@gmail.com>
Co-authored-by: hvanz <hernan.vanzetto@gmail.com>
(cherry picked from commit 969c8d1)
hvanz pushed a commit that referenced this pull request Sep 2, 2024
The mempool
[benchmarks](https://github.com/cometbft/cometbft/blob/main/mempool/bench_test.go)
were invalid due to an incorrect transaction payload. To see this, one
may run `go test -v -count 1 -bench ^BenchmarkCheckTx$ -test.run ^$`
against `main` from the `mempool` directory. These modificationss fix
such a problem and add a new benchmark to exercice`mempool:update`.

---

#### 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

<hr>This is an automatic backport of pull request #934 done by
[Mergify](https://mergify.com).<hr>This is an automatic backport of pull
request #3893 done by [Mergify](https://mergify.com).

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-v0.38.x-experimental Tell Mergify to backport the PR to v0.38.x-experimental
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants