-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testsuite: add test for successful full cancel after partial cancel
Problem: the multiple visitation bug wasn't detected in partial cancel because existing tests don't perform a follow-up, full cancel and subsequent re-allocation. Add these tests to check for incorrect visitation behavior.
- Loading branch information
Showing
5 changed files
with
414 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,9 @@ | ||
match allocate @TEST_SRCDIR@/data/resource/jobspecs/cancel/test022.yaml | ||
partial-cancel 1 jgf @TEST_SRCDIR@/data/resource/jgfs/elastic/node-1-partial-cancel.json stats | ||
find sched-now=allocated | ||
info 1 | ||
cancel 1 stats | ||
find sched-now=allocated | ||
match allocate @TEST_SRCDIR@/data/resource/jobspecs/cancel/test022.yaml | ||
find sched-now=allocated | ||
quit |
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,9 @@ | ||
match allocate @TEST_SRCDIR@/data/resource/jobspecs/cancel/test022.yaml | ||
partial-cancel 1 rv1exec @TEST_SRCDIR@/data/resource/rv1exec/cancel/rank0_cancel-jgfgraph.json stats | ||
find sched-now=allocated | ||
info 1 | ||
cancel 1 stats | ||
find sched-now=allocated | ||
match allocate @TEST_SRCDIR@/data/resource/jobspecs/cancel/test022.yaml | ||
find sched-now=allocated | ||
quit |
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,378 @@ | ||
---------------core0[1:x] | ||
---------------core1[1:x] | ||
---------------core2[1:x] | ||
---------------core3[1:x] | ||
---------------core4[1:x] | ||
---------------core5[1:x] | ||
---------------core6[1:x] | ||
---------------core7[1:x] | ||
---------------core8[1:x] | ||
---------------core9[1:x] | ||
---------------core10[1:x] | ||
---------------core11[1:x] | ||
---------------core12[1:x] | ||
---------------core13[1:x] | ||
---------------core14[1:x] | ||
---------------core15[1:x] | ||
---------------core16[1:x] | ||
---------------core17[1:x] | ||
---------------gpu0[1:x] | ||
---------------memory0[2:x] | ||
---------------memory1[2:x] | ||
---------------memory2[2:x] | ||
---------------memory3[2:x] | ||
------------socket0[1:x] | ||
---------------core18[1:x] | ||
---------------core19[1:x] | ||
---------------core20[1:x] | ||
---------------core21[1:x] | ||
---------------core22[1:x] | ||
---------------core23[1:x] | ||
---------------core24[1:x] | ||
---------------core25[1:x] | ||
---------------core26[1:x] | ||
---------------core27[1:x] | ||
---------------core28[1:x] | ||
---------------core29[1:x] | ||
---------------core30[1:x] | ||
---------------core31[1:x] | ||
---------------core32[1:x] | ||
---------------core33[1:x] | ||
---------------core34[1:x] | ||
---------------core35[1:x] | ||
---------------gpu1[1:x] | ||
---------------memory4[2:x] | ||
---------------memory5[2:x] | ||
---------------memory6[2:x] | ||
---------------memory7[2:x] | ||
------------socket1[1:x] | ||
---------node0[1:x] | ||
---------------core0[1:x] | ||
---------------core1[1:x] | ||
---------------core2[1:x] | ||
---------------core3[1:x] | ||
---------------core4[1:x] | ||
---------------core5[1:x] | ||
---------------core6[1:x] | ||
---------------core7[1:x] | ||
---------------core8[1:x] | ||
---------------core9[1:x] | ||
---------------core10[1:x] | ||
---------------core11[1:x] | ||
---------------core12[1:x] | ||
---------------core13[1:x] | ||
---------------core14[1:x] | ||
---------------core15[1:x] | ||
---------------core16[1:x] | ||
---------------core17[1:x] | ||
---------------gpu0[1:x] | ||
---------------memory0[2:x] | ||
---------------memory1[2:x] | ||
---------------memory2[2:x] | ||
---------------memory3[2:x] | ||
------------socket0[1:x] | ||
---------------core18[1:x] | ||
---------------core19[1:x] | ||
---------------core20[1:x] | ||
---------------core21[1:x] | ||
---------------core22[1:x] | ||
---------------core23[1:x] | ||
---------------core24[1:x] | ||
---------------core25[1:x] | ||
---------------core26[1:x] | ||
---------------core27[1:x] | ||
---------------core28[1:x] | ||
---------------core29[1:x] | ||
---------------core30[1:x] | ||
---------------core31[1:x] | ||
---------------core32[1:x] | ||
---------------core33[1:x] | ||
---------------core34[1:x] | ||
---------------core35[1:x] | ||
---------------gpu1[1:x] | ||
---------------memory4[2:x] | ||
---------------memory5[2:x] | ||
---------------memory6[2:x] | ||
---------------memory7[2:x] | ||
------------socket1[1:x] | ||
---------node1[1:x] | ||
------rack0[1:s] | ||
---tiny0[1:s] | ||
INFO: ============================= | ||
INFO: JOBID=1 | ||
INFO: RESOURCES=ALLOCATED | ||
INFO: SCHEDULED AT=Now | ||
INFO: ============================= | ||
INFO: ============================= | ||
INFO: PARTIAL CANCEL PREORDER COUNT="4" | ||
INFO: PARTIAL CANCEL POSTORDER COUNT="2" | ||
INFO: ============================= | ||
---------------core0[1:x] | ||
---------------core1[1:x] | ||
---------------core2[1:x] | ||
---------------core3[1:x] | ||
---------------core4[1:x] | ||
---------------core5[1:x] | ||
---------------core6[1:x] | ||
---------------core7[1:x] | ||
---------------core8[1:x] | ||
---------------core9[1:x] | ||
---------------core10[1:x] | ||
---------------core11[1:x] | ||
---------------core12[1:x] | ||
---------------core13[1:x] | ||
---------------core14[1:x] | ||
---------------core15[1:x] | ||
---------------core16[1:x] | ||
---------------core17[1:x] | ||
---------------gpu0[1:x] | ||
---------------memory0[2:x] | ||
---------------memory1[2:x] | ||
---------------memory2[2:x] | ||
---------------memory3[2:x] | ||
------------socket0[1:x] | ||
---------------core18[1:x] | ||
---------------core19[1:x] | ||
---------------core20[1:x] | ||
---------------core21[1:x] | ||
---------------core22[1:x] | ||
---------------core23[1:x] | ||
---------------core24[1:x] | ||
---------------core25[1:x] | ||
---------------core26[1:x] | ||
---------------core27[1:x] | ||
---------------core28[1:x] | ||
---------------core29[1:x] | ||
---------------core30[1:x] | ||
---------------core31[1:x] | ||
---------------core32[1:x] | ||
---------------core33[1:x] | ||
---------------core34[1:x] | ||
---------------core35[1:x] | ||
---------------gpu1[1:x] | ||
---------------memory4[2:x] | ||
---------------memory5[2:x] | ||
---------------memory6[2:x] | ||
---------------memory7[2:x] | ||
------------socket1[1:x] | ||
---------node1[1:x] | ||
------rack0[1:x] | ||
---tiny0[1:x] | ||
INFO: ============================= | ||
INFO: EXPRESSION="sched-now=allocated" | ||
INFO: ============================= | ||
INFO: ============================= | ||
INFO: CANCEL PREORDER COUNT="52" | ||
INFO: CANCEL POSTORDER COUNT="51" | ||
INFO: ============================= | ||
INFO: ============================= | ||
INFO: EXPRESSION="sched-now=allocated" | ||
INFO: ============================= | ||
---------------core0[1:x] | ||
---------------core1[1:x] | ||
---------------core2[1:x] | ||
---------------core3[1:x] | ||
---------------core4[1:x] | ||
---------------core5[1:x] | ||
---------------core6[1:x] | ||
---------------core7[1:x] | ||
---------------core8[1:x] | ||
---------------core9[1:x] | ||
---------------core10[1:x] | ||
---------------core11[1:x] | ||
---------------core12[1:x] | ||
---------------core13[1:x] | ||
---------------core14[1:x] | ||
---------------core15[1:x] | ||
---------------core16[1:x] | ||
---------------core17[1:x] | ||
---------------gpu0[1:x] | ||
---------------memory0[2:x] | ||
---------------memory1[2:x] | ||
---------------memory2[2:x] | ||
---------------memory3[2:x] | ||
------------socket0[1:x] | ||
---------------core18[1:x] | ||
---------------core19[1:x] | ||
---------------core20[1:x] | ||
---------------core21[1:x] | ||
---------------core22[1:x] | ||
---------------core23[1:x] | ||
---------------core24[1:x] | ||
---------------core25[1:x] | ||
---------------core26[1:x] | ||
---------------core27[1:x] | ||
---------------core28[1:x] | ||
---------------core29[1:x] | ||
---------------core30[1:x] | ||
---------------core31[1:x] | ||
---------------core32[1:x] | ||
---------------core33[1:x] | ||
---------------core34[1:x] | ||
---------------core35[1:x] | ||
---------------gpu1[1:x] | ||
---------------memory4[2:x] | ||
---------------memory5[2:x] | ||
---------------memory6[2:x] | ||
---------------memory7[2:x] | ||
------------socket1[1:x] | ||
---------node0[1:x] | ||
---------------core0[1:x] | ||
---------------core1[1:x] | ||
---------------core2[1:x] | ||
---------------core3[1:x] | ||
---------------core4[1:x] | ||
---------------core5[1:x] | ||
---------------core6[1:x] | ||
---------------core7[1:x] | ||
---------------core8[1:x] | ||
---------------core9[1:x] | ||
---------------core10[1:x] | ||
---------------core11[1:x] | ||
---------------core12[1:x] | ||
---------------core13[1:x] | ||
---------------core14[1:x] | ||
---------------core15[1:x] | ||
---------------core16[1:x] | ||
---------------core17[1:x] | ||
---------------gpu0[1:x] | ||
---------------memory0[2:x] | ||
---------------memory1[2:x] | ||
---------------memory2[2:x] | ||
---------------memory3[2:x] | ||
------------socket0[1:x] | ||
---------------core18[1:x] | ||
---------------core19[1:x] | ||
---------------core20[1:x] | ||
---------------core21[1:x] | ||
---------------core22[1:x] | ||
---------------core23[1:x] | ||
---------------core24[1:x] | ||
---------------core25[1:x] | ||
---------------core26[1:x] | ||
---------------core27[1:x] | ||
---------------core28[1:x] | ||
---------------core29[1:x] | ||
---------------core30[1:x] | ||
---------------core31[1:x] | ||
---------------core32[1:x] | ||
---------------core33[1:x] | ||
---------------core34[1:x] | ||
---------------core35[1:x] | ||
---------------gpu1[1:x] | ||
---------------memory4[2:x] | ||
---------------memory5[2:x] | ||
---------------memory6[2:x] | ||
---------------memory7[2:x] | ||
------------socket1[1:x] | ||
---------node1[1:x] | ||
------rack0[1:s] | ||
---tiny0[1:s] | ||
INFO: ============================= | ||
INFO: JOBID=2 | ||
INFO: RESOURCES=ALLOCATED | ||
INFO: SCHEDULED AT=Now | ||
INFO: ============================= | ||
---------------core0[1:x] | ||
---------------core1[1:x] | ||
---------------core2[1:x] | ||
---------------core3[1:x] | ||
---------------core4[1:x] | ||
---------------core5[1:x] | ||
---------------core6[1:x] | ||
---------------core7[1:x] | ||
---------------core8[1:x] | ||
---------------core9[1:x] | ||
---------------core10[1:x] | ||
---------------core11[1:x] | ||
---------------core12[1:x] | ||
---------------core13[1:x] | ||
---------------core14[1:x] | ||
---------------core15[1:x] | ||
---------------core16[1:x] | ||
---------------core17[1:x] | ||
---------------gpu0[1:x] | ||
---------------memory0[2:x] | ||
---------------memory1[2:x] | ||
---------------memory2[2:x] | ||
---------------memory3[2:x] | ||
------------socket0[1:x] | ||
---------------core18[1:x] | ||
---------------core19[1:x] | ||
---------------core20[1:x] | ||
---------------core21[1:x] | ||
---------------core22[1:x] | ||
---------------core23[1:x] | ||
---------------core24[1:x] | ||
---------------core25[1:x] | ||
---------------core26[1:x] | ||
---------------core27[1:x] | ||
---------------core28[1:x] | ||
---------------core29[1:x] | ||
---------------core30[1:x] | ||
---------------core31[1:x] | ||
---------------core32[1:x] | ||
---------------core33[1:x] | ||
---------------core34[1:x] | ||
---------------core35[1:x] | ||
---------------gpu1[1:x] | ||
---------------memory4[2:x] | ||
---------------memory5[2:x] | ||
---------------memory6[2:x] | ||
---------------memory7[2:x] | ||
------------socket1[1:x] | ||
---------node0[1:x] | ||
---------------core0[1:x] | ||
---------------core1[1:x] | ||
---------------core2[1:x] | ||
---------------core3[1:x] | ||
---------------core4[1:x] | ||
---------------core5[1:x] | ||
---------------core6[1:x] | ||
---------------core7[1:x] | ||
---------------core8[1:x] | ||
---------------core9[1:x] | ||
---------------core10[1:x] | ||
---------------core11[1:x] | ||
---------------core12[1:x] | ||
---------------core13[1:x] | ||
---------------core14[1:x] | ||
---------------core15[1:x] | ||
---------------core16[1:x] | ||
---------------core17[1:x] | ||
---------------gpu0[1:x] | ||
---------------memory0[2:x] | ||
---------------memory1[2:x] | ||
---------------memory2[2:x] | ||
---------------memory3[2:x] | ||
------------socket0[1:x] | ||
---------------core18[1:x] | ||
---------------core19[1:x] | ||
---------------core20[1:x] | ||
---------------core21[1:x] | ||
---------------core22[1:x] | ||
---------------core23[1:x] | ||
---------------core24[1:x] | ||
---------------core25[1:x] | ||
---------------core26[1:x] | ||
---------------core27[1:x] | ||
---------------core28[1:x] | ||
---------------core29[1:x] | ||
---------------core30[1:x] | ||
---------------core31[1:x] | ||
---------------core32[1:x] | ||
---------------core33[1:x] | ||
---------------core34[1:x] | ||
---------------core35[1:x] | ||
---------------gpu1[1:x] | ||
---------------memory4[2:x] | ||
---------------memory5[2:x] | ||
---------------memory6[2:x] | ||
---------------memory7[2:x] | ||
------------socket1[1:x] | ||
---------node1[1:x] | ||
------rack0[1:x] | ||
---tiny0[1:x] | ||
INFO: ============================= | ||
INFO: EXPRESSION="sched-now=allocated" | ||
INFO: ============================= |
Oops, something went wrong.