Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
772a115
Share SSH monitoring connections and persist host retry backoff
sox8502 Oct 22, 2026
ee67264
Fix explicit reconnect, growing logs, and long SSH setup
sox8502 Oct 22, 2026
97df5cd
Require idle SSH monitors before dev-slot data cleanup
sox8502 Oct 22, 2026
d2ee43a
Merge remote-tracking branch 'origin/main' into daniel/or-558-shared-ssh
sox8502 Oct 22, 2026
39cb2e4
Show SSH connection and run monitoring diagnostics
sox8502 Oct 22, 2026
aca6872
Preserve quoted SSH known-hosts filename lists
sox8502 Oct 22, 2026
b06a279
Merge remote-tracking branch 'origin/main' into daniel/or-558-shared-ssh
sox8502 Oct 22, 2026
6d046a0
Merge remote-tracking branch 'origin/main' into daniel/or-558-shared-ssh
sox8502 Oct 22, 2026
18157f6
Include shared SSH log files in run artifact cleanup
sox8502 Oct 22, 2026
575f8fa
Support Python 3.6 remote SSH helpers
sox8502 Oct 22, 2026
74d4901
Merge remote-tracking branch 'origin/main' into daniel/or-558-shared-ssh
sox8502 Oct 22, 2026
cc13526
Finish Slurm runs despite unavailable logs
sox8502 Oct 22, 2026
55af17d
Validate SSH log chunks during concurrent rewrites
sox8502 Oct 22, 2026
778114b
Merge origin/main and preserve shared SSH monitoring compatibility
sox8502 Oct 23, 2026
6025952
Detect full-prefix log rewrites and isolate legacy SSH monitors
sox8502 Oct 23, 2026
1e6c37d
Preserve whitespace in interactive SSH credentials
sox8502 Oct 23, 2026
21906b7
Reuse verified log digests and ignore unrelated obsolete SSH routes
sox8502 Oct 23, 2026
ca8fb01
Merge latest main and rebuild the reviewed dashboard
sox8502 Oct 23, 2026
99e8a39
Keep pinned SSH connections stable across unrelated config edits
sox8502 Oct 23, 2026
5cfb903
Merge current main and migrate saved SSH connection bindings
sox8502 Oct 23, 2026
cde56e5
Merge current main and isolate Slurm status read failures
sox8502 Oct 23, 2026
13b0bdf
Merge current main and close SSH retry and Slurm completion gaps
sox8502 Oct 23, 2026
6bee71f
Stream large SSH command input through bounded upload frames
sox8502 Oct 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support Python 3.6 remote SSH helpers
  • Loading branch information
sox8502 committed Oct 22, 2026
commit 575f8fa86c93f314d9d56097999b6328ef49b421
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ jobs:
run: python3 scripts/test_orx_chart.py

- name: Shared SSH helper protocol tests
run: python3 scripts/test_ssh_helper.py
run: |
python3 scripts/test_ssh_helper.py
for version in 3.6.15-slim-buster 3.7.17-slim-bullseye 3.8.20-slim-bookworm; do
docker run --rm --network none \
-v "$GITHUB_WORKSPACE:/work:ro" -w /work \
"python:$version" python scripts/test_ssh_helper.py
done

- name: Release notes composition
run: python3 scripts/test_release_notes.py
Expand Down
2 changes: 1 addition & 1 deletion agent-skills/orx-compute/references/slurm.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Use this backend only when the user explicitly requests their Slurm cluster or
it is the configured default. `orx` reaches the login node over SSH, stages the
committed snapshot, and submits the fixed command with `sbatch`. The login node
needs Python 3.8 or newer; no Python packages or administrator installation are required.
needs Python 3.6 or newer; no Python packages or administrator installation are required.
All runs on the same connection share one monitoring channel and batched scheduler
queries. Transport failures back off together, and fresh authentication requires
explicit Connect. Reconnect with `orx compute connect slurm --host login-node`.
Expand Down
2 changes: 1 addition & 1 deletion agent-skills/orx-compute/references/ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ example, a committed `run.sh` can source Conda, activate the environment, and
then run the experiment. Those paths must exist in the selected execution
environment (host or container). There is no separate SSH setup command.

The SSH host needs Bash, tar, and Python 3.8 or newer (standard library only).
The SSH host needs Bash, tar, and Python 3.6 or newer (standard library only).
OpenResearch does not install Python automatically. Container execution also requires host Docker
access and an already running, unpaused Linux container with Bash, tar, working
`setsid --wait`, and an absolute writable `$HOME`. Execution uses the container's
Expand Down
6 changes: 3 additions & 3 deletions scripts/test_ssh_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ def test_setup_and_upload_are_not_limited_by_monitoring_deadline(self):
spec.loader.exec_module(helper)
with patch.object(helper, "execute", return_value={}) as execute:
helper.dispatch({"op": "exec", "command": "setup"})
self.assertIsNone(execute.call_args.args[2])
self.assertIsNone(execute.call_args[0][2])
helper.dispatch({"op": "exec", "command": "status", "lane": "status"})
self.assertEqual(execute.call_args.args[2], 120)
self.assertEqual(execute.call_args[0][2], 120)
token = helper.dispatch({"op": "upload_start"})["token"]
helper.dispatch({"op": "upload_commit", "command": "extract", "token": token})
self.assertEqual(len(execute.call_args.args), 2)
self.assertEqual(len(execute.call_args[0]), 2)


class HelperTest(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions src/jobs/ssh/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import threading
import time

if sys.version_info < (3, 8):
raise RuntimeError("OpenResearch SSH monitoring requires Python 3.8 or newer")
if sys.version_info < (3, 6):
raise RuntimeError("OpenResearch SSH monitoring requires Python 3.6 or newer")

VERSION = 1
LIMIT = 1024 * 1024
Expand Down
2 changes: 1 addition & 1 deletion src/jobs/ssh/service/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ pub(super) async fn connect(
let detail = String::from_utf8_lossy(&diagnostics.lock().await)
.trim()
.to_owned();
return Err(anyhow!("SSH helper did not start. Python 3.8+ is required. Use Connect if authentication expired. {detail}"));
return Err(anyhow!("SSH helper did not start. Python 3.6+ is required. Use Connect if authentication expired. {detail}"));
}
let (writer, mut queue) = mpsc::channel(32);
let pending: Pending = Arc::new(Mutex::new(HashMap::new()));
Expand Down
Loading