Skip to content

I/P: Fix heap copy-back failing on large remote builds#197

Open
hanno-becker wants to merge 1 commit intomainfrom
ip_heap_copy_back
Open

I/P: Fix heap copy-back failing on large remote builds#197
hanno-becker wants to merge 1 commit intomainfrom
ip_heap_copy_back

Conversation

@hanno-becker
Copy link
Contributor

copy_heap_back() ran after cleanup_all() which tears down the SSH master connection. The subsequent rsync had to establish a new connection and was subject to a hard 300s timeout — insufficient for large heaps. On timeout, the proxy still exited rc=0, causing Isabelle to fail with "No such file or directory" on the missing local heap.

Fix: run copy_heap_back() inside the finally block before cleanup, so it reuses the live SSH master. Remove the fixed timeout, add progress output, and exit rc=2 on copy failure so Isabelle sees a proper error.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

copy_heap_back() ran after cleanup_all() which tears down the SSH master
connection. The subsequent rsync had to establish a new connection and
was subject to a hard 300s timeout — insufficient for large heaps.
On timeout, the proxy still exited rc=0, causing Isabelle to fail with
"No such file or directory" on the missing local heap.

Fix: run copy_heap_back() inside the finally block before cleanup, so it
reuses the live SSH master. Remove the fixed timeout, add progress output,
and exit rc=2 on copy failure so Isabelle sees a proper error.

Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
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