File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
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
+
5
10
# Stress all packages, one at a time. This allows for a more useful output.
6
11
for p in $( go list ./... | sed ' s#github.com/cockroachdb/pebble#.#' ) ; do
7
12
echo
8
13
echo " "
9
14
echo " "
10
15
echo " Stressing $p "
11
16
echo " "
12
- make stress STRESSFLAGS=' -maxtime 5m -maxruns 100' " PKG=$p "
17
+ case " $p " in
18
+ .|./internal/manifest|./sstable|./wal)
19
+ # These packages have a lot of state space to cover, so we give them more
20
+ # time.
21
+ MAX_TIME=30m
22
+ MAX_RUNS=100
23
+ ;;
24
+ * )
25
+ MAX_TIME=5m
26
+ MAX_RUNS=100
27
+ ;;
28
+ esac
29
+ echo " make stress STRESSFLAGS=\" -maxtime $MAX_TIME -maxruns $MAX_RUNS -p $PARALLEL \" PKG=\" $p \" "
30
+ make stress STRESSFLAGS=" -maxtime $MAX_TIME -maxruns $MAX_RUNS -p $PARALLEL " PKG=" $p "
13
31
done
You can’t perform that action at this time.
0 commit comments