1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-15 17:51:06 +00:00
Commit graph

148 commits

Author SHA1 Message Date
Shahar Mike
1f4b1e4c6c
chore: Enable unit-tests in CI ()
* chore: Enable unit-tests in CI

* Update helio
2023-11-06 10:44:02 +00:00
Roman Gershman
7aa3dba423
chore: use decode_responses when creating a redis client ()
* chore: use decode_responses when creating a redis client

---------

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-11-03 11:00:26 +02:00
Kostas Kyrimis
dd2cb1def1
fix(regTests): properly handle other error codes on timeouts () 2023-10-23 16:35:29 +03:00
Roy Jacobson
313501d987
fix(sock): Use the updated cancellation cb interface. ()
* fix(sock): Use the updated cancellation cb interface.

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Co-authored-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-10-23 13:08:06 +03:00
Roman Gershman
d9cb7453fb
wrap dragonfly_test with gdb inside a CI ()
chore: run dragonfly_test with epoll under gdb

Also, update helio that provide a stacktrace under musl libc (alpine linux).
This version of helio updates absl version as well.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-10-22 20:05:27 +03:00
Kostas Kyrimis
1d02e12ad1
chore: call debug stacktrace on SIGUSR1 ()
* add macro to install a signal handler that prints the contents of debug stacktrace on SIGUSR1
* add this on regTests
2023-10-20 10:50:55 +03:00
Kostas Kyrimis
64841efeed
chore(regTests): print logs when regTests timeout ()
* add a python script to print the most recent log
* if CI timeouts, print the most recent log
* replace global timeout with timeout command
* upload all logs on failure()
* print uid + port + the log files for each df instance
2023-10-20 10:50:19 +03:00
Kostas Kyrimis
32a0baa62c
chore(regTests): separate build and reg tests timeouts ()
* remove timeout from build step
* add 45 min timeout for execution of regTests
2023-10-13 09:01:12 +03:00
Jongwoo Han
4ad2c49523
chore: Replace deprecated command with environment file ()
Signed-off-by: Jongwoo Han <jongwooo.han@gmail.com>
2023-10-12 17:22:31 +03:00
adiholden
84d4ba4d69
chore(regression): test bptree on regression pytests ()
* chore(regression): test bptree on regression pytests

1. stop passing the flag use_zset_tree as it is true on default
2. fix ci test to run replication tests
3. change replication tests seeder to sometimes add more than 128 values
   to zset to test the pbtree impl

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-10-02 14:07:50 +00:00
Vladislav
bc48bed6ad
fix(regtests): Colored per-instance log ()
* fix(regtests): Colored per-instance log

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-10-02 10:36:41 +03:00
adiholden
f18b41c666
run regression tests on CI ()
* run regression tests on CI

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-09-21 10:52:52 +03:00
Roy Jacobson
b55316c0e6
tests: choose open ports randomally ()
* Implement changes to the testing infrastructure to use random ports
* Use psutil to find out the random ports
2023-09-18 10:23:49 +03:00
Roman Gershman
3683cdb99d
chore: build rpm package for the release ()
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-16 22:47:56 +03:00
Roman Gershman
82050248b0
Run unit tests in macos build ()
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-15 23:20:37 +03:00
Roman Gershman
0ada51c42a
chore: enable search lib on Apple ()
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-13 20:08:33 +03:00
adiholden
55710e40f3
chore(regression): send chat notificaiton only on main branch ()
* chore(regression): send chat notificaiton only on main branch

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-09-13 09:17:02 +03:00
Roman Gershman
02fff36e3e
Add build_rpm script and rpm spec ()
Also, link stdlib++ and libgcc statically.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-12 10:42:06 +03:00
Roy Jacobson
c18aa1c317
Revert "feat(CI): Configure sccache to work with GCS" ()
Revert "feat(CI): Configure sccache to work with GCS ()"

This reverts commit f3c4132ab6.
2023-09-10 08:11:26 +00:00
Roy Jacobson
f3c4132ab6
feat(CI): Configure sccache to work with GCS ()
* feat(CI): Configure sccache to work with GCS

* Lower sccache log level now that it's working.
2023-09-10 10:23:51 +03:00
Vladislav
e0af5fe836
Remove ICU library ()
* chore(search): Replace icu with unialgo

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-09-06 15:06:38 +03:00
Roman Gershman
4e393cf742
fix: alpine weekly pipeline ()
1. Move docker build files to separate dir from docker script files
   so that they won't be part of build context. Update dockerignore as well
2. Fix lib dependencies for alpine

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-06 08:27:40 +00:00
Roman Gershman
36be222091
chore: add macos daily build ()
It compiles most of the code though some linking problems still exist.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-06 09:35:11 +03:00
Roman Gershman
5ef8087a9c
fix: use cd instead of working-directory which does not work ()
fix: use "cd" instead of woarking-directory that does not work

Also, use GITHUB_WORKSPACE due to https://github.com/actions/runner/issues/2058

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-08-31 23:23:48 +03:00
Roman Gershman
63eb219d88 chore: split daily build and bullmq tests ()
Also add fedora linux to daily build matrix.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-08-30 14:24:52 +03:00
Roman Gershman
8ebfd15166
fix: extend CI running time ()
Also, add sccache debug log in hope to understand
why we get 0 hits sometimes.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-08-27 10:57:29 +03:00
Roman Gershman
eaaf2c5287
chore: cover zset over bptree implementation in the CI. ()
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-08-25 11:45:17 +03:00
Roman Gershman
7d619d2d4b
chore: integrate sccache ()
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-08-25 10:58:11 +03:00
Roy Jacobson
b0718abdd1
chore: Split the build & test into 2 stages () 2023-08-24 16:52:24 +03:00
Kostas Kyrimis
69e24e7a43
chore(gh-workflows): add regression tests to release job ()
* Run regression tests on Release build (only for x86)
* Make regression tests a composite action 
* Refactor to use regression tests action
2023-08-24 15:24:21 +02:00
Roy Jacobson
d12c6e3639
chore: Add a daily coverage run ()
* Add a coverage workflow to dragonfly.

* Try and make the testing permissive

* Apply suggestions from code review

Signed-off-by: Roy Jacobson <roi.jacobson1@gmail.com>

* Remove redundant parts

---------

Signed-off-by: Roy Jacobson <roi.jacobson1@gmail.com>
2023-08-22 20:00:21 +02:00
Vladislav
5198622a15
feat: Support unicode strings in search ()
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Signed-off-by: Vladislav <vlad@dragonflydb.io>
2023-08-18 15:40:37 +03:00
Abhradeep Chakraborty
0922cdb2b1
fix(daily-builds): temporarily comment out bullmq tests ()
Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>
2023-08-10 10:04:59 +03:00
adiholden
f9a3e2811c
test(server): test transaction locked keys ()
* test(server): test transaction locked keys

1. add test utility class that will add suspension to transaction
   execution.
2. add test for locked keys in transaction

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-08-09 12:52:13 +00:00
Shahar Mike
3779837c5f
test(server): Run all unit tests with --force_epoll () 2023-08-09 11:00:46 +03:00
Shahar Mike
67a4c4e6cb
feat(server): Add --lock_on_hashtags mode. ()
* feat(server): Add `--lock_on_hashtags` mode.

This new mode effectively locks hashtags (i.e. strings within {curly
braces}) instead of the full keys being used.
This can allow scripts to access undeclared keys if they all use a
common hashtag, like for the case of BullMQ.

To make sure this mode is tested, I added a way to specify flags via env
variables, and modified `ci.yml` to run all tests using this mode as well.
While at it, I also added `--cluster_mode=emulated` mode to CI.
2023-08-03 20:13:36 +03:00
Abhradeep Chakraborty
3bf755c44b
feat(github-actions): add bullmq tests in daily builds ()
feat(daily-builds): add bullmq tests in daily builds

Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>
2023-07-24 16:51:42 +03:00
adiholden
c411362693
bug(server): multi exec eval ()
* The bug - if all commands inside multi trasaction are eval commands
	    and global scripts mode is on, we did ignored the trasaction
	    and run each eval separately.
*Fix - run all evals under multi inside the global lock
* Change multi eval run only if scripts are in global mode and multi
  mode is not non atomic
* Fix test flags setup
* Skip test ContendedList as it fails
* change default exec mode for txs to lock ahead
2023-07-23 09:09:21 +03:00
Roman Gershman
0c3dbdba1b
chore: update ci action versions ()
chore: update ci versions
2023-07-17 20:02:34 +03:00
adiholden
aed01aa5e4
feat(github regression): add link to github job ()
* feat(regression): add github job link

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-06-27 14:13:25 +03:00
adiholden
242d70b285
fix(regression): fix json report filename ()
Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-06-23 12:58:51 +03:00
adiholden
98e84f804a
feat(regression github): send failed tests names to chat ()
* feat(regression) : send failed tests names

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-06-22 09:47:12 +03:00
Tarun Pothulapati
1884ea3ef6
fix(docker-release): Run Docker test only if image is built ()
Currently, During docker release we don't actually build the
alpine release but the new docker run test ends up trying to
run it and fails. This adds the same toggle that we use for
build to prevent the test step.
2023-06-19 06:46:29 +03:00
Tarun Pothulapati
3aa7c0d7a8
feat(CI): Update weekly build image name to be dragonfly-weekly ()
This commit updates the weekly docker build to use `dragonfly-weekly`
image tag so that we get better separation. We also now push these
images with the github sha commit tags. We also update `latest` as
these get pushed.
2023-06-18 22:59:45 +03:00
kbelokon
956b39c553
bug(helm) Fix tolerations and affinity mishandling in Helm template ()
* bug(helm) Fix tolerations and affinity mishandling in Helm template

Signed-off-by: Kirill Belokon <belokon@mindbox.cloud>

* add golden test case

* increase resource requests

* add node label to test

---------

Signed-off-by: Kirill Belokon <belokon@mindbox.cloud>
Co-authored-by: Tarun Pothulapati <tarun@dragonflydb.io>
2023-06-15 20:34:45 +05:30
Vladislav
e837b3d229
Fix reply builder access issue ()
* fix: Fix invalid reply builder use

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-06-10 00:50:05 +03:00
Tarun Pothulapati
a600ba8f0b
feat(ci): Test the built docker image ()
This commit adds a new testing phase that runs the container
and waits for a PONG response. This step fails if the expected
response is not received.
2023-06-07 15:27:12 +03:00
Chaka
ab3a67ced3
chore: Double regression tests timeout (10m->20m) () 2023-06-04 22:19:07 +03:00
adiholden
dcfd9262a7 fix(regression test): skip test_disconnect_replica ()
Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-06-01 15:13:18 +03:00
Roy Jacobson
76801fa8c3
fix: werror in ci and warning that slipped by ()
* fix: werror in ci and warning that slipped by

* Ignore bison warnings

* Fix C++17 compat warning
2023-05-29 16:36:57 +03:00