1492 Commits

Author SHA1 Message Date
Benjamin Wang
2ee0da568c
Merge pull request #667 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.16.0
build(deps): Bump golang.org/x/sys from 0.15.0 to 0.16.0
2024-01-08 17:04:32 +00:00
dependabot[bot]
f9c9a172dd
build(deps): Bump golang.org/x/sys from 0.15.0 to 0.16.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.16.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-01-08 14:42:18 +00:00
Benjamin Wang
288e82320a
Merge pull request #666 from ahrtr/check_channel_20240105
Move the closing of channel into the same method of creating the channel
2024-01-06 11:03:37 +00:00
Benjamin Wang
9cec34d9c6 move the closing of channel into the same method of creating the channel
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-01-05 10:09:21 +00:00
Benjamin Wang
572547402a
Merge pull request #662 from fuweid/fuweid/run-robustness-on-arm64
.github: enable robustness on arm64
2024-01-04 18:43:23 +00:00
Wei Fu
32f6f6646f .github: enable robustness on arm64
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-04 21:35:20 +08:00
Benjamin Wang
2039ceeb06
Merge pull request #664 from fuweid/fuweid/exit-if-no-gofail
*: run test-robustness with build
2024-01-04 13:28:10 +00:00
Wei Fu
68ab1a1207 *: run test-robustness with build
Add new recipe to build bbolt command so that we can ensure that
test-robustness recipe is using bbolt with gofail.

Since test-robustness requires root, move `sudo` into test-robustness
recipe. Otherwise, both bbolt binary and gofail code belongs to root
user.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-04 19:19:03 +08:00
Benjamin Wang
25ab4cb0b4
Merge pull request #663 from fuweid/fuweid/fix-powerfailure
tests/robustness: switch to kill if no panic after 10sec
2024-01-04 10:10:12 +00:00
Wei Fu
49eb212fa8 tests/robustness: switch to kill if no panic after 10sec
If file doesn't grow in 10 sec, bbolt won't trigger the following
errors:

* lackOfDiskSpace
* mapError
* resizeFileError
* unmapError

We should switch to kill instead of waiting for panic. In order to
trigger these errors, we should increase value size to 512.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-04 16:17:29 +08:00
Benjamin Wang
19be27394f
Merge pull request #635 from Elbehery/add_move_subBucket
add MoveBucket to support moving a sub-bucket from one bucket to anot…
2024-01-03 09:52:29 +00:00
Benjamin Wang
1d7fd9af3d
Merge pull request #658 from fuweid/introduce-nightly-run
test: introduce nightly job for robustness test
2024-01-03 06:39:36 +00:00
Benjamin Wang
886eccbdf5 Add log into MoveBucket and clone the key
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-01-02 15:08:51 +00:00
Benjamin Wang
0bd26bc48c Refactor test case TestTx_MoveBucket and add log for MoveBucket
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-01-02 13:38:32 +00:00
Mustafa Elbehery
ac355dec24 add MoveSubBucket test
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2024-01-02 14:33:00 +01:00
Benjamin Wang
27ded38c22 add MoveBucket to support moving a sub-bucket from one bucket to another bucket
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-01-02 14:33:00 +01:00
Wei Fu
c61a3be3e8 *: introduce nightly run for robustness
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-02 21:29:51 +08:00
Wei Fu
4c3a80b2c0 tests: Update TestRestartFromPowerFailure
Update case with a combination of EXT4 filesystem's commit setting and
unexpected exit event. That EXT4 filesystem's commit is to sync all its data
and metadata every seconds. The kernel can help us sync even if that
process has been killed. With different commit setting, we can simulate
that case that kernel syncs half part of dirty pages before power
failure. And for unexpected exit event, we can kill that process
randomly or panic at failpoint instead of fixed code path.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-02 21:29:46 +08:00
Benjamin Wang
9f1a1d35fb
Merge pull request #657 from ahrtr/refactor_check_20231231
Move checking the invariant properties into a common method
2024-01-02 13:26:00 +00:00
Benjamin Wang
b18e7931c5 move the invariant properties into a common method
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2023-12-31 14:19:19 +00:00
Benjamin Wang
c1eb99248d
Merge pull request #646 from ahrtr/logger_bbolt_20231207
Add log messages
2023-12-29 13:42:33 +00:00
Benjamin Wang
4c7075efe6 add log messages
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2023-12-29 11:25:43 +00:00
Benjamin Wang
de6c42bcf2
Merge pull request #651 from ahrtr/renaming_20231227
Refactor the implementation of check
2023-12-29 10:21:51 +00:00
Benjamin Wang
47cc272875
Merge pull request #652 from jmhbnz/tune-arm64-memory-allocation
Tune arm64 memory allocation and disable telemetry
2023-12-28 09:38:09 +00:00
James Blair
2cd6213e4a
Remove workflow telemetry to reduce noise.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-12-28 09:14:03 +13:00
James Blair
53450a9f2b
Fix yamllint errors in workflow files.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-12-28 09:12:31 +13:00
James Blair
7cab486ea2
Reduce arm64 runner memory allocation to 8GB.
Based on memory consumption statistics for historic runs.

Signed-off-by: James Blair <mail@jamesblair.net>
2023-12-28 09:09:23 +13:00
Benjamin Wang
23c97d55e6 refactor the implementation of check
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2023-12-27 15:32:54 +00:00
Benjamin Wang
4b761832c4
Merge pull request #649 from fuweid/add-fuwei-as-reviewer
OWNERS: add fuweid as reviewer
2023-12-21 16:48:39 +00:00
Wei Fu
052862c261 OWNERS: add fuweid as reviewer
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-21 23:24:48 +08:00
Benjamin Wang
008e27b0e4
Merge pull request #645 from fuweid/update-changelog
CHANGELOG: update for v1.3.9
2023-12-18 17:46:36 +00:00
Wei Fu
e4ab08e221 CHANGELOG: update for v1.3.9
- [bucket: allow to allocate key on stack in Put()](https://github.com/etcd-io/bbolt/pull/550)
- [bucket.Put: copy key before seek](https://github.com/etcd-io/bbolt/pull/637)
- [copy key before comparing during CreateBucket or CreateBucketIfNotExists](https://github.com/etcd-io/bbolt/pull/641)

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-19 00:20:29 +08:00
Benjamin Wang
cce7a799a9
Merge pull request #644 from etcd-io/dependabot/github_actions/actions/github-script-7.0.1
build(deps): Bump actions/github-script from 6.4.1 to 7.0.1
2023-12-18 16:17:58 +00:00
dependabot[bot]
70aa6e651d
build(deps): Bump actions/github-script from 6.4.1 to 7.0.1
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.4.1 to 7.0.1.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](d7906e4ad0...60a0d83039)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 14:30:46 +00:00
Benjamin Wang
086cd74c57
Merge pull request #641 from fuweid/copy-key-before-seek-for-bucket
copy key before comparing during CreateBucket or CreateBucketIfNotExists
2023-12-17 16:02:54 +00:00
Wei Fu
ac2258bb13 copy key before seeking in CreateBucketIfNotExists
It's follow-up of #637.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-17 22:00:18 +08:00
Wei Fu
62d80260de *: copy key before comparing during CreateBucket
It's follow-up of #637.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-17 21:58:53 +08:00
Benjamin Wang
c89db63269
Merge pull request #640 from ivanvc/add-github-workflows-telemetry
github actions: add workflow telemetry to collect metrics
2023-12-17 12:06:23 +00:00
Ivan Valdes
a9cde4d6c8
github actions: add workflow telemetry to collect metrics
Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-12-16 13:34:38 -08:00
Benjamin Wang
cd4a7570d5
Merge pull request #637 from fuweid/copy-key-before-seek
bucket.Put: copy key before seek
2023-12-13 14:35:03 +00:00
Wei Fu
a05ec68aaa bucket: copy key before Put
Application might change key value after seeking and before real put.
This unexpected behaviour could corrupt database. When users file issue,
maintainers doesn't know application behaviour. It could be caused by
data race. This patch is to prevent such case and save maintainers' time.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-13 20:57:57 +08:00
Wei Fu
1b08078707 tests/robustness: add issue72 reproducer
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-13 20:57:40 +08:00
Wei Fu
324df9cd26 *: introduce failpoint beforeBucketPut
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-13 10:49:05 +08:00
Benjamin Wang
f34eb5e786
Merge pull request #638 from ivanvc/enable-github-workflow-approval-via-ok-to-test-label
github workflow: enable workflow approval
2023-12-12 20:27:22 +00:00
Ivan Valdes
82cf0eda8c
github workflow: enable workflow approval
Allow to run GitHub workflows for Pull Requests that have the ok-to-test
label.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-12-12 10:06:49 -08:00
Benjamin Wang
a7a791ca81
Merge pull request #634 from etcd-io/dependabot/github_actions/actions/setup-go-5
build(deps): Bump actions/setup-go from 4 to 5
2023-12-11 16:06:16 +00:00
dependabot[bot]
5ff325a6a3
build(deps): Bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 14:46:21 +00:00
Benjamin Wang
568e75457b
Merge pull request #614 from ahrtr/cursor_20231117
Update doc to clarify the behavior when removing key/value pairs during iteration
2023-12-08 10:32:33 +00:00
Benjamin Wang
95a982c5d4
Merge pull request #622 from fuweid/powerfailure
tests/robustness: init with powerfailure case
2023-12-08 10:30:40 +00:00
Wei Fu
300e72ab8a tests/robustness: init with powerfailure case
Add `Robustness Test` pipeline for robustness test cases.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-08 09:48:57 +08:00