You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: extract shared runner functions into misc/common/runner-lib.sh
Move functions identical across both sites into a common library:
gh_registration_token, gh_latest_runner_version, gh_remove_runner,
get_runner_name, find_pids, find_node, start_runner, stop_runner
Both config.sh files now source runner-lib.sh after defining their
site constants (ORG, NODES, SSH_OPTS), keeping only site-specific
logic locally:
- frontier/config.sh: gh_list_runners, find_runner_dirs, sync_runner_nodes
- phoenix/config.sh: gh_list_runners, find_runner_dirs, has_slurm
Harmonize start_runner() across both sites:
- Use bash -lc on both (was frontier-only) for login shell PATH
- Use timeout 15 + synchronous SSH (was phoenix's background SSH + poll loop)
- cd into runner dir before run.sh so CWD-based discovery works
- Standardize log file to runner.log (was runner-nohup.log on phoenix)
- Use $SSH_OPTS variable (added to phoenix config) throughout all
phoenix scripts instead of hardcoded -o ConnectTimeout=5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments