summaryrefslogtreecommitdiff
path: root/.github
Commit message (Collapse)AuthorAgeFilesLines
...
* Re-fix daily CI (#9141)Oran Agra2021-06-241-13/+14
| | | | The freebsd and macos jobs were still broken. also add a few more skip jobs options.
* daily CI, fix odd yaml parsing error (#9137)Oran Agra2021-06-231-43/+43
|
* Fix broken daily due to manual action triggers. and attempt to improve them ↵Oran Agra2021-06-231-76/+177
| | | | | | | (#9134) The daily CI was broken by #9119 seems that for cron scheduled tasks, these ifs aren't evaluated to false. But also it turns out that workflow_dispatch is only able to run CI on branches in the main repo (not on PRs). this is an attempt to overcome that by being able to checkout from any repo we want.
* Add manual triggers for Daily CI (#9119)Oran Agra2021-06-221-86/+165
| | | Hopefully now we'll be able to manually trigger extensive tests to PR branches without modifying them.
* Fixed some typos, add a spell check ci and others minor fix (#8890)Binbin2021-06-104-1/+46
| | | | | | | | | | | | | | | | | | | | | This PR adds a spell checker CI action that will fail future PRs if they introduce typos and spelling mistakes. This spell checker is based on blacklist of common spelling mistakes, so it will not catch everything, but at least it is also unlikely to cause false positives. Besides that, the PR also fixes many spelling mistakes and types, not all are a result of the spell checker we use. Here's a summary of other changes: 1. Scanned the entire source code and fixes all sorts of typos and spelling mistakes (including missing or extra spaces). 2. Outdated function / variable / argument names in comments 3. Fix outdated keyspace masks error log when we check `config.notify-keyspace-events` in loadServerConfigFromString. 4. Trim the white space at the end of line in `module.c`. Check: https://github.com/redis/redis/pull/7751 5. Some outdated https link URLs. 6. Fix some outdated comment. Such as: - In README: about the rdb, we used to said create a `thread`, change to `process` - dbRandomKey function coment (about the dictGetRandomKey, change to dictGetFairRandomKey) - notifyKeyspaceEvent fucntion comment (add type arg) - Some others minor fix in comment (Most of them are incorrectly quoted by variable names) 7. Modified the error log so that users can easily distinguish between TCP and TLS in `changeBindAddr`
* Improve test suite to handle external servers better. (#9033)Yossi Gottlieb2021-06-092-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit revives the improves the ability to run the test suite against external servers, instead of launching and managing `redis-server` processes as part of the test fixture. This capability existed in the past, using the `--host` and `--port` options. However, it was quite limited and mostly useful when running a specific tests. Attempting to run larger chunks of the test suite experienced many issues: * Many tests depend on being able to start and control `redis-server` themselves, and there's no clear distinction between external server compatible and other tests. * Cluster mode is not supported (resulting with `CROSSSLOT` errors). This PR cleans up many things and makes it possible to run the entire test suite against an external server. It also provides more fine grained controls to handle cases where the external server supports a subset of the Redis commands, limited number of databases, cluster mode, etc. The tests directory now contains a `README.md` file that describes how this works. This commit also includes additional cleanups and fixes: * Tests can now be tagged. * Tag-based selection is now unified across `start_server`, `tags` and `test`. * More information is provided about skipped or ignored tests. * Repeated patterns in tests have been extracted to common procedures, both at a global level and on a per-test file basis. * Cleaned up some cases where test setup was based on a previous test executing (a major anti-pattern that repeats itself in many places). * Cleaned up some cases where test teardown was not part of a test (in the future we should have dedicated teardown code that executes even when tests fail). * Fixed some tests that were flaky running on external servers.
* Bump freebsd-vm version to fix CI failures (#8876)yoav-steinberg2021-04-271-1/+1
| | | Specifically we had issues with NTP sync failure which was resolved here: https://github.com/vmactions/freebsd-vm/commit/457af7345642e154a79d219971a2d4a7c7fe2118
* Add codeql static analysis in PR CI (#8854)Guy Korland2021-04-261-0/+33
|
* fuzz tester, try to print hung command (#8837)Oran Agra2021-04-252-14/+14
|
* Add run all test support with define REDIS_TEST (#8570)sundb2021-03-101-3/+11
| | | | | | | | | | | | 1. Add `redis-server test all` support to run all tests. 2. Add redis test to daily ci. 3. Add `--accurate` option to run slow tests for more iterations (so that by default we run less cycles (shorter time, and less prints). 4. Move dict benchmark to REDIS_TEST. 5. fix some leaks in tests 6. make quicklist tests run on a specific fill set of options rather than huge ranges 7. move some prints in quicklist test outside their loops to reduce prints 8. removing sds.h from dict.c since it is now used in both redis-server and redis-cli (uses hiredis sds)
* Run daily workflows only on redis/redis repo. (#8625)Harkrishn Patro2021-03-091-0/+2
| | | Co-authored-by: Harkrishn Patro <harkrisp@amazon.com>
* Cleanup usage of malloc_usable_size. (#8554)Yossi Gottlieb2021-02-251-1/+36
| | | | | | | | | * Add better control of malloc_usable_size() usage. * Use malloc_usable_size on alpine libc daily job. * Add no-malloc-usable-size daily jobs. * Fix zmalloc(0) when HAVE_MALLOC_SIZE is undefined. In order to align with the jemalloc behavior, this should never return NULL or OOM panic.
* Fix compile errors with no HAVE_MALLOC_SIZE. (#8533)Yossi Gottlieb2021-02-231-1/+21
| | | | | Also adds a new daily CI test, relying on the fact that we don't use malloc_size() on alpine libmusl. Fixes #8531
* Fix failed tests on Linux Alpine and add a CI job. (#8532)Yossi Gottlieb2021-02-231-0/+20
| | | | | | | | | | | | | | | | | | | * Remove linux/version.h dependency. This introduces unnecessary dependencies, and generally not a good idea as the platform we build on may be different than the platform we run on. To determine if sync_file_range exists we can simply rely on header file hints. * Fix setproctitle() on libmusl. The previous ifdef checks were a bit too strict for no apparent reason. * Fix tests failure on Linux with no backtrace. * Add alpine daily CI job.
* Removed time sensitive checks from block on background tests. Fixed ↵filipe oliveira2021-02-101-1/+1
| | | | | | | uninitialized variable (#8479) - removes time sensitive checks from block on background tests during leak checks. - fix uninitialized variable on RedisModuleBlockedClient() when calling RM_BlockedClientMeasureTimeEnd() without RM_BlockedClientMeasureTimeStart()
* Update CI on Ubuntu to tcl8.6 (since 20.04 is now used) (#8460)Oran Agra2021-02-072-7/+7
| | | | Github started shifting some repositoreis to use ubuntu 20.04 by default tcl8.5 is missing in these, but 8.6 exists in both 20.04 and 18.04
* Add --dump-logs tests option. (#8459)Yossi Gottlieb2021-02-071-12/+12
| | | | Dump the entire server log if a test failed, to easy troubleshooting with no access to log files.
* Fix FreeBSD tests and CI Daily issues. (#8438)Yossi Gottlieb2021-02-032-18/+8
| | | | | | | | * Add bash temporarily to allow sentinel fd leaks test to run. * Use vmactions-freebsd rdist sync to work around bind permission denied and slow execution issues. * Upgrade to tcl8.6 to be aligned with latest Ubuntu envs. * Concat all command executions to avoid ignoring failures. * Skip intensive fuzzer on FreeBSD. For some yet unknown reason, generate_fuzzy_traffic_on_key causes TCL to significantly bloat on FreeBSD resulting with out of memory.
* Add CI for FreeBSD (#8292)Guy Korland2021-01-202-0/+28
| | | Co-authored-by: Oran Agra <oran@redislabs.com>
* Add io-thread daily CI tests. (#8232)Yossi Gottlieb2021-01-171-0/+17
| | | | | | | | | This adds basic coverage to IO threads by running the cluster and few selected Redis test suite tests with the IO threads enabled. Also provides some necessary additional improvements to the test suite: * Add --config to sentinel/cluster tests for arbitrary configuration. * Fix --tags whitelisting which was broken. * Add a `network` tag to some tests that are more network intensive. This is work in progress and more tests should be properly tagged in the future.
* Remove end-of-life CentOS 6 workflows. (#8121)Yossi Gottlieb2020-12-022-32/+0
|
* Only supress implitic fallthrough on GCC 7Madelyn Olson2020-10-261-1/+1
|
* Update CI so that warnings cause build failuresMadelyn Olson2020-10-261-6/+7
|
* Add a --no-latency tests flag. (#7939)Yossi Gottlieb2020-10-221-1/+1
| | | Useful for running tests on systems which may be way slower than usual.
* fix recently broken TLS build error, and add coverage for CI (#7833)Oran Agra2020-09-231-1/+2
|
* Implement redisAtomic to replace _Atomic C11 builtin (#7707)Wang Yuan2020-09-172-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redis 6.0 introduces I/O threads, it is so cool and efficient, we use C11 _Atomic to establish inter-thread synchronization without mutex. But the compiler that must supports C11 _Atomic can compile redis code, that brings a lot of inconvenience since some common platforms can't support by default such as CentOS7, so we want to implement redis atomic type to make it more portable. We have implemented our atomic variable for redis that only has 'relaxed' operations in src/atomicvar.h, so we implement some operations with 'sequentially-consistent', just like the default behavior of C11 _Atomic that can establish inter-thread synchronization. And we replace all uses of C11 _Atomic with redis atomic variable. Our implementation of redis atomic variable uses C11 _Atomic, __atomic or __sync macros if available, it supports most common platforms, and we will detect automatically which feature we use. In Makefile we use a dummy file to detect if the compiler supports C11 _Atomic. Now for gcc, we can compile redis code theoretically if your gcc version is not less than 4.1.2(starts to support __sync_xxx operations). Otherwise, we remove use mutex fallback to implement redis atomic variable for performance and test. You will get compiling errors if your compiler doesn't support all features of above. For cover redis atomic variable tests, we add other CI jobs that build redis on CentOS6 and CentOS7 and workflow daily jobs that run the tests on them. For them, we just install gcc by default in order to cover different compiler versions, gcc is 4.4.7 by default installation on CentOS6 and 4.8.5 on CentOS7. We restore the feature that we can test redis with Helgrind to find data race errors. But you need install Valgrind in the default path configuration firstly before running your tests, since we use macros in helgrind.h to tell Helgrind inter-thread happens-before relationship explicitly for avoiding false positives. Please open an issue on github if you find data race errors relate to this commit. Unrelated: - Fix redefinition of typedef 'RedisModuleUserChangedFunc' For some old version compilers, they will report errors or warnings, if we re-define function type.
* Fix failing valgrind installation in github actions (#7792)Oran Agra2020-09-131-0/+1
| | | | These tests started failing every day on http 404 (not being able to install valgrind)
* Add daily CI for MacOS (#7759)Oran Agra2020-09-081-0/+18
|
* TLS: relax verification on CONFIG SET. (#7665)Yossi Gottlieb2020-08-171-6/+20
| | | | | | | | | | | | Avoid re-configuring (and validating) SSL/TLS configuration on `CONFIG SET` when TLS is not actively enabled for incoming connections, cluster bus or replication. This fixes failures when tests run without `--tls` on binaries that were built with TLS support. An additional benefit is that it's now possible to perform a multi-step configuration process while TLS is disabled. The new configuration will be verified and applied only when TLS is effectively enabled.
* Run daily workflow on main repo only (no forks). (#7646)Yossi Gottlieb2020-08-111-0/+7
|
* Fix test-centos7-tls daily job. (#7598)Yossi Gottlieb2020-07-311-2/+2
|
* CI: Add daily CentOS 7.x jobs. (#7582)Yossi Gottlieb2020-07-301-4/+50
|
* Daily github action: run cluster and sentinel tests with tls (#7575)Oran Agra2020-07-271-2/+2
|
* Run daily CI on PRs to release a branch (#7535)Oran Agra2020-07-201-2/+4
|
* GitHub Actions workflows - use latest version of actions/checkout (#7534)Scott Brenner2020-07-202-10/+10
|
* Adds GitHub issue templates (#7468)Itamar Haber2020-07-165-0/+97
| | | | Co-authored-by: Oran Agra <oran@redislabs.com> Co-authored-by: yoav-steinberg <yoav@monfort.co.il>
* update release scripts for new hosts, and CI to run more tests (#7480)Oran Agra2020-07-121-3/+23
| | | | | * update daily CI to include cluster and sentinel tests * update daily CI to run when creating a new release * update release scripts to work on the new redis.io hosts
* fix: typo in CI job name (#7466)Abhishek Soni2020-07-101-1/+1
|
* 32bit CI needs to build modules correctlyOran Agra2020-05-271-1/+3
|
* daily CI test with tlsOran Agra2020-05-261-0/+15
|
* add CI for 32bit buildOran Agra2020-05-242-0/+34
|
* add daily github actions with libc malloc and valgrindOran Agra2020-05-041-0/+48
| | | | | | | | | | | | | | | * fix memlry leaks with diskless replica short read. * fix a few timing issues with valgrind runs * fix issue with valgrind and watchdog schedule signal about the valgrind WD issue: the stack trace test in logging.tcl, has issues with valgrind: ==28808== Can't extend stack to 0x1ffeffdb38 during signal delivery for thread 1: ==28808== too small or bad protection modes it seems to be some valgrind bug with SA_ONSTACK. SA_ONSTACK seems unneeded since WD is not recursive (SA_NODEFER was removed), also, not sure if it's even valid without a call to sigaltstack()
* testsuite run the defrag latency test soloOran Agra2020-04-161-2/+2
| | | | | | | | this test is time sensitive and it sometimes fail to pass below the latency threshold, even on strong machines. this test was the reson we're running just 2 parallel tests in the github actions CI, revering this.
* change CI to build and run the module api testsOran Agra2020-02-271-0/+2
|
* fix github actions failing latency test for active defrag - part 2Oran Agra2020-02-271-2/+2
| | | | | | | | | | it seems that running two clients at a time is ok too, resuces action time from 20 minutes to 10. we'll use this for now, and if one day it won't be enough we'll have to run just the sensitive tests one by one separately from the others. this commit also fixes an issue with the defrag test that appears to be very rare.
* fix github actions failing latency test for active defragOran Agra2020-02-251-10/+11
| | | | | | | | | | seems that github actions are slow, using just one client to reduce false positives. also adding verbose, testing only on latest ubuntu, and building on older one. when doing that, i can reduce the test threshold back to something saner
* add CI actionGuy Korland2019-10-202-14/+28
|
* Update pull.ymlGuy Korland2019-03-151-0/+9
|
* add pull appGuy Korland2019-03-151-0/+5