2023-08-07 14:55:19 -05:00
|
|
|
name: "GC stress test"
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- published
|
|
|
|
|
|
|
|
permissions: read-all
|
|
|
|
|
|
|
|
jobs:
|
2023-09-01 12:54:39 -05:00
|
|
|
gc-referrers-stress-local:
|
|
|
|
name: GC(with referrers) on filesystem with short interval
|
2023-08-07 14:55:19 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 14:30:49 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-07 14:55:19 -05:00
|
|
|
- uses: ./.github/actions/clean-runner
|
|
|
|
- uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
cache: false
|
|
|
|
go-version: 1.20.x
|
2023-08-23 11:21:43 -05:00
|
|
|
|
2023-08-07 14:55:19 -05:00
|
|
|
- name: Run zb
|
|
|
|
run: |
|
|
|
|
make binary
|
|
|
|
make bench
|
2023-09-01 12:54:39 -05:00
|
|
|
./bin/zot-linux-amd64 serve test/gc-stress/config-gc-referrers-bench-local.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
|
|
|
|
|
|
|
|
gc-stress-local:
|
|
|
|
name: GC(without referrers) on filesystem with short interval
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 14:30:49 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-01 12:54:39 -05:00
|
|
|
- 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 test/gc-stress/config-gc-bench-local.json &
|
2023-08-07 14:55:19 -05:00
|
|
|
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
|