Fixed comment and better method naming #223
Annotations
12 errors and 2 warnings
Publish Test Report
TestHostAliasesBasic: === RUN TestHostAliasesBasic
DEBUG fronted: fronted_test.go:573 Waiting for origin server at 127.0.0.1:34729...
DEBUG fronted: fronted_test.go:577 Started cloudsack.biz CDN
DEBUG fronted: fronted.go:97 Creating new fronted
2025/01/22 23:46:35 http: TLS handshake error from 127.0.0.1:37090: EOF
2025/01/22 23:46:35 ERROR Failed to create gzip reader error="gzip: invalid header"
ERROR fronted: fronted.go:216 Failed to process fronted config: failed to create gzip reader: gzip: invalid header [error=Failed to process fronted config: %v error_location=github.com/getlantern/fronted.(*fronted).onNewFrontsConfig (fronted.go:216) error_text=Failed to process fronted config: failed to create gzip reader: gzip: invalid header error_type=errors.Error]
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.(*fronted).onNewFrontsConfig (fronted.go:216)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.(*fronted).readFrontsFromEmbeddedConfig (fronted.go:210)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.NewFronted (fronted.go:122)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.TestHostAliasesBasic (fronted_test.go:245)
ERROR fronted: fronted.go:216 at testing.tRunner (testing.go:1689)
ERROR fronted: fronted.go:216 at runtime.goexit (asm_amd64.s:1695)
ERROR fronted: fronted.go:216 Caused by: failed to create gzip reader: gzip: invalid header
ERROR fronted: fronted.go:216 Caused by: gzip: invalid header
2025/01/22 23:46:35 INFO No config URL provided -- not updating fronting configuration
DEBUG fronted: fronted.go:227 Updating fronted configuration
DEBUG fronted: fronted.go:540 Loading candidates for 1 providers
DEBUG fronted: fronted.go:572 Finished loading candidates
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:34729 in 12.533819ms
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: POST /ping HTTP/1.1
Host: ttt.cloudsack.biz
Accept-Encoding: gzip
Connection: close
Content-Length: 1
Content-Type: application/json
User-Agent: Go-http-client/1.1
a
DEBUG fronted: fronted_test.go:549 accepting request host=ttt.cloudsack.biz ff=
DEBUG fronted: fronted.go:350 Successfully vetted one masquerade 127.0.0.1:34729
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:34729 in 12.08061ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin abc.forbidden.com -> abc.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /foo/bar HTTP/1.1
Host: abc.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG fronted: fronted_test.go:549 accepting request host=abc.cloudsack.biz ff=
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:34729 in 12.192816ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin abc.forbidden.com -> abc.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /bar?x=y&z=w HTTP/1.1
Host: abc.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG fronted: fronted_test.go:549 accepting request host=abc.cloudsack.biz ff=
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:34729 in 11.882145ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin def.forbidden.com -> def.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /foo HTTP/1.1
Host: def.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG
|
Publish Test Report
TestPassthrough: === RUN TestPassthrough
DEBUG fronted: fronted_test.go:573 Waiting for origin server at 127.0.0.1:40855...
2025/01/22 23:46:35 http: TLS handshake error from 127.0.0.1:38348: EOF
DEBUG fronted: fronted_test.go:577 Started cloudsack.biz CDN
DEBUG fronted: fronted.go:97 Creating new fronted
2025/01/22 23:46:35 ERROR Failed to create gzip reader error="gzip: invalid header"
ERROR fronted: fronted.go:216 Failed to process fronted config: failed to create gzip reader: gzip: invalid header [error=Failed to process fronted config: %v error_location=github.com/getlantern/fronted.(*fronted).onNewFrontsConfig (fronted.go:216) error_text=Failed to process fronted config: failed to create gzip reader: gzip: invalid header error_type=errors.Error]
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.(*fronted).onNewFrontsConfig (fronted.go:216)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.(*fronted).readFrontsFromEmbeddedConfig (fronted.go:210)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.NewFronted (fronted.go:122)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.TestPassthrough (fronted_test.go:480)
ERROR fronted: fronted.go:216 at testing.tRunner (testing.go:1689)
ERROR fronted: fronted.go:216 at runtime.goexit (asm_amd64.s:1695)
ERROR fronted: fronted.go:216 Caused by: failed to create gzip reader: gzip: invalid header
ERROR fronted: fronted.go:216 Caused by: gzip: invalid header
2025/01/22 23:46:35 INFO No config URL provided -- not updating fronting configuration
DEBUG fronted: fronted.go:227 Updating fronted configuration
DEBUG fronted: fronted.go:540 Loading candidates for 1 providers
DEBUG fronted: fronted.go:572 Finished loading candidates
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:40855 in 12.272286ms
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: POST /ping HTTP/1.1
Host: ttt.cloudsack.biz
Accept-Encoding: gzip
Connection: close
Content-Length: 1
Content-Type: application/json
User-Agent: Go-http-client/1.1
a
DEBUG fronted: fronted_test.go:549 accepting request host=ttt.cloudsack.biz ff=
DEBUG fronted: fronted.go:350 Successfully vetted one masquerade 127.0.0.1:40855
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:40855 in 11.907694ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin fff.ok.cloudsack.biz -> fff.ok.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /foo HTTP/1.1
Host: fff.ok.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG fronted: fronted_test.go:549 accepting request host=fff.ok.cloudsack.biz ff=
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:40855 in 11.693283ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin abc.cloudsack.biz -> abc.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /bar HTTP/1.1
Host: abc.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG fronted: fronted_test.go:549 accepting request host=abc.cloudsack.biz ff=
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:40855 in 11.977923ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin XYZ.ZyZ.OK.CloudSack.BiZ -> xyz.zyz.ok.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /bar HTTP/1.1
Host: xyz.zyz.ok.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
|
Publish Test Report
TestFindWorkingMasquerades/All_successful: === RUN TestFindWorkingMasquerades/All_successful
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:34729: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:39989, dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41527, dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:41527: connect: connection refused
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:39989: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: cache.go:82 Updating cache at /tmp/direct_test1627854127/cachefile.3
DEBUG fronted: fronted.go:432 Could not dial to 23.47.194.73, dial tcp 23.47.194.73:443: i/o timeout [masquerade_domain=a248.e.akamai.net masquerade_ip=23.47.194.73 masquerade_provider=akamai op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 23.47.194.73:443: i/o timeout [masquerade_domain=a248.e.akamai.net masquerade_ip=23.47.194.73 masquerade_provider=akamai op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 23.47.194.73:443: i/o timeout
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
ERROR fronted: cache.go:95 Unable to save cache to disk: open /tmp/direct_test1627854127/cachefile.3: no such file or directory [error=Unable to save cache to disk: %v error_location=github.com/getlantern/fronted.(*fronted).updateCache (cache.go:95) error_op=open error_text=Unable to save cache to disk: open /tmp/direct_test1627854127/cachefile.3: no such file or directory error_type=errors.Error]
ERROR fronted: cache.go:95 at github.com/getlantern/fronted.(*fronted).updateCache (cache.go:95)
ERROR fronted: cache.go:95 at github.com/getlantern/fronted.(*fronted).maintainCache (cache.go:75)
ERROR fronted: cache.go:95 at runtime.goexit (asm_amd64.s:1695)
ERROR fronted: cache.go:95 Caused by: open /tmp/direct_test1627854127/cachefile.3: no such file or directory
ERROR fronted: cache.go:95 Caused by: no such file or directory
DEBUG fronted: cache.go:104 Parent directory of cache file does not exist: /tmp/direct_test1627854127
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:4085
|
Publish Test Report
TestFindWorkingMasquerades/Some_successful: === RUN TestFindWorkingMasquerades/Some_successful
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:34729: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41527, dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:39989, dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:41527: connect: connection refused
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:39989: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:40855, dial tcp 127.0.0.1:40855: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:40855 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:40855: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:40855 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:40855: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:265 findWorkingFronts::Enough working fronts...sleeping
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:34729: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:39989, dial tcp 127.0.0.1:39989: connect: connection refu
|
Publish Test Report
TestFindWorkingMasquerades/Batch_processing: === RUN TestFindWorkingMasquerades/Batch_processing
DEBUG fronted: fronted.go:265 findWorkingFronts::Enough working fronts...sleeping
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:34729: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:39989, dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41527, dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:39989: connect: connection refused
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:41527: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:432 Could not dial to 23.47.194.73, dial tcp 23.47.194.73:443: i/o timeout [masquerade_domain=a248.e.akamai.net masquerade_ip=23.47.194.73 masquerade_provider=akamai op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 23.47.194.73:443: i/o timeout [masquerade_domain=a248.e.akamai.net masquerade_ip=23.47.194.73 masquerade_provider=akamai op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 23.47.194.73:443: i/o timeout
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:40855, dial tcp 127.0.0.1:40855: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:40855 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:40855: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:40855 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:40855: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade
|
Publish Test Report
TestFindWorkingMasquerades: --- FAIL: TestFindWorkingMasquerades (9.08s)
- No trace available
|
Publish Test Summary Results
TestHostAliasesBasic: === RUN TestHostAliasesBasic
DEBUG fronted: fronted_test.go:573 Waiting for origin server at 127.0.0.1:34729...
DEBUG fronted: fronted_test.go:577 Started cloudsack.biz CDN
DEBUG fronted: fronted.go:97 Creating new fronted
2025/01/22 23:46:35 http: TLS handshake error from 127.0.0.1:37090: EOF
2025/01/22 23:46:35 ERROR Failed to create gzip reader error="gzip: invalid header"
ERROR fronted: fronted.go:216 Failed to process fronted config: failed to create gzip reader: gzip: invalid header [error=Failed to process fronted config: %v error_location=github.com/getlantern/fronted.(*fronted).onNewFrontsConfig (fronted.go:216) error_text=Failed to process fronted config: failed to create gzip reader: gzip: invalid header error_type=errors.Error]
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.(*fronted).onNewFrontsConfig (fronted.go:216)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.(*fronted).readFrontsFromEmbeddedConfig (fronted.go:210)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.NewFronted (fronted.go:122)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.TestHostAliasesBasic (fronted_test.go:245)
ERROR fronted: fronted.go:216 at testing.tRunner (testing.go:1689)
ERROR fronted: fronted.go:216 at runtime.goexit (asm_amd64.s:1695)
ERROR fronted: fronted.go:216 Caused by: failed to create gzip reader: gzip: invalid header
ERROR fronted: fronted.go:216 Caused by: gzip: invalid header
2025/01/22 23:46:35 INFO No config URL provided -- not updating fronting configuration
DEBUG fronted: fronted.go:227 Updating fronted configuration
DEBUG fronted: fronted.go:540 Loading candidates for 1 providers
DEBUG fronted: fronted.go:572 Finished loading candidates
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:34729 in 12.533819ms
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: POST /ping HTTP/1.1
Host: ttt.cloudsack.biz
Accept-Encoding: gzip
Connection: close
Content-Length: 1
Content-Type: application/json
User-Agent: Go-http-client/1.1
a
DEBUG fronted: fronted_test.go:549 accepting request host=ttt.cloudsack.biz ff=
DEBUG fronted: fronted.go:350 Successfully vetted one masquerade 127.0.0.1:34729
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:34729 in 12.08061ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin abc.forbidden.com -> abc.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /foo/bar HTTP/1.1
Host: abc.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG fronted: fronted_test.go:549 accepting request host=abc.cloudsack.biz ff=
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:34729 in 12.192816ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin abc.forbidden.com -> abc.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /bar?x=y&z=w HTTP/1.1
Host: abc.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG fronted: fronted_test.go:549 accepting request host=abc.cloudsack.biz ff=
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:34729 in 11.882145ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin def.forbidden.com -> def.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /foo HTTP/1.1
Host: def.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG
|
Publish Test Summary Results
TestPassthrough: === RUN TestPassthrough
DEBUG fronted: fronted_test.go:573 Waiting for origin server at 127.0.0.1:40855...
2025/01/22 23:46:35 http: TLS handshake error from 127.0.0.1:38348: EOF
DEBUG fronted: fronted_test.go:577 Started cloudsack.biz CDN
DEBUG fronted: fronted.go:97 Creating new fronted
2025/01/22 23:46:35 ERROR Failed to create gzip reader error="gzip: invalid header"
ERROR fronted: fronted.go:216 Failed to process fronted config: failed to create gzip reader: gzip: invalid header [error=Failed to process fronted config: %v error_location=github.com/getlantern/fronted.(*fronted).onNewFrontsConfig (fronted.go:216) error_text=Failed to process fronted config: failed to create gzip reader: gzip: invalid header error_type=errors.Error]
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.(*fronted).onNewFrontsConfig (fronted.go:216)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.(*fronted).readFrontsFromEmbeddedConfig (fronted.go:210)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.NewFronted (fronted.go:122)
ERROR fronted: fronted.go:216 at github.com/getlantern/fronted.TestPassthrough (fronted_test.go:480)
ERROR fronted: fronted.go:216 at testing.tRunner (testing.go:1689)
ERROR fronted: fronted.go:216 at runtime.goexit (asm_amd64.s:1695)
ERROR fronted: fronted.go:216 Caused by: failed to create gzip reader: gzip: invalid header
ERROR fronted: fronted.go:216 Caused by: gzip: invalid header
2025/01/22 23:46:35 INFO No config URL provided -- not updating fronting configuration
DEBUG fronted: fronted.go:227 Updating fronted configuration
DEBUG fronted: fronted.go:540 Loading candidates for 1 providers
DEBUG fronted: fronted.go:572 Finished loading candidates
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:40855 in 12.272286ms
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: POST /ping HTTP/1.1
Host: ttt.cloudsack.biz
Accept-Encoding: gzip
Connection: close
Content-Length: 1
Content-Type: application/json
User-Agent: Go-http-client/1.1
a
DEBUG fronted: fronted_test.go:549 accepting request host=ttt.cloudsack.biz ff=
DEBUG fronted: fronted.go:350 Successfully vetted one masquerade 127.0.0.1:40855
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:40855 in 11.907694ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin fff.ok.cloudsack.biz -> fff.ok.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /foo HTTP/1.1
Host: fff.ok.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG fronted: fronted_test.go:549 accepting request host=fff.ok.cloudsack.biz ff=
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:40855 in 11.693283ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin abc.cloudsack.biz -> abc.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /bar HTTP/1.1
Host: abc.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
DEBUG fronted: fronted_test.go:549 accepting request host=abc.cloudsack.biz ff=
DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:40855 in 11.977923ms
DEBUG fronted: connected_roundtripper.go:45 Translated origin XYZ.ZyZ.OK.CloudSack.BiZ -> xyz.zyz.ok.cloudsack.biz for provider cloudsack... [op=fronted_request root_op=fronted_request]
DEBUG fronted: fronted_test.go:542 (cloudsack.biz) CDN Request: GET /bar HTTP/1.1
Host: xyz.zyz.ok.cloudsack.biz
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Bar-Foo: XYZ
X-Foo-Bar: Quux
X-Foo-Bar: Baz
X-Quux:
|
Publish Test Summary Results
TestFindWorkingMasquerades/All_successful: === RUN TestFindWorkingMasquerades/All_successful
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:34729: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:39989, dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41527, dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:41527: connect: connection refused
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:39989: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: cache.go:82 Updating cache at /tmp/direct_test1627854127/cachefile.3
DEBUG fronted: fronted.go:432 Could not dial to 23.47.194.73, dial tcp 23.47.194.73:443: i/o timeout [masquerade_domain=a248.e.akamai.net masquerade_ip=23.47.194.73 masquerade_provider=akamai op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 23.47.194.73:443: i/o timeout [masquerade_domain=a248.e.akamai.net masquerade_ip=23.47.194.73 masquerade_provider=akamai op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 23.47.194.73:443: i/o timeout
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
ERROR fronted: cache.go:95 Unable to save cache to disk: open /tmp/direct_test1627854127/cachefile.3: no such file or directory [error=Unable to save cache to disk: %v error_location=github.com/getlantern/fronted.(*fronted).updateCache (cache.go:95) error_op=open error_text=Unable to save cache to disk: open /tmp/direct_test1627854127/cachefile.3: no such file or directory error_type=errors.Error]
ERROR fronted: cache.go:95 at github.com/getlantern/fronted.(*fronted).updateCache (cache.go:95)
ERROR fronted: cache.go:95 at github.com/getlantern/fronted.(*fronted).maintainCache (cache.go:75)
ERROR fronted: cache.go:95 at runtime.goexit (asm_amd64.s:1695)
ERROR fronted: cache.go:95 Caused by: open /tmp/direct_test1627854127/cachefile.3: no such file or directory
ERROR fronted: cache.go:95 Caused by: no such file or directory
DEBUG fronted: cache.go:104 Parent directory of cache file does not exist: /tmp/direct_test1627854127
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:4085
|
Publish Test Summary Results
TestFindWorkingMasquerades/Some_successful: === RUN TestFindWorkingMasquerades/Some_successful
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:34729: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41527, dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:39989, dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:41527: connect: connection refused
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:39989: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:40855, dial tcp 127.0.0.1:40855: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:40855 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:40855: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:40855 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:40855: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:265 findWorkingFronts::Enough working fronts...sleeping
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:34729: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:39989, dial tcp 127.0.0.1:39989: connect: connection refu
|
Publish Test Summary Results
TestFindWorkingMasquerades/Batch_processing: === RUN TestFindWorkingMasquerades/Batch_processing
DEBUG fronted: fronted.go:265 findWorkingFronts::Enough working fronts...sleeping
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:34729: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:39989, dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41527, dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:39989: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:39989 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:41527: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41527 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:39989: connect: connection refused
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:41527: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:432 Could not dial to 23.47.194.73, dial tcp 23.47.194.73:443: i/o timeout [masquerade_domain=a248.e.akamai.net masquerade_ip=23.47.194.73 masquerade_provider=akamai op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 23.47.194.73:443: i/o timeout [masquerade_domain=a248.e.akamai.net masquerade_ip=23.47.194.73 masquerade_provider=akamai op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 23.47.194.73:443: i/o timeout
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:40855, dial tcp 127.0.0.1:40855: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:40855 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:40855: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:40855 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:40855: connect: connection refused
DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:34729, dial tcp 127.0.0.1:34729: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:34729 masquerade_provider=cloudsack op=dial_masquerade
|
Publish Test Summary Results
TestFindWorkingMasquerades: --- FAIL: TestFindWorkingMasquerades (9.08s)
- No trace available
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Set up Go
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
Loading