-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add test for gc with short interval
Signed-off-by: Andreea-Lupu <[email protected]>
- Loading branch information
1 parent
b688e57
commit 5e6e8cd
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "Test - gc with short interval" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: [main] | ||
release: | ||
types: | ||
- published | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
client-tools: | ||
name: Test - gc with short interval | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/clean-runner | ||
- uses: actions/setup-go@v4 | ||
with: | ||
cache: false | ||
go-version: 1.20.x | ||
|
||
- name: Run zb | ||
run: | | ||
make binary | ||
make bench | ||
./bin/zot-linux-amd64 serve examples/config-gc-bench.json & | ||
sleep 10 | ||
bin/zb-linux-amd64 -c 10 -n 100 -o ci-cd http://localhost:8080 | ||
killall -r zot-* | ||
# clean zot storage | ||
sudo rm -rf /tmp/zot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"distSpecVersion": "1.1.0-dev", | ||
"storage": { | ||
"rootDirectory": "/tmp/zot", | ||
"gc": true, | ||
"gcDelay": "10s", | ||
"gcInterval": "1s" | ||
}, | ||
"http": { | ||
"address": "127.0.0.1", | ||
"port": "8080" | ||
}, | ||
"log": { | ||
"level": "debug" | ||
} | ||
} |