Skip to content

Integration Test header_timestamp_value_assertion_in_new_extended_mining_job is not deterministic #1374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
plebhash opened this issue Jan 21, 2025 · 3 comments

Comments

@plebhash
Copy link
Collaborator

I witnessed header_timestamp_value_assertion_in_new_extended_mining_job failing on CI and locally.

Re-running it makes it work.

Here's a failed CI run: https://github.com/stratum-mining/stratum/actions/runs/12897499112/job/35962754080?pr=1340

@plebhash
Copy link
Collaborator Author

here's logs from a local run on macOS:

cargo t
   Compiling integration_tests_sv2 v0.1.0 (/Users/plebhash/develop/stratum/roles/tests-integration)
    Finished test [optimized + debuginfo] target(s) in 1.95s
     Running unittests lib/mod.rs (/Users/plebhash/develop/stratum/roles/target/debug/deps/integration_tests_sv2-e723a8dcb1cce55d)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/pool_integration.rs (/Users/plebhash/develop/stratum/roles/target/debug/deps/pool_integration-429d0bab5ae8b192)

running 2 tests
test header_timestamp_value_assertion_in_new_extended_mining_job ... FAILED
test success_pool_template_provider_connection ... ok

failures:

---- header_timestamp_value_assertion_in_new_extended_mining_job stdout ----
thread 'header_timestamp_value_assertion_in_new_extended_mining_job' panicked at tests-integration/lib/template_provider.rs:132:61:
called `Result::unwrap()` on an `Err` value: Error while executing "/Users/plebhash/develop/stratum/roles/tests-integration/template-provider/bitcoin-sv2-tp-0.1.13/bin/bitcoind"

Caused by:
    Permission denied (os error 13)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    header_timestamp_value_assertion_in_new_extended_mining_job

test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 11.88s

error: test failed, to rerun pass `--test pool_integration`

this was after merging #1359, which means the issue originally reported on #1278 seems to be repeating?

VERY puzzling 🤷🏼

@plebhash
Copy link
Collaborator Author

also very hard to reproduce locally... happened once and never again, even after re-running multiple times (also after removing template-provider)

@plebhash
Copy link
Collaborator Author

closing in favor of re-opening #1278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant