Skip to content

Refer SLURM_SCONTROL_RESUME_FAILED_STATE in is_bootstrap_failure comment#703

Merged
hehe7318 merged 1 commit into
aws:developfrom
hehe7318:wip/refer-constant-in-is-bootstrap-failure-comment
Apr 30, 2026
Merged

Refer SLURM_SCONTROL_RESUME_FAILED_STATE in is_bootstrap_failure comment#703
hehe7318 merged 1 commit into
aws:developfrom
hehe7318:wip/refer-constant-in-is-bootstrap-failure-comment

Conversation

@hehe7318
Copy link
Copy Markdown
Contributor

Summary

Follow-up cleanup to #702. The inline comment above the is_bootstrap_timeout() branch in DynamicNode.is_bootstrap_failure() was hard-coding the expected flags (DOWN+CLOUD+POWERED_DOWN+NOT_RESPONDING). After #702 changed the constant to DOWN+CLOUD+POWERED_DOWN, the comment drifted from the code.

Replace the hard-coded flags with a reference to the SLURM_SCONTROL_RESUME_FAILED_STATE constant so future changes to the state set don't require touching this comment.

Test plan

  • No functional change; existing unit tests pass locally.

Avoid hard-coding the state flags in the inline comment so future
changes to the constant do not require a comment update.
@hehe7318 hehe7318 requested review from a team as code owners April 30, 2026 22:22
@hehe7318 hehe7318 enabled auto-merge (squash) April 30, 2026 22:25
@hehe7318 hehe7318 merged commit 5f56757 into aws:develop Apr 30, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants