[openssh-commits] [openssh] 07/07: Lazily unmount github workspace at end of workflow.
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Mar 11 19:26:18 AEDT 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit c21c8fc319376c2f5e0da166e9e89a97a245ae72
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Tue Mar 11 19:17:46 2025 +1100
Lazily unmount github workspace at end of workflow.
Sometimes when a test times out the workspace is still busy when we try
to unmount it, which leaves the runner unusable until it's cleaned up
manually. We try to unmount this in the first step, but that usually
doesn't work since it fails during setup before it starts our workflow.
Move it to the end and make it a lazy unmount so it hopefully works
eventually.
---
.github/workflows/selfhosted.yml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml
index 22bf2fb2..d892a28c 100644
--- a/.github/workflows/selfhosted.yml
+++ b/.github/workflows/selfhosted.yml
@@ -101,10 +101,6 @@ jobs:
- { target: openwrt-mips, config: default, host: remote-openwrt-mips }
- { target: openwrt-mipsel, config: default, host: remote-openwrt-mipsel }
steps:
- - name: unmount stale workspace
- if: env.SSHFS == 'true'
- run: fusermount -u ${GITHUB_WORKSPACE} || true
- working-directory: ${{ runner.temp }}
- name: shutdown VM if running
if: env.VM == 'true'
run: vmshutdown
@@ -195,9 +191,13 @@ jobs:
- name: bigendian interop - unmount regress
if: always() && env.SSHFS == 'true' && env.BIGENDIAN == 'true'
- run: fusermount -u ${GITHUB_WORKSPACE}/regress || true
+ run: fusermount -z -u ${GITHUB_WORKSPACE}/regress || true
working-directory: ${{ runner.temp }}
+ - name: lazily unmount workspace
+ if: always() && env.SSHFS == 'true'
+ run: fusermount -z -u ${GITHUB_WORKSPACE} || true
+ working-directory: ${{ runner.temp }}
- name: shutdown VM
if: always() && env.VM == 'true'
run: vmshutdown
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list