Unverified Commit d5a3b3f5 authored by Matthieu MOREL's avatar Matthieu MOREL Committed by GitHub
Browse files

Setup dependabot for github-actions and codespell (#9857)



This sets up  dependabot to check weekly updates for pip and github-actions dependencies.
If it finds an update it will create a PR to update the dependency. More information can be found here

It includes the update of:

* vmactions/freebsd-vm from 0.1.4 to 0.1.5
* codespell from 2.0.0 to 2.1.0

Also includes spelling fixes found by the latest version of codespell.
Includes a dedicated .codespell folder so dependabot can read a requirements.txt file and every files dedicated to codespell can be grouped in the same place
Co-Authored-By: default avatarMatthieu MOREL <mmorel-35@users.noreply.github.com>
Co-Authored-By: default avatarMOREL Matthieu <matthieu.morel@cnp.fr>
parent c57e41c0
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
quiet-level = 2 quiet-level = 2
count = count =
skip = ./deps,./src/crc16_slottable.h,tmp*,./.git,./lcov-html skip = ./deps,./src/crc16_slottable.h,tmp*,./.git,./lcov-html
ignore-words = ./.github/wordlist.txt ignore-words = ./.codespell/wordlist.txt
...@@ -13,4 +13,5 @@ smove ...@@ -13,4 +13,5 @@ smove
te te
tre tre
cancelability cancelability
ist ist
\ No newline at end of file statics
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
- package-ecosystem: pip
directory: /.codespell
schedule:
interval: weekly
...@@ -521,7 +521,7 @@ jobs: ...@@ -521,7 +521,7 @@ jobs:
repository: ${{ env.GITHUB_REPOSITORY }} repository: ${{ env.GITHUB_REPOSITORY }}
ref: ${{ env.GITHUB_HEAD_REF }} ref: ${{ env.GITHUB_HEAD_REF }}
- name: test - name: test
uses: vmactions/freebsd-vm@v0.1.4 uses: vmactions/freebsd-vm@v0.1.5
with: with:
usesh: true usesh: true
sync: rsync sync: rsync
......
...@@ -18,8 +18,15 @@ jobs: ...@@ -18,8 +18,15 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install prerequisites - name: Install prerequisites
run: sudo pip install codespell==2.0.0 run: sudo pip install -r ./.codespell/requirements.txt
- name: Spell check - name: Spell check
run: codespell --config=./.github/.codespellrc run: codespell --config=./.codespell/.codespellrc
...@@ -69,7 +69,7 @@ void updateLFU(robj *val) { ...@@ -69,7 +69,7 @@ void updateLFU(robj *val) {
* LOOKUP_NONE (or zero): No special flags are passed. * LOOKUP_NONE (or zero): No special flags are passed.
* LOOKUP_NOTOUCH: Don't alter the last access time of the key. * LOOKUP_NOTOUCH: Don't alter the last access time of the key.
* LOOKUP_NONOTIFY: Don't trigger keyspace event on key miss. * LOOKUP_NONOTIFY: Don't trigger keyspace event on key miss.
* LOOKUP_NOSTATS: Don't increment key hits/misses couters. * LOOKUP_NOSTATS: Don't increment key hits/misses counters.
* LOOKUP_WRITE: Prepare the key for writing (delete expired keys even on * LOOKUP_WRITE: Prepare the key for writing (delete expired keys even on
* replicas, use separate keyspace stats and events (TODO)). * replicas, use separate keyspace stats and events (TODO)).
* *
......
...@@ -7422,7 +7422,7 @@ RedisModuleString *RM_GetCurrentUserName(RedisModuleCtx *ctx) { ...@@ -7422,7 +7422,7 @@ RedisModuleString *RM_GetCurrentUserName(RedisModuleCtx *ctx) {
* Returns NULL if the user is disabled or the user does not exist. * Returns NULL if the user is disabled or the user does not exist.
* The caller should later free the user using the function RM_FreeModuleUser().*/ * The caller should later free the user using the function RM_FreeModuleUser().*/
RedisModuleUser *RM_GetModuleUserFromUserName(RedisModuleString *name) { RedisModuleUser *RM_GetModuleUserFromUserName(RedisModuleString *name) {
/* First, verfify that the user exist */ /* First, verify that the user exist */
user *acl_user = ACLGetUserByName(name->ptr, sdslen(name->ptr)); user *acl_user = ACLGetUserByName(name->ptr, sdslen(name->ptr));
if (acl_user == NULL) { if (acl_user == NULL) {
return NULL; return NULL;
......
...@@ -329,7 +329,7 @@ void feedReplicationBuffer(char *s, size_t len) { ...@@ -329,7 +329,7 @@ void feedReplicationBuffer(char *s, size_t len) {
/* Install write handler for all replicas. */ /* Install write handler for all replicas. */
prepareReplicasToWrite(); prepareReplicasToWrite();
size_t start_pos = 0; /* The position of referenced blok to start sending. */ size_t start_pos = 0; /* The position of referenced block to start sending. */
listNode *start_node = NULL; /* Replica/backlog starts referenced node. */ listNode *start_node = NULL; /* Replica/backlog starts referenced node. */
int add_new_block = 0; /* Create new block if current block is total used. */ int add_new_block = 0; /* Create new block if current block is total used. */
listNode *ln = listLast(server.repl_buffer_blocks); listNode *ln = listLast(server.repl_buffer_blocks);
......
...@@ -2912,7 +2912,7 @@ int objectSetLRUOrLFU(robj *val, long long lfu_freq, long long lru_idle, ...@@ -2912,7 +2912,7 @@ int objectSetLRUOrLFU(robj *val, long long lfu_freq, long long lru_idle,
#define LOOKUP_NONE 0 #define LOOKUP_NONE 0
#define LOOKUP_NOTOUCH (1<<0) /* Don't update LRU. */ #define LOOKUP_NOTOUCH (1<<0) /* Don't update LRU. */
#define LOOKUP_NONOTIFY (1<<1) /* Don't trigger keyspace event on key misses. */ #define LOOKUP_NONOTIFY (1<<1) /* Don't trigger keyspace event on key misses. */
#define LOOKUP_NOSTATS (1<<2) /* Don't update keyspace hits/misses couters. */ #define LOOKUP_NOSTATS (1<<2) /* Don't update keyspace hits/misses counters. */
#define LOOKUP_WRITE (1<<3) /* Delete expired keys even in replicas. */ #define LOOKUP_WRITE (1<<3) /* Delete expired keys even in replicas. */
void dbAdd(redisDb *db, robj *key, robj *val); void dbAdd(redisDb *db, robj *key, robj *val);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment