othyn / macos-auto-clicker

A simple auto clicker for macOS Big Sur, Monterey, Ventura and Sonoma.
MIT License
208 stars 24 forks source link

Builds on macOS 13 are randomly failing on all channels #69

Closed othyn closed 1 year ago

othyn commented 1 year ago

Description

I've been trying to debug this all day and I'm getting no where it seems.

I'm randomly getting the following error on a macOS 13 GitHub Actions runner and locally on macOS 13.4, running v6.0.0 (which at first I thought had fixed it until another run later on revealed it hadn't):

Building the DMG failed. Error: Command failed: hdiutil detach /Volumes/AutoClicker

I'm not getting any more information out of it than that.

https://github.com/othyn/macos-auto-clicker/actions/workflows/cicd.yml

The really weird thing is there is no consistency or pattern that I can see as to whether it does it or not, it seems to be truly random from my current understanding, which is kind of evident from the mixture of succeeding and failing builds.

I've about ran out of steam on this today and I'll resume debugging with a fresh head tomorrow.

This wasn't an issue on macOS 12 using version 5.3.0, only after upgrading today to macOS 13 and v6.0.0 am I starting to have issues.

Also posted a bug report here: https://github.com/sindresorhus/create-dmg/issues/83

Version

= v1.6.2

Steps to Reproduce

Unknown at this time, appears to be random

Screenshots

No response

Device

Any Mac

Operating System

macOS 13.x

Additional Context

No response

othyn commented 1 year ago

I just don't understand. I had one successful build of both staging and main, then all successive builds since are failing again with the same error.

Succeeded: https://github.com/othyn/macos-auto-clicker/actions/runs/5432982099/jobs/9880382387

Errored: https://github.com/othyn/macos-auto-clicker/actions/runs/5433076720/jobs/9880546146

What. The. Fuck?

Could it be the caches? But that doesn't make sense as the two are running from the same cache, the later run using the cache that the first run created.

The environments are identical, versions and all.

I've even diff'd the instance logs and they are the same, except for the few commit message and version number changes for the app, oh and timestamps on the log lines to obviously.

This is one of those impossible to debug problems as well, as it seems no one else in the world has had this problem.

othyn commented 1 year ago

In typical fashion, the one time I want it to fail and it succeeds:

https://github.com/othyn/macos-auto-clicker/actions/runs/5439743287/jobs/9891992415

Ffs... oh well the next build will more than likely fail, maybe I should swap to using this:

https://github.com/advoryanskiy/fastlane-plugin-dmg

othyn commented 1 year ago

https://github.com/actions/runner-images/issues/7522

othyn commented 1 year ago

DMG's were hopeless, think its a bug with the runner. Just using zip's for now, does the same thing just not as nice/user friendly.