Skip to content

use configured slurm user and group in init-config.sh#529

Merged
aditigaur4 merged 1 commit into
masterfrom
azreenzaman/autoscale-credentials
Jun 25, 2026
Merged

use configured slurm user and group in init-config.sh#529
aditigaur4 merged 1 commit into
masterfrom
azreenzaman/autoscale-credentials

Conversation

@azreenz

@azreenz azreenz commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 24, 2026 16:26

Copilot AI 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.

Pull request overview

This PR updates init-config.sh to write autoscale.json using the configured Slurm service user/group (rather than hard-coding slurm:slurm), so generated config files match deployments that customize the Slurm account.

Changes:

  • Read Slurm user/group from jetpack configuration.
  • Use those values as the owner/group when installing autoscale.json.
Criterion Max Points Points Awarded Notes
PR Description Accuracy 20 0 No PR description was provided in the metadata.
PR Atomicity 20 20 Single focused change.
Logical Implementation 10 10 Straightforward change.
Regression Risk 10 0 As implemented, set -e + unguarded jetpack calls can break init-config.sh in environments without jetpack / missing keys.
Exception Handling 10 0 No fallback/guarding for missing jetpack/missing config key in the new code path.
Code Comments 10 10 No new comment issues introduced.
Repetitive Code 10 10 No duplication introduced.
Spelling 5 5 No spelling issues noted.
Logging Quality 5 5 No logging changes.

FINAL SCORE: 60/100

RECOMMENDATION: DO NOT MERGE
RATIONALE: The new jetpack lookups can cause init-config.sh to fail under set -e if jetpack isn’t installed or config keys are missing, and the group key used appears inconsistent with existing usage in this repo.
BLOCKERS:

  • Guard jetpack config calls with a safe fallback and use the correct group key (consistent with existing repo usage).

Comment thread azure-slurm/sbin/init-config.sh Outdated

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

ryanhamel
ryanhamel previously approved these changes Jun 24, 2026
Comment thread azure-slurm/sbin/init-config.sh Outdated
bwatrous
bwatrous previously approved these changes Jun 25, 2026
@azreenz
azreenz dismissed stale reviews from bwatrous and ryanhamel via 9e10f5c June 25, 2026 13:38
@azreenz
azreenz force-pushed the azreenzaman/autoscale-credentials branch from 47556be to 9e10f5c Compare June 25, 2026 13:38
@azreenz
azreenz requested review from bwatrous and ryanhamel June 25, 2026 13:40
@aditigaur4
aditigaur4 merged commit 83edfae into master Jun 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants