Skip to content

Apply default bash preamble without wrapper - #212

Open
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix/default-preamble-without-wrapper
Open

Apply default bash preamble without wrapper#212
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix/default-preamble-without-wrapper

Conversation

@fallintoplace

Copy link
Copy Markdown

Summary

Apply the cluster-wide default_bash_preamble even when a call site passes use_bash_wrapper=False by wrapping that command in bash -c only when the cluster preamble is configured. This keeps nginx and other pre-wrapped commands from silently skipping cluster defaults such as nofile limits.

Fixes #107.

Tests

  • uv run pytest tests/test_slurm.py -q
  • uv run ruff check src/srtctl/core/slurm.py src/srtctl/core/schema.py src/srtctl/cli/mixins/frontend_stage.py tests/test_slurm.py
  • uv run pytest tests -q

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.

default_bash_preamble silently skipped when use_bash_wrapper=False (e.g. nginx)

1 participant