[ 
https://issues.apache.org/jira/browse/NETBEANS-5478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated NETBEANS-5478:
-------------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to