Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix the random test #5694

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

test: fix the random test #5694

wants to merge 3 commits into from

Conversation

zhijian-pro
Copy link
Contributor

@zhijian-pro zhijian-pro commented Feb 24, 2025

close #5679
close #5659

@jiefenghuang jiefenghuang changed the title test: fix the random test for Redis test: fix the random test Feb 24, 2025
Signed-off-by: jiefenghuang <[email protected]>
jiefenghuang and others added 2 commits February 24, 2025 18:59
Signed-off-by: jiefenghuang <[email protected]>
Copy link

codecov bot commented Feb 27, 2025

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 21.59%. Comparing base (b223663) to head (b69bb4a).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pkg/meta/sql.go 0.00% 5 Missing ⚠️
pkg/meta/redis.go 0.00% 3 Missing ⚠️
pkg/meta/tkv.go 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #5694       +/-   ##
===========================================
- Coverage   52.99%   21.59%   -31.40%     
===========================================
  Files         132       29      -103     
  Lines       39720    19227    -20493     
===========================================
- Hits        21049     4153    -16896     
+ Misses      16283    14583     -1700     
+ Partials     2388      491     -1897     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -136,6 +136,7 @@ func (m *fsMachine) Init(t *rapid.T) {
}
_ = os.Remove(settingPath)
m.meta = NewClient(metaURL, testConfig())
m.meta.Reset()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

@@ -1386,7 +1398,7 @@ func cleanupSlices(ss []tSlice) []tSlice {
func (m *fsMachine) SetXAttr(t *rapid.T) {
inode := m.pickNode(t)
name := rapid.StringN(1, 200, XATTR_NAME_MAX+1).Draw(t, "name")
value := rapid.SliceOfN(rapid.Byte(), 0, XATTR_SIZE_MAX+1).Draw(t, "value")
value := rapid.SliceOfN(rapid.Byte(), 1, XATTR_SIZE_MAX+1).Draw(t, "value")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0

@@ -1926,11 +1938,11 @@ func (m *fsMachine) flock(inode Ino, owner uint64, typ uint32) syscall.Errno {
func (m *fsMachine) Flock(t *rapid.T) {
inode := m.pickNode(t)
owner := rapid.Uint64().Draw(t, "owner")
typ := rapid.Uint32Range(0, 3).Draw(t, "typ")
typ := rapid.Uint32Range(1, 2).Draw(t, "typ")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(0,2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: Flock test failed. TestFSOps: expect errno 0 but got is a directory
2 participants