Skip to content

WIP feat: wire cluster autodiscovery into SlurmConfig and CLI#12

Open
gregorweiss wants to merge 6 commits into
worktree-slurm-cluster-autodiscoveryfrom
worktree-wire-autodiscovery-slurmconfig
Open

WIP feat: wire cluster autodiscovery into SlurmConfig and CLI#12
gregorweiss wants to merge 6 commits into
worktree-slurm-cluster-autodiscoveryfrom
worktree-wire-autodiscovery-slurmconfig

Conversation

@gregorweiss
Copy link
Copy Markdown
Collaborator

@gregorweiss gregorweiss commented May 20, 2026

Connects the autodiscovery module to existing infrastructure so users benefit from it without changing their workflow.

  • Add SlurmConfig.from_cluster() classmethod that auto-populates account/partition from discovered cluster info
  • Add mdfactory config cluster CLI command to display discovered SLURM resources
  • Add mdfactory config cluster --json for machine-readable output
  • Update analysis run --slurm and analysis artifacts run --slurm to use autodiscovery when --account not provided

Files Changed

File Change
mdfactory/analysis/submit.py Add SlurmConfig.from_cluster() classmethod
mdfactory/cli.py Add config cluster command, autodiscovery fallback in SLURM commands
mdfactory/tests/test_submit.py Tests for from_cluster()
mdfactory/tests/test_cli_cluster.py Tests for config cluster command

Test plan

  • pytest mdfactory/tests/test_submit.py -v — all pass
  • pytest mdfactory/tests/test_cli_cluster.py -v — all pass
  • Manual: mdfactory config cluster on SLURM node shows cluster info
  • Manual: mdfactory config cluster on laptop shows graceful message

@gregorweiss gregorweiss added the enhancement New feature or request label May 20, 2026
@gregorweiss gregorweiss linked an issue May 20, 2026 that may be closed by this pull request
@gregorweiss gregorweiss self-assigned this May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate cluster autodiscovery with SlurmConfig and CLI

1 participant