Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 committed Mar 5, 2024
1 parent 0c61e41 commit 8272728
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/hypo/syncrand.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
.map(''.join).filter(lambda s: s.find('***') == -1 or (s.count('/***')==1 and s.endswith('a/***')))
st_patterns = st.lists(st.sampled_from(['a','?','/','*']), min_size=1, max_size=10)\
.map(''.join).filter(lambda s: s.find('***') == -1 )
st_patterns = st.lists(st.sampled_from(['a','?','/','*']), min_size=1, max_size=10)\
.map(''.join).filter(lambda s: s.find('**') == -1 )

st_option = st.fixed_dictionaries({
"option": st.just("--include") | st.just("--exclude"),
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 15 additions & 11 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@ name: "sync"
on:
push:
branches:
# - 'main'
- 'main'
- 'release-**'
paths-ignore:
- 'docs/**'
- '**.md'
- '**/sync.yml'
- '**/syncrand_test.py'
- '**/syncrand.py'
- '.github/scripts/sync/*.sh'
pull_request:
branches:
# - 'main'
- 'main'
- 'release-**'
paths-ignore:
- 'docs/**'
- '**.md'
paths:
- '**/sync.yml'
- '**/syncrand_test.py'
- '**/syncrand.py'
- '.github/scripts/sync/*.sh'
schedule:
- cron: '30 20 * * *'

Expand Down Expand Up @@ -49,25 +53,25 @@ jobs:
- name: Test Sync
timeout-minutes: 30
run: |
sudo META=redis .github/scripts/command/sync.sh
sudo META=redis .github/scripts/sync/sync.sh
- name: Test Sync with fsrand
timeout-minutes: 30
run: |
sudo META=redis .github/scripts/command/sync_fsrand.sh
sudo META=redis .github/scripts/sync/sync_fsrand.sh
- name: Test Sync with mino
timeout-minutes: 30
run: |
sudo META=redis .github/scripts/command/sync_minio.sh
sudo META=redis .github/scripts/sync/sync_minio.sh
- name: Test Sync with multi workers
timeout-minutes: 30
run: |
# not supported algo: "dsa" "ecdsa-sk" "ed25519-sk"
types=("ecdsa" "ed25519" "rsa")
random_type=${types[$RANDOM % ${#types[@]}]}
sudo CI=true META=redis KEY_TYPE=$random_type .github/scripts/command/sync_cluster.sh
sudo CI=true META=redis KEY_TYPE=$random_type .github/scripts/sync/sync_cluster.sh
- name: Log
if: always()
Expand Down

0 comments on commit 8272728

Please sign in to comment.