You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CI failed] [test-unit] thread 'fetch::test_fetch_with_hsts' panicked at 'called Option::unwrap() on a None value' #19634
---- fetch::test_fetch_with_hsts stdout ----
thread 'fetch::test_fetch_with_hsts' panicked at 'called `Option::unwrap()` on a `None` value', /checkout/src/libcore/option.rs:335:20
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at /checkout/src/libstd/sys_common/backtrace.rs:68
2: std::panicking::default_hook::{{closure}}
at /checkout/src/libstd/sys_common/backtrace.rs:57
at /checkout/src/libstd/panicking.rs:381
3: std::panicking::default_hook
at /checkout/src/libstd/panicking.rs:391
4: std::panicking::rust_panic_with_hook
at /checkout/src/libstd/panicking.rs:577
5: std::panicking::begin_panic
at /checkout/src/libstd/panicking.rs:538
6: std::panicking::begin_panic_fmt
at /checkout/src/libstd/panicking.rs:522
7: rust_begin_unwind
at /checkout/src/libstd/panicking.rs:498
8: core::panicking::panic_fmt
at /checkout/src/libcore/panicking.rs:71
9: core::panicking::panic
at /checkout/src/libcore/panicking.rs:51
10: <core::option::Option<T>>::unwrap
at /checkout/src/libcore/macros.rs:20
11: net_tests::fetch::test_fetch_with_hsts
at ./fetch.rs:558
12: <F as test::FnBox<T>>::call_box
at /checkout/src/libtest/lib.rs:1491
at /checkout/src/libcore/ops/function.rs:223
at /checkout/src/libtest/lib.rs:142
13: __rust_maybe_catch_panic
at /checkout/src/libpanic_unwind/lib.rs:99
failures:
fetch::test_fetch_with_hsts
test result: FAILED. 421 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
changed the title [-]thread 'fetch::test_fetch_with_hsts' panicked at 'called `Option::unwrap()` on a `None` value'[/-][+][test-unit] thread 'fetch::test_fetch_with_hsts' panicked at 'called `Option::unwrap()` on a `None` value'[/+]on Dec 23, 2017
changed the title [-][test-unit] thread 'fetch::test_fetch_with_hsts' panicked at 'called `Option::unwrap()` on a `None` value'[/-][+][CI failed] [test-unit] thread 'fetch::test_fetch_with_hsts' panicked at 'called `Option::unwrap()` on a `None` value'[/+]on Dec 23, 2017
The self-signed cert was added in 6020b4c, where the failing test was also added. I guess it would be better to dynamically generate a self-signed cert in the tests so that there isn't a fixed expiry date.
Activity
tigercosmos commentedon Dec 23, 2017
cc @jdm
[-]thread 'fetch::test_fetch_with_hsts' panicked at 'called `Option::unwrap()` on a `None` value'[/-][+][test-unit] thread 'fetch::test_fetch_with_hsts' panicked at 'called `Option::unwrap()` on a `None` value'[/+][-][test-unit] thread 'fetch::test_fetch_with_hsts' panicked at 'called `Option::unwrap()` on a `None` value'[/-][+][CI failed] [test-unit] thread 'fetch::test_fetch_with_hsts' panicked at 'called `Option::unwrap()` on a `None` value'[/+]jonleighton commentedon Dec 23, 2017
The certificate used in that test has expired:
jonleighton commentedon Dec 23, 2017
The self-signed cert was added in 6020b4c, where the failing test was also added. I guess it would be better to dynamically generate a self-signed cert in the tests so that there isn't a fixed expiry date.
tigercosmos commentedon Dec 24, 2017
I found a command. What's
./mach update-hsts-preload?jdm commentedon Dec 24, 2017
That only updates the HSTS preload list - it is used to automatically upgrade HTTP connections to HTTPS before the connection is started.
tigercosmos commentedon Dec 24, 2017
@jdm How do you think to solve the issue.
Change to dynamically generate a self-signed cert as @jonleighton suggested?
or just modify the file?
jdm commentedon Dec 24, 2017
It would be nice to switch to dynamic generation at some point, but modifying the file would allow us to deal with the problem quickly.
emilio commentedon Dec 24, 2017
Yeah, I'm on it right now.
Auto merge of #19640 - emilio:testing-cert, r=emilio