Skip to content

Call main.sh from powershell on Windows to work around windows-11-arm runner bug#1647

Merged
taiki-e merged 1 commit into
mainfrom
dev/win
Apr 1, 2026
Merged

Call main.sh from powershell on Windows to work around windows-11-arm runner bug#1647
taiki-e merged 1 commit into
mainfrom
dev/win

Conversation

@taiki-e

@taiki-e taiki-e commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Workaround for windows-11-arm runner bug: actions/runner-images#14052.
Fixes #1645
Fixes #1562
Fixes #1472

The issue appears to be bash sometimes failing to start either due to how GHA launches bash or regardless of who to launch bash.

In the former case, just calling bash from powershell should be sufficient (as currently implemented in this PR); in the latter case, I think it would be sufficient to add a way to detect whether bash failed to start (such as creating and checking a temporary file) and then retry a few times.

I haven't encountered this issue in my repositories yet, so it's difficult for me to test whether the former approach is sufficient. (For now, I plan to continually rerun the tests using the windows-11-arm runner in this PR.)

I would appreciate it if anyone who has encountered this issue could help with testing.
cc @wmmc88 @nazar-pc @NobodyXu @deivid-rodriguez

@nazar-pc

nazar-pc commented Apr 1, 2026

Copy link
Copy Markdown

I wish it was easily reproducible. It currently only happens occasionally, so not sure how to test it exactly other than running in a loop many times and getting higher and higher probability of the issue being fixed.

@taiki-e

taiki-e commented Apr 1, 2026

Copy link
Copy Markdown
Owner Author

Indeed, that’s true... For now, it might be better to release this as is and have people test it, and then have them report issues in this PR when they still occur.

@taiki-e
taiki-e force-pushed the dev/win branch 2 times, most recently from f712165 to f399759 Compare April 1, 2026 14:41
@taiki-e
taiki-e merged commit 3516136 into main Apr 1, 2026
82 checks passed
@taiki-e
taiki-e deleted the dev/win branch April 1, 2026 15:02
@deivid-rodriguez

Copy link
Copy Markdown

Thanks for trying to fix this, I'll revert our workaround and report if we find any issues ❤️

@taiki-e

taiki-e commented Apr 1, 2026

Copy link
Copy Markdown
Owner Author

Published in 2.71.0.

@nazar-pc

nazar-pc commented Apr 1, 2026

Copy link
Copy Markdown

It did fail properly the very first time I tried the latest release: https://github.com/nazar-pc/abundance/actions/runs/23874204770/job/69613321738?pr=615

However, I'd appreciate if there were any logs shown at all that hint at the problem. Previously it quietly succeeded even when there was a failure, now it at least explicitly fails, but still quietly.

@taiki-e

taiki-e commented Apr 2, 2026

Copy link
Copy Markdown
Owner Author

Thanks for testing this and reporting the issue! I'll implement retry (and logging).

@taiki-e

taiki-e commented Apr 2, 2026

Copy link
Copy Markdown
Owner Author

Filed #1657 to implement retry and logging.

@taiki-e

taiki-e commented Apr 2, 2026

Copy link
Copy Markdown
Owner Author

Published 2.71.2 which includes the above fix.

@nazar-pc

nazar-pc commented Apr 2, 2026

Copy link
Copy Markdown

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants