Skip to content

Rust invalidate_randomly test is flaky #10839

@Eric-Arellano

Description

@Eric-Arellano

See on the macOS shard Sept 21, 2020:

     Running src/rust/engine/target/debug/deps/graph-0a8e2456d64069fd
393
394running 16 tests
395test tests::canceled_immediately ... ok
396test tests::create ... ok
397test tests::critical_path ... ok
398test tests::cyclic_dirtying ... ok
399test tests::cyclic_failure ... ok
400test tests::dirtied_uncacheable_deps_node_re_runs ... ok
401test tests::invalidate_and_clean ... ok
402test tests::invalidate_and_rerun ... ok
403test tests::invalidate_randomly ... thread 'main' panicked at 'In 0 iterations, observed a maximum of 1 distinct context values.', graph/src/tests.rs:193:3
404stack backtrace:
405   0: backtrace::backtrace::libunwind::trace
406             at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86
407   1: backtrace::backtrace::trace_unsynchronized
408             at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66
409   2: std::sys_common::backtrace::_print_fmt
410             at src/libstd/sys_common/backtrace.rs:78
411   3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
412             at src/libstd/sys_common/backtrace.rs:59
413   4: core::fmt::write
414             at src/libcore/fmt/mod.rs:1076
415   5: std::io::Write::write_fmt
416             at src/libstd/io/mod.rs:1537
417   6: std::sys_common::backtrace::_print
418             at src/libstd/sys_common/backtrace.rs:62
419   7: std::sys_common::backtrace::print
420             at src/libstd/sys_common/backtrace.rs:49
421   8: std::panicking::default_hook::{{closure}}
422             at src/libstd/panicking.rs:198
423   9: std::panicking::default_hook
424             at src/libstd/panicking.rs:217
425  10: std::panicking::rust_panic_with_hook
426             at src/libstd/panicking.rs:526
427  11: rust_begin_unwind
428             at src/libstd/panicking.rs:437
429  12: std::panicking::begin_panic_fmt
430             at src/libstd/panicking.rs:391
431  13: graph::tests::invalidate_randomly::{{closure}}
432             at graph/src/tests.rs:193
433  14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
434             at /Users/travis/.cache/pants/rust/rustup/toolchains/1.46.0-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore/future/mod.rs:78
435  15: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on::{{closure}}::{{closure}}
436             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/runtime/basic_scheduler.rs:131
437  16: tokio::coop::budget::{{closure}}
438             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/coop.rs:97
439  17: std::thread::local::LocalKey<T>::try_with
440             at /Users/travis/.cache/pants/rust/rustup/toolchains/1.46.0-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/thread/local.rs:263
441  18: std::thread::local::LocalKey<T>::with
442             at /Users/travis/.cache/pants/rust/rustup/toolchains/1.46.0-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/thread/local.rs:239
443  19: tokio::coop::budget
444             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/coop.rs:79
445  20: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on::{{closure}}
446             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/runtime/basic_scheduler.rs:131
447  21: tokio::runtime::basic_scheduler::enter::{{closure}}
448             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/runtime/basic_scheduler.rs:213
449  22: tokio::macros::scoped_tls::ScopedKey<T>::set
450             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/macros/scoped_tls.rs:64
451  23: tokio::runtime::basic_scheduler::enter
452             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/runtime/basic_scheduler.rs:213
453  24: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on
454             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/runtime/basic_scheduler.rs:123
455  25: tokio::runtime::Runtime::block_on::{{closure}}
456             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/runtime/mod.rs:444
457  26: tokio::runtime::context::enter
458             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/runtime/context.rs:72
459  27: tokio::runtime::handle::Handle::enter
460             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/runtime/handle.rs:71
461  28: tokio::runtime::Runtime::block_on
462             at /Users/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.20/src/runtime/mod.rs:441
463  29: graph::tests::invalidate_randomly
464             at graph/src/tests.rs:135
465  30: graph::tests::invalidate_randomly::{{closure}}
466             at graph/src/tests.rs:135
467  31: core::ops::function::FnOnce::call_once
468             at /Users/travis/.cache/pants/rust/rustup/toolchains/1.46.0-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore/ops/function.rs:233
469  32: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
470             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/liballoc/boxed.rs:1081
471  33: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
472             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panic.rs:318
473  34: std::panicking::try::do_call
474             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panicking.rs:348
475  35: std::panicking::try
476             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panicking.rs:325
477  36: std::panic::catch_unwind
478             at /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/panic.rs:394
479  37: test::run_test_in_process
480             at src/libtest/lib.rs:541
481  38: test::run_test::run_test_inner::{{closure}}
482             at src/libtest/lib.rs:450
483  39: test::run_test::run_test_inner
484             at src/libtest/lib.rs:475
485  40: test::run_test
486             at src/libtest/lib.rs:505
487  41: test::run_tests
488             at src/libtest/lib.rs:284
489  42: test::console::run_tests_console
490             at src/libtest/console.rs:280
491  43: test::test_main
492             at src/libtest/lib.rs:120
493  44: test::test_main_static
494             at src/libtest/lib.rs:139
495  45: graph::main
496  46: std::rt::lang_start::{{closure}}
497             at /Users/travis/.cache/pants/rust/rustup/toolchains/1.46.0-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/rt.rs:67
498  47: std::rt::lang_start_internal::{{closure}}
499             at src/libstd/rt.rs:52
500  48: std::panicking::try::do_call
501             at src/libstd/panicking.rs:348
502  49: std::panicking::try
503             at src/libstd/panicking.rs:325
504  50: std::panic::catch_unwind
505             at src/libstd/panic.rs:394
506  51: std::rt::lang_start_internal
507             at src/libstd/rt.rs:51
508  52: std::rt::lang_start
509             at /Users/travis/.cache/pants/rust/rustup/toolchains/1.46.0-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/rt.rs:67
510  53: main

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions