Ensure fronted is always initialized and self-contained in proxies pa… #2295
Annotations
2 errors and 1 warning
Failed Test: TestParallelPreferChained
TestParallelPreferChained: DEBUG fronted: fronted.go:145 findWorkingFronts::Enough working fronts...sleeping
DEBUG fronted: fronted.go:145 findWorkingFronts::Enough working fronts...sleeping
DEBUG flashlight.proxied: proxied.go:275 Got a failed response (could be the proxy not being reachable) from running request with req.URL.Host [d3u5fqukq7qrhd.cloudfront.net] | status code: [503] | response:
"HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\nContent-Length: 95\r\nCf-Cache-Status: DYNAMIC\r\nCf-Ray: 8f104e0d4eb9878b-IAD\r\nContent-Type: text/plain\r\nDate: Thu, 12 Dec 2024 20:01:23 GMT\r\nServer: cloudflare\r\nVia: 1.1 google, 1.1 43ea6d4d093c6f8fb9edddca6fa0cf36.cloudfront.net (CloudFront)\r\nX-Amz-Cf-Id: 5-N66E_hh2XN0UT1pOwxaKZX8cGb7bpyPo-Lz70LB-3y4e1aD_cDcg==\r\nX-Amz-Cf-Pop: IAD61-P4\r\nX-Cache: Error from cloudfront\r\n\r\nupstream connect error or disconnect/reset before headers. reset reason: connection termination" [http_method=GET http_proto=HTTP/1.1 http_status_code=503 op=dualfetcher origin_port=80 parallel=true proxy_type=chained root_op=chainedandfronted]
DEBUG flashlight.proxied: proxied.go:328 Chained request to http://d3u5fqukq7qrhd.cloudfront.net/lookup/198.199.72.101 failed [http_method=GET http_proto=HTTP/1.1 http_status_code=503 op=dualfetcher origin_port=80 parallel=true proxy_type=chained root_op=chainedandfronted]
ERROR flashlight.proxied: proxied.go:191 503 Service Unavailable [error=503 Service Unavailable error_location=github.com/getlantern/flashlight/v7/proxied.(*dualFetcher).do.func1 (proxied.go:268) error_text=503 Service Unavailable error_type=errors.Error http_method=GET http_proto=HTTP/1.1 http_status_code=503 op=dualfetcher origin_port=80 parallel=true proxy_type=chained root_op=chainedandfronted]
ERROR flashlight.proxied: proxied.go:191 at github.com/getlantern/flashlight/v7/proxied.(*dualFetcher).do.func1 (proxied.go:268)
ERROR flashlight.proxied: proxied.go:191 at github.com/getlantern/flashlight/v7/proxied.(*dualFetcher).do.func4 (proxied.go:319)
ERROR flashlight.proxied: proxied.go:191 at github.com/getlantern/context.(*context).Go.func1 (context.go:168)
ERROR flashlight.proxied: proxied.go:191 at runtime.goexit (asm_amd64.s:1695)
DEBUG flashlight.proxied: proxied.go:140 Switching or continuing to use dual fetcher because of error on request [http_method=GET http_proto=HTTP/1.1 op=chainedandfronted origin_port=80 root_op=chainedandfronted]
proxied_test.go:199:
Error Trace: /home/runner/work/flashlight/flashlight/proxied/proxied_test.go:199
/home/runner/work/flashlight/flashlight/proxied/proxied_test.go:135
Error: Received unexpected error:
503 Service Unavailable
Test: TestParallelPreferChained
--- FAIL: TestParallelPreferChained (42.68s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x16c15e6]
goroutine 340 [running]:
testing.tRunner.func1.2({0x19208e0, 0x256f6a0})
/opt/hostedtoolcache/go/1.22.6/x64/src/testing/testing.go:1631 +0x3f7
testing.tRunner.func1()
/opt/hostedtoolcache/go/1.22.6/x64/src/testing/testing.go:1634 +0x6b6
panic({0x19208e0?, 0x256f6a0?})
/opt/hostedtoolcache/go/1.22.6/x64/src/runtime/panic.go:770 +0x132
github.com/getlantern/flashlight/v7/proxied.doTestChainedAndFronted(0xc000422000, 0x1b2dfd0)
/home/runner/work/flashlight/flashlight/proxied/proxied_test.go:200 +0x546
github.com/getlantern/flashlight/v7/proxied.TestParallelPreferChained(0xc000422000)
/home/runner/work/flashlight/flashlight/proxied/proxied_test.go:135 +0x2e
testing.tRunner(0xc000422000, 0x1b2de40)
/opt/hostedtoolcache/go/1.22.6/x64/src/testing/testing.go:1689 +0x21f
created by testing.(*T).Run in goroutine 1
/opt/hostedtoolcache/go/1.22.6/x64/src/testing/testing.go:1742 +0x826
- No trace available
|
Failed Test: TestSendReport
TestSendReport: === RUN TestSendReport
DEBUG flashlight.geolookup: geolookup.go:68 Country not available yet
DEBUG fronted: fronted.go:107 Updating fronted configuration
DEBUG fronted: fronted.go:566 Loading candidates for 2 providers
DEBUG fronted: fronted.go:598 Finished loading candidates
DEBUG flashlight.geolookup: geolookup.go:68 Country not available yet
DEBUG flashlight.issue: issue.go:111 zipping log files for issue report
DEBUG flashlight.logging: logging.go:248 Grabbing log tail from issue.go
DEBUG flashlight.logging: logging.go:272 Got 3616 bytes of log tail from issue.go
DEBUG fronted: fronted.go:378 Returning connection for masquerade 18.160.1.166 in 22.436459ms [is_idempotent=false op=fronted_roundtrip origin_host=iantem.io root_op=issue_fronted_roundtrip]
DEBUG fronted: fronted.go:329 Translated origin iantem.io -> d1a8iiu5dqt0h3.cloudfront.net for provider cloudfront... [is_idempotent=false op=fronted_request origin_host=iantem.io root_op=issue_fronted_roundtrip]
DEBUG fronted: cache.go:77 Updating cache at /home/runner/.config/Lantern/fronted_cache.json
ERROR flashlight.issue: issue.go:150 Bad response status: 503 | response:
"HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\nContent-Length: 167\r\nContent-Type: text/plain\r\nDate: Thu, 12 Dec 2024 20:01:28 GMT\r\nVia: 1.1 google, 1.1 06c1d28e93bdae8f6401a12c10b2f570.cloudfront.net (CloudFront)\r\nX-Amz-Cf-Id: io0lUlqC61AW8iLavuoYXLHR-TCM9QCzZWQFn2TthduCQkS9Bfiijg==\r\nX-Amz-Cf-Pop: IAD12-P3\r\nX-Cache: Error from cloudfront\r\n\r\nupstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused" [error=Bad response status: %d | response:
%#v error_location=github.com/getlantern/flashlight/v7/issue.sendReport (issue.go:150) error_text=Bad response status: 503 | response:
"HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\nContent-Length: 167\r\nContent-Type: text/plain\r\nDate: Thu, 12 Dec 2024 20:01:28 GMT\r\nVia: 1.1 google, 1.1 06c1d28e93bdae8f6401a12c10b2f570.cloudfront.net (CloudFront)\r\nX-Amz-Cf-Id: io0lUlqC61AW8iLavuoYXLHR-TCM9QCzZWQFn2TthduCQkS9Bfiijg==\r\nX-Amz-Cf-Pop: IAD12-P3\r\nX-Cache: Error from cloudfront\r\n\r\nupstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused" error_type=errors.Error]
ERROR flashlight.issue: issue.go:150 at github.com/getlantern/flashlight/v7/issue.sendReport (issue.go:150)
ERROR flashlight.issue: issue.go:150 at github.com/getlantern/flashlight/v7/issue.TestSendReport (issue_test.go:56)
ERROR flashlight.issue: issue.go:150 at testing.tRunner (testing.go:1689)
ERROR flashlight.issue: issue.go:150 at runtime.goexit (asm_amd64.s:1695)
issue_test.go:77: SendReport() error = Bad response status: 503 | response:
"HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\nContent-Length: 167\r\nContent-Type: text/plain\r\nDate: Thu, 12 Dec 2024 20:01:28 GMT\r\nVia: 1.1 google, 1.1 06c1d28e93bdae8f6401a12c10b2f570.cloudfront.net (CloudFront)\r\nX-Amz-Cf-Id: io0lUlqC61AW8iLavuoYXLHR-TCM9QCzZWQFn2TthduCQkS9Bfiijg==\r\nX-Amz-Cf-Pop: IAD12-P3\r\nX-Cache: Error from cloudfront\r\n\r\nupstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused"
--- FAIL: TestSendReport (5.39s)
- 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
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
ctrf-report
|
5.42 KB |
|