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

[New] Migrate zmalloc.c unit tests to new test framework. #493

Merged
merged 1 commit into from
May 14, 2024

Conversation

karthyuom
Copy link
Contributor

This is the actual PR which is created to migrate all tests related to zmalloc into new test framework as part of the parent issue #428.

Due to the conflict issue, the other PR #459 will be closed.

@madolson please review this and merge, as this accommodates all the intended changes.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
Copy link

codecov bot commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.81%. Comparing base (4e18e32) to head (3d7fe59).

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable     #493   +/-   ##
=========================================
  Coverage     69.80%   69.81%           
=========================================
  Files           109      109           
  Lines         61801    61801           
=========================================
+ Hits          43141    43145    +4     
+ Misses        18660    18656    -4     
Files Coverage Δ
src/server.c 88.60% <ø> (ø)
src/zmalloc.c 83.46% <ø> (ø)

... and 11 files with indirect coverage changes

@madolson madolson merged commit 741ee70 into valkey-io:unstable May 14, 2024
17 checks passed
adetunjii pushed a commit to adetunjii/valkey that referenced this pull request May 15, 2024
)

This is the actual PR which is created to migrate all tests related to
zmalloc into new test framework as part of the parent issue
valkey-io#428.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
adetunjii pushed a commit to adetunjii/valkey that referenced this pull request May 15, 2024
)

This is the actual PR which is created to migrate all tests related to
zmalloc into new test framework as part of the parent issue
valkey-io#428.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
Signed-off-by: adetunjii <adetunjithomas1@outlook.com>
adetunjii pushed a commit to adetunjii/valkey that referenced this pull request May 15, 2024
)

This is the actual PR which is created to migrate all tests related to
zmalloc into new test framework as part of the parent issue
valkey-io#428.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
Signed-off-by: adetunjii <adetunjithomas1@outlook.com>
hallmason17 pushed a commit to hallmason17/valkey that referenced this pull request May 15, 2024
)

This is the actual PR which is created to migrate all tests related to
zmalloc into new test framework as part of the parent issue
valkey-io#428.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
@madolson
Copy link
Member

@karthyuom Would you mind taking a look at this daily run, https://github.com/valkey-io/valkey/actions/runs/9104302437/job/25027896513 and https://github.com/valkey-io/valkey/actions/runs/9104302437/job/25027896060. For some reason the address sanitizer variants are not happy about this test, but the normal CI is.

@karthyuom
Copy link
Contributor Author

@madolson I couldn't reproduce the above in my local test environment with the following command:

make all-with-unit-tests OPT=-O3 SANITIZER=address SERVER_CFLAGS='-DSERVER_TEST -Werror -DDEBUG_ASSERTIONS'

Also, the error unit/../zmalloc.h:122:47: error: unknown type name 'size_t' , I am not sure why we didn't have this problem before with the legacy test, even though I didn't change anything in the zmalloc.h.

Anyway, I will try to dive deeper to see where the problem is.

hallmason17 pushed a commit to hallmason17/valkey that referenced this pull request May 18, 2024
)

This is the actual PR which is created to migrate all tests related to
zmalloc into new test framework as part of the parent issue
valkey-io#428.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
@madolson
Copy link
Member

#516 Should fix it. I was only able to reproduce it running on ubuntu 22 with ASAN, it didn't error out on either of my mac development machines.

srgsanky pushed a commit to srgsanky/valkey that referenced this pull request May 19, 2024
)

This is the actual PR which is created to migrate all tests related to
zmalloc into new test framework as part of the parent issue
valkey-io#428.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
adetunjii pushed a commit to adetunjii/valkey that referenced this pull request May 22, 2024
)

This is the actual PR which is created to migrate all tests related to
zmalloc into new test framework as part of the parent issue
valkey-io#428.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
Signed-off-by: Samuel Adetunji <adetunjithomas1@outlook.com>
@karthyuom
Copy link
Contributor Author

karthyuom commented May 22, 2024

#516 Should fix it. I was only able to reproduce it running on ubuntu 22 with ASAN, it didn't error out on either of my mac development machines.

That is interesting. I tried the same fix with the help of daily CI in my forked repo, but still complaint about size_t (see https://github.com/karthyuom/valkey/actions/runs/9132472124/job/25113889640).

I just saw similar error even in the valkey's recent daily CI run: https://github.com/valkey-io/valkey/actions/runs/9183451888/job/25254186187. Looks like the issue is still not fixed(?)

@madolson
Copy link
Member

So, https://github.com/valkey-io/valkey/actions/runs/9183451888 was executed by me on a different commit that was missing the commit.

https://github.com/valkey-io/valkey/actions/runs/9183169208 is the latest daily from unstable and it looks green.

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.

None yet

2 participants