1648 Commits

Author SHA1 Message Date
Thomas Jungblut
2f15c08377 add nightly benchmark
This should ensure we don't creep little percentages over the course of
multiple commits into main, compared to the last release branch.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-07-23 09:42:08 +02:00
Benjamin Wang
2e6b37b6d2
Merge pull request #796 from ahrtr/rollback_test_20240717
Add test case to verify freelist in case of TXN rollback
2024-07-22 16:16:43 +01:00
Benjamin Wang
7b031d53c9 add test case to verify freelist in case of TXN rollback
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-07-22 14:17:46 +01:00
Benjamin Wang
d72e6bf8c1
Merge pull request #788 from ahrtr/simply_free_20240708
No need to handle freelist as a specical case when freeing a page
2024-07-22 12:54:30 +01:00
Benjamin Wang
d1cd0deee6 No need to handle freelist as a specical case when freeing a page
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-07-17 13:25:50 +01:00
Benjamin Wang
efc3eb649b
Merge pull request #775 from tjungblu/refactor_freelists
introduce a freelist interface
2024-07-16 09:58:47 +01:00
Thomas Jungblut
62e81c036f introduce a freelist interface
This introduces an interface for the freelist, splits it into two concrete
implementations.

fixes etcd-io#773

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-07-09 10:41:35 +02:00
Benjamin Wang
46d9b10bd7
Merge pull request #790 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.22.0
build(deps): Bump golang.org/x/sys from 0.21.0 to 0.22.0
2024-07-08 18:36:02 +01:00
dependabot[bot]
12835a3580
build(deps): Bump golang.org/x/sys from 0.21.0 to 0.22.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.21.0 to 0.22.0.
- [Commits](https://github.com/golang/sys/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-08 15:00:07 +00:00
Benjamin Wang
3fd94a41d1
Merge pull request #784 from thedtripp/main-go-2024-2963
Bump Go version to 1.22.5: GO-2024-2963 fix
2024-07-04 12:53:39 +01:00
D Tripp
9c4649ce62 Bump Go version to 1.22.5: GO-2024-2963 fix
Signed-off-by: D Tripp <38776199+thedtripp@users.noreply.github.com>
2024-07-04 01:00:19 +00:00
Benjamin Wang
ee58c7e830
Merge pull request #779 from ahrtr/concurent_writeto_20240627
Enhance `TestDB_Concurrent_WriteTo` to check consistent read
2024-07-02 14:11:19 +01:00
Benjamin Wang
d537eff505
Merge pull request #783 from ahrtr/refactor_freelist_20240701
Move method freePages into freelist.go
2024-07-02 12:15:13 +01:00
Benjamin Wang
263e75d059 move method freePages into freelist.go
The motivation is to get all freelist related logic included
in freelist.go. We are going to introduce freelist interface
in the next step.

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-07-02 10:04:14 +01:00
Benjamin Wang
cc78a5a0b9
Merge pull request #750 from ivanvc/add-pr-benchmark
Add PR benchmarking
2024-06-28 10:02:54 +01:00
Manuel Rüger
ac4f75514d
Add benchmark tooling
This adds benchmarking using cmd/bbolt's bench, inspired on what it's
used in kube-state-matrics.

Co-authored-by: Manuel Rüger <manuel@rueg.eu>
Signed-off-by: Ivan Valdes <ivan@vald.es>

wip

Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-06-27 15:26:58 -07:00
Benjamin Wang
848f5fb7e4 Enhance TestDB_Concurrent_WriteTo to check consistent read
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-06-27 18:31:39 +01:00
Benjamin Wang
53977ba4a8
Merge pull request #777 from tjungblu/freelist_first_array
move array related freelist functions into own file
2024-06-26 18:20:42 +01:00
Benjamin Wang
de78e5deb2
Merge pull request #776 from ahrtr/concurrent_test_pagesize_20240626
Explicitly set the pagesize as 4096 for the concurrent test
2024-06-26 16:36:51 +01:00
Thomas Jungblut
a4a52a2d81 move array related freelist functions into own file
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-06-26 17:21:46 +02:00
Benjamin Wang
607abddc74 explicitly set the pagesize as 4096 for the concurrent test
Different platforms may have different page size, but the test
should be independent to the platforms; so explicitly set the
pagesize as 4096.

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-06-26 12:37:20 +01:00
Benjamin Wang
065ba27ab6
Merge pull request #774 from andyxning/change_FileMode_formatter_to_s
change FileMode var formatter to %s
2024-06-25 11:04:59 +01:00
Andy Xie
3a7dc77481 change FileMode var formatter to %s
Signed-off-by: Andy Xie <andy.xning@gmail.com>
2024-06-25 11:35:33 +08:00
Benjamin Wang
f8ffaee87a
Merge pull request #772 from ahrtr/verify_freelist_20240620
Add verification on mergeSpans
2024-06-24 10:53:28 +01:00
Benjamin Wang
3c0d2eeff7 Add verification on mergeSpans
There shouldn't have any duplicated free page IDs, or overlap
between the new free page IDs and the existing free page IDs.

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-06-21 16:31:58 +01:00
Benjamin Wang
7b66ea8962
Merge pull request #771 from ArkaSaha30/bump-gofail-0.2.0
Dependency Bump: gofail to v0.2.0
2024-06-20 05:34:16 +01:00
ArkaSaha30
127f59ee18
Dependency Bump: gofail to v0.2.0
This commit will bump gofail to v0.2.0

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-06-19 15:06:32 +05:30
Benjamin Wang
e3513b98e5
Merge pull request #770 from etcd-io/dependabot/go_modules/github.com/spf13/cobra-1.8.1
build(deps): Bump github.com/spf13/cobra from 1.8.0 to 1.8.1
2024-06-18 15:21:12 +01:00
dependabot[bot]
c3662951a6
build(deps): Bump github.com/spf13/cobra from 1.8.0 to 1.8.1
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 14:15:33 +00:00
Benjamin Wang
a8b2675b55
Merge pull request #767 from ivanvc/write-bench-results-to-stdout
cmd/bbolt: write bench results to stdout
2024-06-12 09:40:35 +01:00
Ivan Valdes
8704e5ef3a
cmd/bbolt: write bench results to stdout
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-06-10 17:20:41 -07:00
Benjamin Wang
29ffc0879d
Merge pull request #766 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.21.0
build(deps): Bump golang.org/x/sys from 0.20.0 to 0.21.0
2024-06-10 19:52:31 +01:00
Benjamin Wang
e692f9baff
Merge pull request #764 from ahrtr/enhance_concurrent_test_20240605
Update concurrent test to support multiple operations in each transaction
2024-06-10 18:35:34 +01:00
dependabot[bot]
9fbc1e8688
build(deps): Bump golang.org/x/sys from 0.20.0 to 0.21.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.20.0 to 0.21.0.
- [Commits](https://github.com/golang/sys/compare/v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 14:16:38 +00:00
Benjamin Wang
5a99eaa6f2
Merge pull request #765 from tjungblu/gobench_out
add gobench output option
2024-06-07 18:02:59 +01:00
Thomas Jungblut
29f165fdc0 add gobench output option
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-06-07 10:05:15 +02:00
Benjamin Wang
487b5dd3df Update concurrent test to support multiple operations in each transaction
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-06-06 10:30:59 +01:00
Benjamin Wang
b342624aaf
Merge pull request #761 from ahrtr/verify_inline_bucket_20240604
Add verification on the pageID when creating nodes for inline buckets
2024-06-05 17:57:12 +01:00
Benjamin Wang
f6e7d187ed
Merge pull request #762 from ArkaSaha30/main-cve-2024-24790
Bump Go version to 1.22.4: CVE 2024-24790 fix
2024-06-05 16:22:49 +01:00
ArkaSaha30
83ef8d691c
Bump Go version to 1.22.4: CVE 2024-24790 fix
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-06-05 15:10:45 +05:30
Benjamin Wang
bbf2a10609 add verification on the pageID when creating nodes for inline buckets
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-06-04 14:51:19 +01:00
Benjamin Wang
f663d4e604
Merge pull request #758 from profnandaa/patch-1
docs: add few more projects using bbolt
2024-05-23 17:27:03 +01:00
Anthony Nandaa
b8f9c332f4 docs: add few more projects using bbolt
bbolt is extensively used in the container world.
I have just added the prominent projects here but
I'm sure we have a few more.

Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
2024-05-23 19:13:01 +03:00
Benjamin Wang
7eb39a611d
Merge pull request #757 from ahrtr/extend_maintainer_20240514
Extend the maintainers of bbolt
2024-05-15 07:00:24 +01:00
Benjamin Wang
7eeb5d8978 Extend the maintainers of bbolt
1. Add @tjungblu as a reviewer
2. Add OWNERS file under cmd/bbolt, and add the existing maintainers/reviewers
   as approvers, and add @Elbehery and @ivanvc as reviewers.

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-05-14 13:07:07 +01:00
Benjamin Wang
7842db0b5b
Merge pull request #756 from etcd-io/dependabot/github_actions/golangci/golangci-lint-action-6.0.1
build(deps): Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1
2024-05-13 19:37:30 +01:00
dependabot[bot]
c4c4fbda3c
build(deps): Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 5.3.0 to 6.0.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](38e1018663...a4f60bb28d)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 14:55:17 +00:00
Benjamin Wang
89209af22e
Merge pull request #753 from lavishpal/update/go-version-to-1.22.3
dependency : update go version to 1.22.3
2024-05-11 11:00:46 +01:00
Lavish pal
6a04aaa322 update go version to 1.22.3
Signed-off-by: Lavish pal <lvishpal408@gmail.com>
2024-05-11 12:57:16 +05:30
Benjamin Wang
a9d3063030
Merge pull request #752 from ivanvc/dont-run-race-tests-on-user-forks
github/workflows: don't run race tests on user forks
2024-05-09 09:33:08 +01:00