finch
finch copied to clipboard
First time of running Finch command after installation triggered by Github action fails in arm64 runners
Describe the bug First time of running Finch command after installation triggered by Github action fails in arm64 runners. Only happens at the first time before any successful command call after installation. (Failed command call doesn't help so retry doesn't work) Only happens when it is triggerd by Github action. Only happens in arm64 runners.
See additional contexts for more experiments.
Steps to reproduce Run the "release-installer" workflow, or restart the workflow to run the simplified version.
Currently only the members could run them. If you are interested in reproducing this but you are not member, you could add your own self-hosted runners to your forked repo and run with them.
Expected behavior The command should succeed.
Screenshots or logs Simplified workflow failure: https://github.com/runfinch/finch/actions/runs/3605504495/jobs/6075968565
Run finch version
/Users/ec2-user/ar/_work/_temp/1c6f50b2-a657-4625-99f4-4b80cce4f856.sh: line 1: 57022 Killed: 9 finch version
Error: Process completed with exit code [13](https://github.com/runfinch/finch/actions/runs/3605504495/jobs/6075968565#step:8:14)7.
Additional context
Confirmed the user used by github action is "ec2-user" by printing the user in Github action. Confirmed the path of "finch" is from "/Applications/Finch/bin/finch" by running "which" and "readlink" commands in Github action.
Here are the experiements I did.
Succeeded scenarioes:
- first time of running
finch versionafter installation triggered by Github action in amd64 hosts with macOS version 10/11/12/13 - running "ls" triggered by Github action in arm64 hosts
- After installation (not matter triggered by Github action or manual action in ssh), ssh to the host and manually run
finch version. - After installation (not matter triggered by Github action or manual action in ssh), ssh to the host and manually run
finch versionfor one time. Then run an Github action that only runsfinch versionin arm64 hosts.
Failed scenarioes (by same 137 error):
- first time of running
finch versionafter installation triggered by Github action in arm64 hosts with macOS version 11/12/13 (arm64 is not supported with macOS version 10) - Set
permissions:contents:write-allin yaml. Others are same as 1. - After installation (not matter triggered by Github action or manual action in ssh), ssh to the host and manually run
finch versionfor one time. Then run an Github action that re-installs and then runsfinch versionin arm64 hosts. - Add 30s sleep before running
finch versionand after installation in yaml. Others are same as 1. - Add retry for
finch versionin Github action. Others are same as 1.