Description
I’m regularly getting the “Connection timed out” error.
Repository
AlexWayfer:master
← AlexWayfer:enable_all_new_rubocop_cops
opened 09:24PM - 07 Jul 20 UTC
This was in other projects too, but I didn’t find, sorry.
CI/CD
Cirrus CI.
Uploader
Ruby’s codecov
via simplecov
.
Commit SHAs
committed 09:23PM - 07 Jul 20 UTC
Codecov YAML
There is no.
Codecov Output
Finished in 0.60875 seconds (files took 0.48776 seconds to load)
32 examples, 0 failures
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _\`|/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Ruby-0.1.19
x>
No CI provider detected.
==>
Gzipping contents
==>
Uploading reports
url: https://codecov.io
query: token=secret&flags&branch=enable_all_new_rubocop_cops&commit=4dc8cbab523ad41d89106bed22e778810aadd5e3
->
Uploading to Codecov
https://codecov.io//upload/v2?token=secret&flags&branch=enable_all_new_rubocop_cops&commit=4dc8cbab523ad41d89106bed22e778810aadd5e3
Error uploading coverage reports to Codecov. Sorry
Failed to open TCP connection to codecov.io:443 (Connection timed out - connect(2) for "codecov.io" port 443)
/usr/local/bundle/gems/codecov-0.1.19/lib/codecov.rb:384:in `format': undefined method `body' for nil:NilClass (NoMethodError)
from /usr/local/bundle/gems/simplecov-0.18.5/lib/simplecov/result.rb:49:in `format!'
from /usr/local/bundle/gems/simplecov-0.18.5/lib/simplecov/configuration.rb:196:in `block in at_exit'
from /usr/local/bundle/gems/simplecov-0.18.5/lib/simplecov.rb:214:in `run_exit_tasks!'
from /usr/local/bundle/gems/simplecov-0.18.5/lib/simplecov.rb:202:in `at_exit_behavior'
from /usr/local/bundle/gems/simplecov-0.18.5/lib/simplecov/defaults.rb:27:in `block in <top (required)>'
Steps to Reproduce
Just upload.
Expected behavior: Successful upload.
Actual behavior: “Connection timed out” error.
Flakiness? Sometimes.
Another PR in the same repository, 2 tasks:
AlexWayfer:master
← AlexWayfer:depfu/update/rubocop-0.87.0
opened 08:00PM - 07 Jul 20 UTC
Here is everything you need to know about this upgrade. Please take a good look … at what changed and the test results before merging this pull request.
### What changed?
#### ✳️ rubocop (~> 0.86.0 → ~> 0.87.0) · [Repo](https://github.com/rubocop-hq/rubocop) · [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
<details>
<summary>Release Notes</summary>
<h4><a href="https://github.com/rubocop-hq/rubocop/releases/tag/v0.87.0">0.87.0</a></h4>
<blockquote><h3>New features</h3>
<ul>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/7868">#7868</a>: <code>Cop::Base</code> is the new recommended base class for cops. (<a href="https://bounce.depfu.com/github.com/marcandre">@marcandre</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/issues/3983">#3983</a>: Add new <code>Style/AccessorGrouping</code> cop. (<a href="https://bounce.depfu.com/github.com/fatkodima">@fatkodima</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8244">#8244</a>: Add new <code>Style/BisectedAttrAccessor</code> cop. (<a href="https://bounce.depfu.com/github.com/fatkodima">@fatkodima</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/issues/7458">#7458</a>: Add new <code>AsciiConstants</code> option for <code>Naming/AsciiIdentifiers</code>. (<a href="https://bounce.depfu.com/github.com/fatkodima">@fatkodima</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/issues/7373">#7373</a>: Add new <code>Style/RedundantAssignment</code> cop. (<a href="https://bounce.depfu.com/github.com/fatkodima">@fatkodima</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8213">#8213</a>: Permit to specify TargetRubyVersion 2.8 (experimental). (<a href="https://bounce.depfu.com/github.com/koic">@koic</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8159">#8159</a>: Add new <code>CountAsOne</code> option for code length related <code>Metric</code> cops. (<a href="https://bounce.depfu.com/github.com/fatkodima">@fatkodima</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8164">#8164</a>: Support auto-correction for <code>Lint/InterpolationCheck</code>. (<a href="https://bounce.depfu.com/github.com/koic">@koic</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8223">#8223</a>: Support auto-correction for <code>Style/IfUnlessModifierOfIfUnless</code>. (<a href="https://bounce.depfu.com/github.com/koic">@koic</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8172">#8172</a>: Support auto-correction for <code>Lint/SafeNavigationWithEmpty</code>. (<a href="https://bounce.depfu.com/github.com/koic">@koic</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8039">#8039</a>: Fix false positives for <code>Lint/ParenthesesAsGroupedExpression</code> in when using operators or chain functions. (<a href="https://bounce.depfu.com/github.com/CamilleDrapier">@CamilleDrapier</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/issues/8196">#8196</a>: Fix a false positive for <code>Style/RedundantFetchBlock</code> when using with <code>Rails.cache</code>. (<a href="https://bounce.depfu.com/github.com/fatkodima">@fatkodima</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/issues/8195">#8195</a>: Fix an error for <code>Style/RedundantFetchBlock</code> when using <code>#fetch</code> with empty block. (<a href="https://bounce.depfu.com/github.com/koic">@koic</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/issues/8193">#8193</a>: Fix a false positive for <code>Style/RedundantRegexpCharacterClass</code> when using <code>[\b]</code>. (<a href="https://bounce.depfu.com/github.com/owst">@owst</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/issues/8205">#8205</a>: Fix a false positive for <code>Style/RedundantRegexpCharacterClass</code> when using a leading escaped <code>]</code>. (<a href="https://bounce.depfu.com/github.com/owst">@owst</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/issues/8208">#8208</a>: Fix <code>Style/RedundantParentheses</code> with hash literal as first argument to <code>yield</code>. (<a href="https://bounce.depfu.com/github.com/karlwithak">@karlwithak</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8176">#8176</a>: Don't load <code>.rubocop.yml</code> from personal folders to check for exclusions if there's a project configuration. (<a href="https://bounce.depfu.com/github.com/deivid-rodriguez">@deivid-rodriguez</a>)</li>
</ul>
<h3>Changes</h3>
<ul>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/7868">#7868</a>: <strong>(Breaking)</strong> Extensive refactoring of internal classes <code>Team</code>, <code>Commissioner</code>, <code>Corrector</code>. <code>Cop::Cop#corrections</code> not completely compatible. See Upgrade Notes. (<a href="https://bounce.depfu.com/github.com/marcandre">@marcandre</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/issues/8156">#8156</a>: <strong>(Breaking)</strong> <code>rubocop -a / --autocorrect</code> no longer run unsafe corrections; <code>rubocop -A / --autocorrect-all</code> run both safe and unsafe corrections. Options <code>--safe-autocorrect</code> is deprecated. (<a href="https://bounce.depfu.com/github.com/marcandre">@marcandre</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8207">#8207</a>: <strong>(Breaking)</strong> Order for gems names now disregards underscores and dashes unless <code>ConsiderPunctuation</code> setting is set to <code>true</code>. (<a href="https://bounce.depfu.com/github.com/marcandre">@marcandre</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8211">#8211</a>: <code>Style/ClassVars</code> cop now detects <code>class_variable_set</code>. (<a href="https://bounce.depfu.com/github.com/biinari">@biinari</a>)</li>
<li>
<a href="https://bounce.depfu.com/github.com/rubocop-hq/rubocop/pull/8245">#8245</a>: Detect top-level constants like <code>::Const</code> in various cops. (<a href="https://bounce.depfu.com/github.com/biinari">@biinari</a>)</li>
</ul></blockquote>
<p><em>Does any of this look wrong? <a href="https://depfu.com/packages/rubygem/rubocop/feedback">Please let us know.</a></em></p>
</details>
<details>
<summary>Commits</summary>
<p><a href="https://github.com/rubocop-hq/rubocop/compare/4d0c7aad80a606177983d193aafbb625c904fc06...ba8f13ad9640e71b29853d552f90a54e0acd7625">See the full diff on Github</a>. The new version differs by more commits than we can show here.</p>
</details>
---

[Depfu](https://depfu.com) will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with `@depfu rebase`.
<details><summary>All Depfu comment commands</summary>
<blockquote><dl>
<dt>@depfu rebase</dt><dd>Rebases against your default branch and redoes this update</dd>
<dt>@depfu recreate</dt><dd>Recreates this PR, overwriting any edits that you've made to it</dd>
<dt>@depfu merge</dt><dd>Merges this PR once your tests are passing and conflicts are resolved</dd>
<dt>@depfu close</dt><dd>Closes this PR and deletes the branch</dd>
<dt>@depfu reopen</dt><dd>Restores the branch and reopens this PR (if it's closed)</dd>
<dt>@depfu pause</dt><dd>Ignores all future updates for this dependency and closes this PR</dd>
<dt>@depfu pause [minor|major]</dt><dd>Ignores all future minor/major updates for this dependency and closes this PR</dd>
<dt>@depfu resume</dt><dd>Future versions of this dependency will create PRs again (leaves this PR as is)</dd>
</dl></blockquote>
</details>
Another repository, without PR, commit to the master
:
committed 10:04PM - 07 Jul 20 UTC
tom
July 8, 2020, 2:44am
4
Hi @AlexWayfer , thanks for opening this up. We are currently working on updating some pieces of the Ruby uploader. I’ll update this thread when we push the next minor update, which hopefully will alleviate this issue.
1 Like
We’re experiencing the same error with codecov-bash uploader.
tom
July 10, 2020, 3:17am
6
@vgrigoruk can you supply a build URL for this? Also, are you seeing this intermittently or all the time?
The same fail with codecov
version 0.2.0
: Cirrus CI
It’s a sever-side error, for your information. Or network-related.
@tom unfortunately, there is no public build URL available, as we’re using Buildkite CI with a private github repository.
It looks like https://codecov.io/env could not be downloaded sometimes. To reproduce the issue, simply run curl -s -S https://codecov.io/env
in a loop for 5-10 times and you’ll get the following error:
curl: (7) Failed to connect to codecov.io port 443: Operation timed out
1 Like
Based on response headers from curl -v https://codecov.io/env
, it looks like both scripts (/env
& /bash
) are served by nginx. I’m wondering why don’t use use CDN to distribute them?
2 Likes
tom
July 13, 2020, 11:56pm
10
@vgrigoruk , thanks for the suggestion, we are actively working to push these scripts to CDN. This should greatly help with the connection issues here.
1 Like
tom
July 15, 2020, 3:04am
11
@AlexWayfer , we have released 0.2.1
which should give better indications of what is going wrong here.
tom
July 16, 2020, 1:59pm
13
@AlexWayfer , are you still running into issues? I see you closed this issue .
Yes.
It’s the issue about format, please look more closely. There is an HTML response instead of JSON, so we were getting unexpected token
.
But this thread, issue, is about Connection timed out
error. This is network error, server-sided too, but another type of.
mtrias
July 16, 2020, 3:43pm
15
We are also experiencing timeouts at uploading. We are using the bash uploader from Github actions. It’s intermittent but quite frequent (5 to 10 times a day).
(Can’t provide a URL as it is a private repo, but contact me if you need more info.)
tom
July 16, 2020, 3:47pm
16
Hi @mtrias , could you DM me your Codecov output?
mtrias
July 16, 2020, 4:31pm
17
Sure thing. I tried to DM you here and got an error though “Sorry, new users can only put 7 links in a post”. Of course my output is full of URLs… Should I use an email instead?
1 Like
tom
July 16, 2020, 4:33pm
18
@mtrias apologies for that, I have DMed you.
tom
July 17, 2020, 3:12pm
19
@AlexWayfer , I released a new version of the gem, would you be able to try that out?
Thank you. Yes, on this weekend.
1 Like