-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New JACK autobuild fails on GitHub Actions Pull Requests #3035
Comments
Currently we have set the permissions to read and write. |
Should we make 3.10 dependent upon this or leave until 3.11? |
I think it's not that important to get correct before the next release. |
How easy is this to test? Can a list of steps be included to demonstrate failure and success cases? If we know it's down to a permission issue (e.g. |
As I said above, just change the permissions in the GitHub repository and run two same builds. Once with and once without write permissions. They can be changed here: https://github.com/jamulussoftware/jamulus/settings/actions Once the build fails, once it goes through. I'm unsure if this is still the case, but I'm currently working on Weblate. |
Is unzip the problem? Especially I thought write means that we write to the Repo or something on GitHub- not in the runner. |
I thought it was the unzip that was failing? Maybe I've missed something. |
I would need to check it again and look at the logs. |
Hi there. after some hours of debugging, I believe this is related to timing. jamulus/.github/autobuild/windows.ps1 Line 182 in 135e944
We are invoking the JACK installers, but as they are GUI applications (even if we pass parameters to have them run unattended), they will detach from the console and just launch in the background. The build continues nevertheless, which means that by the time that qmake Jamulus.pro runs it is more or less luck if JACK installation has already completed or not.Waiting for the installers to complete seems to fix this. Will submit a PR. |
Previously, the JACK installers were started as ordinary programs. As they are GUI applications, they detach from the console and the powershell build script (and Github Actions) continues. Therefore, once the actual build starts, the JACK installation may not have finished at all. This commit uses Powershell's Start-Process -Wait feature to wait for completion before continuing. Fixes: jamulussoftware#3035
Describe the bug
The JACK build fails on GitHub Actions PRs if Workflow Permissions are set to "Read repository contents and packages permissions". No fail can be seen on PRs by me/if "Read and write permissions" are set.
To Reproduce
#3031 with "Read repository contents and packages permission" set doesn't fail but #3011 does.
This is a successful run while write permissions were enabled: https://github.com/jamulussoftware/jamulus/actions/runs/4515448402/jobs/7952904802
Expected behavior
No matter what permissions are set the JACK build succeeds for GitHub actions and other contributors.
Screenshots
/
Operating system
Windows on GH
Version of Jamulus
/
Additional context
I strongly believe this is a permission error we miss a setting or Autobuild permission somewhere. Something related to GH_TOKEN maybe?
The text was updated successfully, but these errors were encountered: