Skip to content

Commit

Permalink
testsuite: ensure epilog failure logs job exception
Browse files Browse the repository at this point in the history
Problem: Nothing in the testsuite ensures that an epilog failure
results in a job exception.

Add a test to t2274-manager-perilog-per-rank.t to ensure a job
exception is logged when the epilog fails.
  • Loading branch information
grondo committed Feb 27, 2025
1 parent f3a8802 commit 09b01c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/t2274-manager-perilog-per-rank.t
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ test_expect_success 'perilog: epilog failure drains ranks' '
test "$(flux resource drain -no {reason})" = "epilog failed for job $jobid" &&
undrain_all
'
test_expect_success 'perilog: epilog failure raises non-fatal job exception' '
flux job wait-event -vHt 30 $jobid exception
'
test_expect_success 'perilog: job does not start when prolog cancel times out' '
undrain_all &&
flux config load <<-EOF &&
Expand Down

0 comments on commit 09b01c5

Please sign in to comment.