mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Timeout value should not be hard coded #1049
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @markatosi on GitHub (Jan 9, 2026).
Steps to Reproduce:
If I'm signing an app for distribution this process can take longer than the hard-coded timeout to finish
In ElectronNET.LateImport.targets(525,5)
@FlorianRappl commented on GitHub (Jan 9, 2026):
Fair point. Was there a specific reason for the timeout @softworkz or was is "just" a safety net?
I am not sure that this qualifies as a bug, but it definitely would be worth refining.
@softworkz commented on GitHub (Jan 9, 2026):
The purpose of that timeout was merely to avoid cases where things are hanging forever in CI builds.
At that time, my assumption was that a package build would not take longer than 15 minutes. No matter whether we call it a bug or not: we can easily increase to 20 or 30min for sure.
@markatosi commented on GitHub (Jan 9, 2026):
It's not a bug, it's a logic error but there's not an option for that in the issue reporting.
@markatosi commented on GitHub (Jan 9, 2026):
In any case the local developer is the only person who should be making decisions about how long they want the process to go before timing out. If I want to set it to 5 trillion seconds then I should be able to do so.
@softworkz commented on GitHub (Jan 9, 2026):
Well, with that argument, you can ask for any detail to be configurable. All this is about providing a nice and convenient way for everybody, which is working out-of-the-box without needing to care about all details.
You can always write your own build scripts, then you have total control about everything.
@markatosi commented on GitHub (Jan 9, 2026):
That's a straw man argument. Please re-read my comment. I am requesting exactly one thing to be configurable.
@markatosi commented on GitHub (Jan 9, 2026):
I do have my own build scripts I was testing your build process and noted an issue. I'll go back to using my custom build process.
@softworkz commented on GitHub (Jan 9, 2026):
Let's do that. You wrote:
After I had said that we can adapt the timeout to accommodate for your case, you are saying you want 5 Trillion seconds.
And you are wondering about my reply?
@markatosi commented on GitHub (Jan 9, 2026):
5 Trillion seconds was (to me) just an absurd value to make a point. I apologize if it didn't come across that way.
@softworkz commented on GitHub (Jan 9, 2026):
Never mind, all good - neither did I want to appear harsh - I got "a trillion" other things running through my head and I thought we had a good solution already, that got me off-track ;-)
@markatosi commented on GitHub (Jan 9, 2026):
I ran osx-sign manually and watched the debug output and it ran quite quickly. electron-builder uses osx-sign under the hood, so I'm not sure what's going on. I'm not going to worry about it in any event it's no problem to sign the app after electronNet does it's thing.
@FlorianRappl commented on GitHub (Jan 9, 2026):
In general the signing should no take longer than 15 minutes. I am open to set it to, e.g., 30 minutes, but given that most CI/CD agents time out after 1 hour I think that would be unreasonably high (if the process hangs in there there is no way to notice that this is the issue).
I think in the OP case it would not matter - the problem should be somewhere else.
Should we close this one?
@softworkz commented on GitHub (Jan 9, 2026):
Well, this conversation made me look up our timings and I could see that:
Yet, that is building tar.gz,deb,rpm,pac and AppImage (the time includes all the .net/MSBuild stuff that is happening before electron-builder is invoked
Even though we are building many packages, I'd say it's still plausible that a .net publish for Mac incl. notarization could take longer than 15 min. One could have ElectronHostHook dependencies which require native compilation - maybe, or build even more packages for one platform.
So I'd say let's close this by increasing to 30min does that sound fine for everybody?
@markatosi commented on GitHub (Jan 10, 2026):
I'm fine with closing this. I'm signing outside of the electron build process anyway at this point in time. I would like to mention though that Notarization speed is somewhat dependent on the user's internet bandwidth and size of their app. If one's bandwidth is low the notarization process can drag on... like mine is at the moment due to where I currently am it just takes forever to upload the zip to the apple notarization servers.
The apple approval side is generally fast but sometimes will be obscenely slow for mysterious reasons. That being said, signing and notarization are things that are easily handled outside of electronNet.
I finally got some rest so I'm no longer a grumpy sour-puss.
@softworkz commented on GitHub (Jan 21, 2026):
Will be fixed by https://github.com/ElectronNET/Electron.NET/pull/1013 (doubled timeout)