it seems that there is a flaky rust test.... <http...
# development
p
it seems that there is a flaky rust test.... https://travis-ci.com/github/pantsbuild/pants/jobs/402993745#L871
test tests::invalidate_and_rerun ... ok 871thread 'tests::invalidate_randomly' panicked at 'In 0 iterations, observed a maximum of 1 distinct context values.', graph/src/tests.rs1933 872stack backtrace: 873 0: rust_begin_unwind 874 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475 875 1: std:panicking:begin_panic_fmt 876 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:429 877 2: graph:testsinvalidate randomly:{{closure}} 878 at ./src/tests.rs:193 879 3: <core:futurefrom generator:GenFuture<T> as core:futurefutureFuture&gt;:poll 880 at /home/travis/.cache/pants/rust/rustup/toolchains/1.47.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79 881 4: tokio:runtimebasic schedulerBasicScheduler&lt;P&gt;block on{{closure}}:{{closure}} 882 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131 883 5: tokio:coopwith budget:{{closure}} 884 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:127 885 6: std:🧵localLocalKey&lt;T&gt;:try_with 886 at /home/travis/.cache/pants/rust/rustup/toolchains/1.47.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:265 887 7: std:🧵localLocalKey&lt;T&gt;:with 888 at /home/travis/.cache/pants/rust/rustup/toolchains/1.47.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:241 889 8: tokio:coop:with_budget 890 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:120 891 9: tokio:coop:budget 892 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/coop.rs:96 893 10: tokio:runtimebasic schedulerBasicScheduler&lt;P&gt;block on:{{closure}} 894 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:131 895 11: tokio:runtimebasic schedulerenter:{{closure}} 896 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213 897 12: tokio:macrosscoped tlsScopedKey&lt;T&gt;:set 898 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/macros/scoped_tls.rs:63 899 13: tokio:runtimebasic scheduler:enter 900 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:213 901 14: tokio:runtimebasic schedulerBasicScheduler&lt;P&gt;:block_on 902 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/basic_scheduler.rs:123 903 15: tokio:runtimeRuntimeblock on:{{closure}} 904 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:444 905 16: tokio:runtimecontext:enter 906 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/context.rs:72 907 17: tokio:runtimehandleHandle:enter 908 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/handle.rs:76 909 18: tokio:runtimeRuntime:block_on 910 at /home/travis/.cache/pants/rust/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/runtime/mod.rs:441 911 19: graph:tests:invalidate_randomly 912 at ./src/tests.rs:135 913 20: graph:testsinvalidate randomly:{{closure}} 914 at ./src/tests.rs:135 915 21: core:opsfunctionFnOnce:call_once 916 at /home/travis/.cache/pants/rust/rustup/toolchains/1.47.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227 917 22: core:opsfunctionFnOnce:call_once 918 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/ops/function.rs:227 919note: Some details are omitted, run with
RUST_BACKTRACE=full
for a verbose backtrace. 920test tests::invalidate_randomly ... FAILED 921test tests::invalidate_with_changed_dependencies ... ok 922test tests::poll_cacheable ... ok
@hundreds-breakfast-49010
f
I’ve seen that test fail in CI as well where restarting the shard sees the test pass in the next run