Skip to content

Commit d86f6da

Browse files
committed
scripts: more improvements to stress.sh
Increase the number of runs as many packages have very fast tests. Also, use reduced parallelism only for the bigger packages.
1 parent f9312e5 commit d86f6da

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

scripts/stress.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
set -euo pipefail
44

5-
# The GitHub Action runner has 4 cores. Use 3 processes to get good utilization
6-
# but not slow down things too much.
7-
# TODO(radu): replace with a percentage when stress supports it.
8-
PARALLEL="3"
9-
105
# Stress all packages, one at a time. This allows for a more useful output.
116
for p in $(go list ./... | sed 's#github.com/cockroachdb/pebble#.#'); do
127
echo
@@ -15,15 +10,18 @@ echo
1510
echo "Stressing $p"
1611
echo ""
1712
case "$p" in
18-
.|./internal/manifest|./sstable|./wal)
13+
.|./internal/manifest|./internal/metamorphic|./sstable|./wal)
1914
# These packages have a lot of state space to cover, so we give them more
20-
# time.
15+
# time. We also reduce the number of processes to avoid slowing down each
16+
# individual run too much.
2117
MAX_TIME=30m
22-
MAX_RUNS=100
18+
MAX_RUNS=1000
19+
PARALLEL="75%"
2320
;;
2421
*)
2522
MAX_TIME=5m
26-
MAX_RUNS=100
23+
MAX_RUNS=1000
24+
PARALLEL="100%"
2725
;;
2826
esac
2927
echo "make stress STRESSFLAGS=\"-maxtime $MAX_TIME -maxruns $MAX_RUNS -p $PARALLEL\" PKG=\"$p\""

0 commit comments

Comments
 (0)