Skip to content

[bugfix] Fix slurm backend crash when polling job arrays - #3737

Merged
vkarak merged 1 commit into
reframe-hpc:masterfrom
vkarak:bugfix/slurm-keyerror
Sep 16, 2026
Merged

vkarak merged 1 commit into
reframe-hpc:masterfrom
vkarak:bugfix/slurm-keyerror

Conversation

@vkarak

@vkarak vkarak commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

The crash was happening inside _cancel_if_blocked() and it was due to two reasons:

  1. The squeue commend used the wrong job id format
  2. The job array jobids were treated verbatim instead of trimming the indexing part as it is done in other parts of the backend.

This fix also applies for heterogeneous jobs.

Closes #3719.

The crash was happening inside _cancel_if_blocked() and it was due to
two reasons:

1. The `squeue` commend used the wrong job id format
2. The job array jobids were treated verbatim instead of trimming the
   indexing part as it is done in other parts of the backend.

This fix also applies for heterogeneous jobs.

Signed-off-by: Vasileios Karakasis <vkarak@gmail.com>
@codecov

codecov Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.89%. Comparing base (f583c9b) to head (4b0f5a8).

Files with missing lines Patch % Lines
reframe/core/schedulers/slurm.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3737      +/-   ##
==========================================
- Coverage   91.89%   91.89%   -0.01%     
==========================================
  Files          62       62              
  Lines       13802    13803       +1     
==========================================
  Hits        12684    12684              
- Misses       1118     1119       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@victorusu victorusu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in ReFrame Backlog Sep 16, 2026
@vkarak
vkarak merged commit 53d7c0e into reframe-hpc:master Sep 16, 2026
31 of 33 checks passed
@vkarak
vkarak deleted the bugfix/slurm-keyerror branch September 16, 2026 16:17
@github-project-automation github-project-automation Bot moved this from In Progress to Done in ReFrame Backlog Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Intermittent KeyError when polling Slurm job arrays

2 participants