You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Lars Bruun-Hansen (Jira)" <ji...@apache.org> on 2021/03/22 12:26:00 UTC
[jira] [Created] (NETBEANS-5478) nbbuild : DownloadBinaries task:
5 secs connect time is not enough
Lars Bruun-Hansen created NETBEANS-5478:
-------------------------------------------
Summary: nbbuild : DownloadBinaries task: 5 secs connect time is not enough
Key: NETBEANS-5478
URL: https://issues.apache.org/jira/browse/NETBEANS-5478
Project: NetBeans
Issue Type: Bug
Reporter: Lars Bruun-Hansen
Assignee: Lars Bruun-Hansen
h3. *nbbuild*
When building NetBeans the {{DownloadBinaries}} Ant task is executed. (this task downloads prerequisite artifacts from either Central Maven or {{https://netbeans.osuosl.org/binaries}})
However, via the {{ConfigureProxy}} class it implicitly uses a hard-coded connect timeout of 5 seconds. This would seem enough for the general case, but simply isn't enough for virtualized environments, such as GitHub Actions runners. Such environments typically incur a "first touch" penalty on outbound network connections, meaning that the first outbound connection to internet may require more connect time than 5 seconds. (after this it is of course fast).
As a result, I see intermittent failures when the build is executed on GitHub Actions runners. Possibly someone else have seen the problem on other CI systems?
The failures have been hard to track down because both {{DownloadBinaries}} and {{ConfigureProxy}} are swallowing exceptions (not cool!).
I'll create a PR. I'll make the connect timeout overridable via a property, but leave the default as-is for those who have become accustomed to the current fail-fast behavior.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists