Skip to content

Land inherit_env/login_shell on main; bump to 0.7.0#5

Merged
krokicki merged 2 commits into
mainfrom
job-env-control
Jul 9, 2026
Merged

Land inherit_env/login_shell on main; bump to 0.7.0#5
krokicki merged 2 commits into
mainfrom
job-env-control

Conversation

@krokicki

@krokicki krokicki commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

PR #4 (job-env-control) was stacked on PR #3 (fix-cross-user-polling) and merged into that branch. PR #3 had already merged to main by then, so #4's commit never made it to main. This PR lands it:

No other changes — diff is scoped to exactly what's missing from main.

Test plan

  • pixi run test — 162 passed

🤖 Generated with Claude Code

krokicki and others added 2 commits July 8, 2026 19:57
By default jobs inherit the submitting process's full environment (Popen
os.environ merge locally; bsub's environment copy on LSF), which leaks
whatever the submitter has set. The new kwargs let callers construct the
job environment instead:

- inherit_env=False: local jobs get a minimal baseline (identity vars +
  fixed PATH) plus explicit env; LSF submits with `-env none`, and any
  explicit env vars move into the script as exports since bsub will no
  longer copy them.
- login_shell=True: run under a login shell (`bash -l` locally,
  `bsub -L /bin/bash` on LSF) so the target user's own profile builds
  PATH/modules/conda, as an SSH session would.

Defaults preserve existing behavior.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@krokicki krokicki merged commit 25170c2 into main Jul 9, 2026
1 check 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.

1 participant