Skip to content

Refactored to allow callers to get connected RoundTrippers #221

Refactored to allow callers to get connected RoundTrippers

Refactored to allow callers to get connected RoundTrippers #221

Triggered via push January 22, 2025 20:23
Status Success
Total duration 2m 39s
Artifacts 1

test.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 2 warnings
Failed Test: TestHostAliasesBasic
TestHostAliasesBasic: === RUN TestHostAliasesBasic DEBUG fronted: fronted_test.go:573 Waiting for origin server at 127.0.0.1:37175... DEBUG fronted: fronted_test.go:577 Started cloudsack.biz CDN 2025/01/22 20:25:12 http: TLS handshake error from 127.0.0.1:53560: EOF DEBUG fronted: fronted.go:97 Creating new fronted 2025/01/22 20:25:12 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 20:25:12 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:37175 in 12.615427ms 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:37175 DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:37175 in 12.025017ms 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:37175 in 12.369903ms 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:37175 in 11.982809ms 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: DEBU
Failed Test: TestPassthrough
TestPassthrough: === RUN TestPassthrough DEBUG fronted: fronted_test.go:573 Waiting for origin server at 127.0.0.1:46447... 2025/01/22 20:25:12 http: TLS handshake error from 127.0.0.1:60558: EOF DEBUG fronted: fronted_test.go:577 Started cloudsack.biz CDN DEBUG fronted: fronted.go:97 Creating new fronted 2025/01/22 20:25:12 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 20:25:12 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:46447 in 12.265406ms 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:46447 DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:46447 in 11.996467ms 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:46447 in 12.492224ms 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:46447 in 12.517278ms 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:
Failed Test: TestFindWorkingMasquerades/All_successful
TestFindWorkingMasquerades/All_successful: === RUN TestFindWorkingMasquerades/All_successful DEBUG fronted: fronted.go:350 Successfully vetted one masquerade 104.117.247.143 DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: 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:41609, dial tcp 127.0.0.1:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade] DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:33113, dial tcp 127.0.0.1:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 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:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 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:41609: connect: connection refused DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:33113: 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:46447, dial tcp 127.0.0.1:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: 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:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronted: fronte
Failed Test: TestFindWorkingMasquerades/Some_successful
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:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: 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:33113, dial tcp 127.0.0.1:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade] DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41609, dial tcp 127.0.0.1:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 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:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:33113: connect: connection refused DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:41609: connect: connection refused DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronted: cache.go:82 Updating cache at /tmp/direct_test1438011145/cachefile.3 ERROR fronted: cache.go:95 Unable to save cache to disk: open /tmp/direct_test1438011145/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_test1438011145/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_test1438011145/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_test1438011145 DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:46447, dial tcp 127.0.0.1:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: connect: connection refused DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronte
Failed Test: TestFindWorkingMasquerades/Batch_processing
TestFindWorkingMasquerades/Batch_processing: === RUN TestFindWorkingMasquerades/Batch_processing DEBUG fronted: fronted.go:350 Successfully vetted one masquerade 104.117.247.143 DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: 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:33113, dial tcp 127.0.0.1:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade] DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41609, dial tcp 127.0.0.1:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 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:33113: connect: connection refused DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:41609: 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:46447, dial tcp 127.0.0.1:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: 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:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: 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:33113, dial tcp 127.0.0.1:33113: connect: connection ref
Failed Test: TestFindWorkingMasquerades
TestFindWorkingMasquerades: --- FAIL: TestFindWorkingMasquerades (9.09s) - No trace available
Failed Test: TestHostAliasesBasic
TestHostAliasesBasic: === RUN TestHostAliasesBasic DEBUG fronted: fronted_test.go:573 Waiting for origin server at 127.0.0.1:37175... DEBUG fronted: fronted_test.go:577 Started cloudsack.biz CDN 2025/01/22 20:25:12 http: TLS handshake error from 127.0.0.1:53560: EOF DEBUG fronted: fronted.go:97 Creating new fronted 2025/01/22 20:25:12 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 20:25:12 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:37175 in 12.615427ms 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:37175 DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:37175 in 12.025017ms 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:37175 in 12.369903ms 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:37175 in 11.982809ms 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: DEBU
Failed Test: TestPassthrough
TestPassthrough: === RUN TestPassthrough DEBUG fronted: fronted_test.go:573 Waiting for origin server at 127.0.0.1:46447... 2025/01/22 20:25:12 http: TLS handshake error from 127.0.0.1:60558: EOF DEBUG fronted: fronted_test.go:577 Started cloudsack.biz CDN DEBUG fronted: fronted.go:97 Creating new fronted 2025/01/22 20:25:12 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 20:25:12 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:46447 in 12.265406ms 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:46447 DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronted: fronted.go:400 Returning connection for front 127.0.0.1:46447 in 11.996467ms 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:46447 in 12.492224ms 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:46447 in 12.517278ms 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:
Failed Test: TestFindWorkingMasquerades/All_successful
TestFindWorkingMasquerades/All_successful: === RUN TestFindWorkingMasquerades/All_successful DEBUG fronted: fronted.go:350 Successfully vetted one masquerade 104.117.247.143 DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: 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:41609, dial tcp 127.0.0.1:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade] DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:33113, dial tcp 127.0.0.1:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 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:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 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:41609: connect: connection refused DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:33113: 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:46447, dial tcp 127.0.0.1:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: 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:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronted: fronte
Failed Test: TestFindWorkingMasquerades/Some_successful
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:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: 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:33113, dial tcp 127.0.0.1:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade] DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41609, dial tcp 127.0.0.1:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 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:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:33113: connect: connection refused DEBUG fronted: fronted.go:330 unexpected error vetting masquerades: dial tcp 127.0.0.1:41609: connect: connection refused DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronted: cache.go:82 Updating cache at /tmp/direct_test1438011145/cachefile.3 ERROR fronted: cache.go:95 Unable to save cache to disk: open /tmp/direct_test1438011145/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_test1438011145/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_test1438011145/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_test1438011145 DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:46447, dial tcp 127.0.0.1:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: connect: connection refused DEBUG fronted: fronted.go:259 findWorkingFronts::Tried all fronts DEBUG fronte
Failed Test: TestFindWorkingMasquerades/Batch_processing
TestFindWorkingMasquerades/Batch_processing: === RUN TestFindWorkingMasquerades/Batch_processing DEBUG fronted: fronted.go:350 Successfully vetted one masquerade 104.117.247.143 DEBUG fronted: fronted.go:257 findWorkingFronts::Trying all fronts DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: 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:33113, dial tcp 127.0.0.1:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 masquerade_provider=sadcloud op=dial_masquerade root_op=dial_masquerade] DEBUG fronted: fronted.go:432 Could not dial to 127.0.0.1:41609, dial tcp 127.0.0.1:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:33113: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:33113 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:33113: connect: connection refused DEBUG fronted: fronted.go:440 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:41609: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:41609 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:41609: 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:46447, dial tcp 127.0.0.1:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:46447 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:46447: 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:37175, dial tcp 127.0.0.1:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:37175 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:37175: 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:33113, dial tcp 127.0.0.1:33113: connect: connection ref
Failed Test: TestFindWorkingMasquerades
TestFindWorkingMasquerades: --- FAIL: TestFindWorkingMasquerades (9.09s) - No trace available
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2

Artifacts

Produced during runtime
Name Size
ctrf-report
3.49 KB