Repository navigation
Conversation
tabedzki
force-pushed
the
tabedzki/fix/scp-transfer-errors
branch
from
November 6, 2026 19:26
45d9507 to
376fed1
Compare
A failed scp of a job's parameter file produced only "Error while generating/transfering parameter file" with no stack, because scp_file_transfer dropped stderr and returned the exit code. Parameter, chanmap and slurm file transfers now raise ScpTransferError with the file, destination, exit code and scp's stderr, and slurm_job_queue's exception handler puts that in the job's error info and the Slack alert. A failed preparams transfer is no longer reported as a slurm file error. scp_file_transfer still returns the exit code for callers that tolerate a failure, such as cluster log copies. Refs #184 Assisted-by: ClaudeCode:claude-opus-5-5
tabedzki
force-pushed
the
tabedzki/fix/scp-transfer-errors
branch
from
November 6, 2026 19:31
376fed1 to
e9b662d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Refs #184. This PR does not end the outage, so #184 stays open.
Problem
Jobs 1465 to 1468 failed on 2026-11-05 with
Error while generating/transfering parameter fileanderror_stack : None. All four are the firstscpto spock exiting non-zero. scp's stderr never reached the job's error info, so the alert couldn't say why.Fix
ScpTransferErrorwith the file, destination, exit code and scp's stderr.slurm_job_queue's exception handler puts that inerror_messageanderror_exception, and so in Slack. The existing crop keeps the end of the message, which is where stderr is.scp_file_transferstill returns the exit code, for cluster log copies and pupillometry.This does not end the outage
spock is refusing u19prod's login, including the key its SSH config names for this host, so jobs will keep failing until that is sorted out on the spock or account side. Details are in #184. This PR makes that failure visible in the alert, and it can merge independently.
Tests
tests/automatic_job/test_scp_transfer_errors.pyrunsslurm_job_queueagainst a fakescpon PATH. It covers imaging and ephys, empty stderr, scp not installed, a failed preparams or slurm transfer, a local job that doesn't call scp, and the exit code return.The regression test failed on
372a626dwithAssertionError: assert 'Permission denied (publickey)' in 'Error while generating/transfering parameter file'. With the fix: 635 passed, 6 skipped (uv run pytest -rs), anduvx prek run --all-filespasses. Nothing has run against the real cluster.Assisted-by: ClaudeCode:claude-opus-5-5