runner/act
Vadim Lebedev 2841253d05 fix: Windows runner cancellation delays due to LXC script execution
Fixes issue where Windows runners experience delays in job cancellation
and pickup of new jobs after cancellation. The problem occurred when
Windows runners with LXC platform configuration attempted to execute
Linux shell scripts during cleanup, causing failures and blocking
the runner.

Changes:
- Add runtime OS detection in stopHostEnvironment()
- Skip LXC script execution on Windows platforms
- Implement Windows-specific cleanup using os.RemoveAll()
- Ensure graceful error handling to prevent runner blocking
- Preserve all existing LXC functionality on Linux/Unix systems

The fix prevents "fork/exec stop-lxc.sh: directory name is invalid"
errors and allows Windows runners to pick up new jobs immediately
after cancellation, matching Linux/FreeBSD runner behavior.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 16:46:59 +02:00
..
artifactcache fix: windows compilation (#1101) 2025-10-24 07:00:43 +00:00
cacheproxy chore: log reason reverse proxy can't be started (#1089) 2025-10-14 08:08:03 +00:00
common feat: disambiguate cloud emoji (#1076) 2025-10-11 09:23:28 +00:00
container feat: allow --memory in workflow container options (#1079) 2025-10-10 14:33:07 +00:00
exprparser feat: the forgejo context is equivalent to the github context (#999) 2025-09-15 09:14:11 +00:00
filecollector chore: modernize code (#857) 2025-08-15 04:54:13 +00:00
jobparser feat: improve readability of error messages from ParseRawOn (#1063) 2025-10-07 14:41:55 +00:00
lookpath chore: use the same .golangci.yml as the runner & gofumpt over gofmt (#206) 2025-07-28 12:26:41 +00:00
model chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
runner fix: Windows runner cancellation delays due to LXC script execution 2025-10-25 16:46:59 +02:00
schema fix: ${{ env.VAR }} is allowed in container (#1108) 2025-10-22 06:31:45 +00:00
workflowpattern chore: modernize code (#857) 2025-08-15 04:54:13 +00:00