Skip to content

Commit e197375

Browse files
committed
testsuite: add test for issue 1129
Problem: Fluxion needs a test for overflow in `calc_factor`. Add a testsuite test based on the issue reproducer.
1 parent 7c8208e commit e197375

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

t/issues/t1129-match-overflow.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
#
3+
# Ensure fluxion calc_factor executes without overflow
4+
#
5+
6+
log() { printf "issue#1129: $@\n" >&2; }
7+
8+
TEST_SIZE=${TEST_SIZE:-900}
9+
10+
log "Unloading modules..."
11+
flux module remove sched-simple
12+
flux module remove resource
13+
14+
flux config load <<EOF
15+
[sched-fluxion-qmanager]
16+
queue-policy = "easy"
17+
18+
[resource]
19+
noverify = true
20+
norestrict = true
21+
22+
[[resource.config]]
23+
hosts = "test[1-${TEST_SIZE}]"
24+
cores = "0-112"
25+
gpus = "0-8"
26+
EOF
27+
28+
flux module load resource monitor-force-up
29+
flux module load sched-fluxion-resource
30+
flux module load sched-fluxion-qmanager
31+
flux queue start --all --quiet
32+
flux resource list
33+
flux resource status
34+
35+
log "Running test job."
36+
flux run -vvv -N${TEST_SIZE} -n${TEST_SIZE} \
37+
--setattr=exec.test.run_duration=1ms \
38+
true
39+
40+
log "reloading sched-simple..."
41+
flux module remove sched-fluxion-qmanager
42+
flux module remove sched-fluxion-resource
43+
flux module load sched-simple

0 commit comments

Comments
 (0)