fix: Add Cmd Default/Input support to cleanup#183
Conversation
mpdude
left a comment
There was a problem hiding this comment.
Makes sense!
Could you please update dist/cleanup.js as well by running npm run build?
Thanks for the gentle reminder @mpdude. Updated via docker using: Please advise if the update looks incorrect or if you'd like me to use a different version of node or run a modified command. |
|
@mpdude Is there anything else blocking this? |
|
I'd love to see this PR released. I've got self-hosted runners with tons of ssh-agent processes hanging around. This fixes it nicely. |
|
Gentle bump on this PR being merged. This would really help with the cleanup of the |
19c9e1b to
6c290a5
Compare
|
@mpdude, I've rebased my branch from upstream and re-run/updated the Like others above, I'd love to get this into a release. |
|
Also would love to see this one in for our self hosted runners. |
|
Hi guys, I would love to see this one merged also 🙏 🙏 |
|
pls merge this pr @mpdude |
|
Have this warning in Stopping SSH agent
The "file" argument must be of type string. Received undefined
Error stopping the SSH agent, proceeding anyway |
|
y u no merge dis? 😄 |
|
🙏 please merge this PR |
|
@mpdude It'd be nice to see this merged. Anything the community can do to help? |
Bring `post` actions step into consistency with `main` for changes introduced in webfactory#154 Without this change, `sshAgentCmd` is undefined when passed to `execFileSync()` during `cleanup` and `post` is never successful.
Actual command:
$ docker run \
--interactive \
--rm \
--tty \
--volume ${PWD}:/var/task \
--workdir /var/task \
node:20-buster \
sh -c 'npm install -g npm@10.5.0 && yarn install && NODE_OPTIONS=--openssl-legacy-provider npm run build'
6c290a5 to
a767bb0
Compare
|
does anyone have a stable fork with this fix? |
|
@mpdude Hi, I hope you're doing well and I really hope this doesn't bother you, but are there any plans to merge this fix? |
|
Hi everyone! What's missing for this PR to be merged? Is there anything to help? |
|
Thanks for the contribution :) We looked through your PR and just merged a refactored version with #235. |
* Update CHANGELOG.md * Acknowledge custom command inputs in cleanup.js (webfactory#235) Refactored version of webfactory#183. Fixes: webfactory#208 * Improve documentation on why we use os.userInfo() (use correct syscall name) Co-authored-by: Matthias Pigulla <mp@webfactory.de> * Release v0.9.1 * use node24 (webfactory#243) Node v20 is going to be EOL in April 2026 -- https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ Resolves webfactory#242 --------- Co-authored-by: Jano Paetzold <jep@webfactory.de> Co-authored-by: Matthias Pigulla <mp@webfactory.de> Co-authored-by: James McGonegal <11491046+jimmymcpeter@users.noreply.github.com>
Bring
postaction step into consistency withmainfor changes introduced in #154.Without this change,
sshAgentCmdis undefined when passed toexecFileSync()duringcleanupandpostis never successful.Post job cleanup consistently showing:
Also add entries to the CHANGELOG, detailing v0.8.0 and v0.9.0 releases.
Fixes: #208
Fixes: #211