Changed variable name #209
Annotations
6 errors and 2 warnings
Failed Test: TestYamlParsing
TestYamlParsing: === RUN TestYamlParsing
fronted_test.go:31:
Error Trace: /home/runner/work/fronted/fronted/fronted_test.go:31
Error: Received unexpected error:
open fronted.yaml: no such file or directory
Test: TestYamlParsing
--- FAIL: TestYamlParsing (0.00s)
- No trace available
|
Failed Test: TestCustomValidators/with_custom_validator,_it_should_accept_403
TestCustomValidators/with_custom_validator,_it_should_accept_403: === RUN TestCustomValidators/with_custom_validator,_it_should_accept_403
DEBUG fronted: fronted.go:87 Creating new fronted
2025/01/14 18:03:24 ERROR Failed to create gzip reader error="gzip: invalid header"
DEBUG fronted: fronted.go:168 Updating fronted configuration
DEBUG fronted: fronted.go:632 Loading candidates for 1 providers
DEBUG fronted: fronted.go:664 Finished loading candidates
DEBUG fronted: fronted_test.go:631 requesting forced response code 403
DEBUG fronted: fronted.go:198 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:439 Returning connection for masquerade 127.0.0.1:37195 in 12.302629ms
DEBUG fronted: fronted_test.go:664 (sadcloud.io) CDN Request: POST /ping HTTP/1.1
Host: ttt.sadcloud.io
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:671 accepting request host=ttt.sadcloud.io ff=
DEBUG fronted: fronted.go:287 Successfully vetted one masquerade 127.0.0.1:37195
DEBUG fronted: fronted.go:200 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:439 Returning connection for masquerade 127.0.0.1:37195 in 12.921122ms [is_idempotent=true op=fronted_roundtrip origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted.go:390 Translated origin abc.forbidden.com -> abc.sadcloud.io for provider sadcloud... [is_idempotent=true op=fronted_request origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted_test.go:664 (sadcloud.io) CDN Request: GET /quux HTTP/1.1
Host: abc.sadcloud.io
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Cdn-Force-Fail: 403
DEBUG fronted: fronted_test.go:682 (sadcloud.io) Rejecting request with host = "abc.sadcloud.io" ff=403 allowed=.sadcloud.io
DEBUG fronted: fronted_test.go:689 Forcing status code to 403
DEBUG fronted: fronted.go:411 Could not complete request: response status 403: 403 Forbidden [is_idempotent=true op=fronted_request origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted.go:361 Could not complete request: response status 403: 403 Forbidden [is_idempotent=true op=fronted_roundtrip origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted.go:343 Retrying domain-fronted request, pass 1 [is_idempotent=true op=fronted_roundtrip origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: cache.go:82 Updating cache at /tmp/direct_test3404170799/cachefile.3
ERROR fronted: cache.go:95 Unable to save cache to disk: open /tmp/direct_test3404170799/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_test3404170799/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_test3404170799/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_test3404170799
DEBUG fronted: fronted.go:198 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:468 Could not dial to 127.0.0.1:43725, dial tcp 127.0.0.1:43725: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:43725 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_masquerade]
DEBUG fronted: fronted.go:476 Unexpected error dialing, keeping masquerade: dial tcp 127.0.0.1:43725: connect: connection refused [masquerade_domain=example.com masquerade_ip=127.0.0.1:43725 masquerade_provider=cloudsack op=dial_masquerade root_op=dial_m
|
Failed Test: TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_402
TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_402: === RUN TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_402
DEBUG fronted: fronted.go:87 Creating new fronted
2025/01/14 18:03:29 ERROR Failed to create gzip reader error="gzip: invalid header"
DEBUG fronted: fronted.go:168 Updating fronted configuration
DEBUG fronted: fronted.go:632 Loading candidates for 1 providers
DEBUG fronted: fronted.go:664 Finished loading candidates
DEBUG fronted: fronted_test.go:631 requesting forced response code 402
DEBUG fronted: fronted.go:198 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:439 Returning connection for masquerade 127.0.0.1:37195 in 12.411935ms
DEBUG fronted: fronted_test.go:664 (sadcloud.io) CDN Request: POST /ping HTTP/1.1
Host: ttt.sadcloud.io
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:671 accepting request host=ttt.sadcloud.io ff=
DEBUG fronted: fronted.go:287 Successfully vetted one masquerade 127.0.0.1:37195
DEBUG fronted: fronted.go:200 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:439 Returning connection for masquerade 127.0.0.1:37195 in 12.528217ms [is_idempotent=true op=fronted_roundtrip origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted.go:390 Translated origin abc.forbidden.com -> abc.sadcloud.io for provider sadcloud... [is_idempotent=true op=fronted_request origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted_test.go:664 (sadcloud.io) CDN Request: GET /quux HTTP/1.1
Host: abc.sadcloud.io
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Cdn-Force-Fail: 402
DEBUG fronted: fronted_test.go:682 (sadcloud.io) Rejecting request with host = "abc.sadcloud.io" ff=402 allowed=.sadcloud.io
DEBUG fronted: fronted_test.go:689 Forcing status code to 402
fronted_test.go:640:
Error Trace: /home/runner/work/fronted/fronted/fronted_test.go:640
Error: An error is expected but got nil.
Test: TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_402
--- FAIL: TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_402 (0.03s)
- No trace available
|
Failed Test: TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_418
TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_418: === RUN TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_418
DEBUG fronted: fronted.go:87 Creating new fronted
2025/01/14 18:03:29 ERROR Failed to create gzip reader error="gzip: invalid header"
DEBUG fronted: fronted.go:168 Updating fronted configuration
DEBUG fronted: fronted.go:632 Loading candidates for 1 providers
DEBUG fronted: fronted.go:664 Finished loading candidates
DEBUG fronted: fronted_test.go:631 requesting forced response code 418
DEBUG fronted: fronted_test.go:631 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:439 Returning connection for masquerade 127.0.0.1:37195 in 12.396541ms
DEBUG fronted: fronted_test.go:664 (sadcloud.io) CDN Request: POST /ping HTTP/1.1
Host: ttt.sadcloud.io
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:671 accepting request host=ttt.sadcloud.io ff=
DEBUG fronted: fronted.go:287 Successfully vetted one masquerade 127.0.0.1:37195
DEBUG fronted: fronted.go:200 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:439 Returning connection for masquerade 127.0.0.1:37195 in 13.074931ms [is_idempotent=true op=fronted_roundtrip origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted.go:390 Translated origin abc.forbidden.com -> abc.sadcloud.io for provider sadcloud... [is_idempotent=true op=fronted_request origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted_test.go:664 (sadcloud.io) CDN Request: GET /quux HTTP/1.1
Host: abc.sadcloud.io
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Cdn-Force-Fail: 418
DEBUG fronted: fronted_test.go:682 (sadcloud.io) Rejecting request with host = "abc.sadcloud.io" ff=418 allowed=.sadcloud.io
DEBUG fronted: fronted_test.go:689 Forcing status code to 418
fronted_test.go:640:
Error Trace: /home/runner/work/fronted/fronted/fronted_test.go:640
Error: An error is expected but got nil.
Test: TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_418
--- FAIL: TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_418 (0.03s)
- No trace available
|
Failed Test: TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_502
TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_502: === RUN TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_502
DEBUG fronted: fronted.go:87 Creating new fronted
2025/01/14 18:03:29 ERROR Failed to create gzip reader error="gzip: invalid header"
DEBUG fronted: fronted.go:168 Updating fronted configuration
DEBUG fronted: fronted.go:632 Loading candidates for 1 providers
DEBUG fronted: fronted.go:664 Finished loading candidates
DEBUG fronted: fronted_test.go:631 requesting forced response code 502
DEBUG fronted: fronted.go:198 findWorkingFronts::Trying all fronts
DEBUG fronted: fronted.go:439 Returning connection for masquerade 127.0.0.1:37195 in 12.43064ms
DEBUG fronted: fronted_test.go:664 (sadcloud.io) CDN Request: POST /ping HTTP/1.1
Host: ttt.sadcloud.io
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:671 accepting request host=ttt.sadcloud.io ff=
DEBUG fronted: fronted.go:287 Successfully vetted one masquerade 127.0.0.1:37195
DEBUG fronted: fronted.go:200 findWorkingFronts::Tried all fronts
DEBUG fronted: fronted.go:439 Returning connection for masquerade 127.0.0.1:37195 in 13.044022ms [is_idempotent=true op=fronted_roundtrip origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted.go:390 Translated origin abc.forbidden.com -> abc.sadcloud.io for provider sadcloud... [is_idempotent=true op=fronted_request origin_host=abc.forbidden.com root_op=fronted_roundtrip]
DEBUG fronted: fronted_test.go:664 (sadcloud.io) CDN Request: GET /quux HTTP/1.1
Host: abc.sadcloud.io
Accept-Encoding: gzip
Connection: close
User-Agent: Go-http-client/1.1
X-Cdn-Force-Fail: 502
DEBUG fronted: fronted_test.go:682 (sadcloud.io) Rejecting request with host = "abc.sadcloud.io" ff=502 allowed=.sadcloud.io
DEBUG fronted: fronted_test.go:689 Forcing status code to 502
fronted_test.go:640:
Error Trace: /home/runner/work/fronted/fronted/fronted_test.go:640
Error: An error is expected but got nil.
Test: TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_502
--- FAIL: TestCustomValidators/with_custom_validator,_it_should_reject_and_return_error_for_502 (0.03s)
- No trace available
|
Failed Test: TestCustomValidators
TestCustomValidators: --- FAIL: TestCustomValidators (10.42s)
- 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.79 KB |
|