-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/clarinet-setup
- Loading branch information
Showing
141 changed files
with
17,341 additions
and
2,819 deletions.
There are no files selected for viewing
40 changes: 8 additions & 32 deletions
40
.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,12 @@ | ||
FROM rust:bullseye | ||
FROM stacks-node:integrations AS test | ||
|
||
WORKDIR /src/ | ||
|
||
COPY . . | ||
|
||
WORKDIR /src/testnet/stacks-node | ||
RUN cargo test --no-run | ||
|
||
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
ARG test_name | ||
ENV BITCOIND_TEST 1 | ||
|
||
RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/ | ||
RUN cargo build && \ | ||
cargo test -- --test-threads 1 --ignored "$test_name" | ||
|
||
ENV BITCOIND_TEST 1 | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::microblock_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_check_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::cost_voting_integration | ||
RUN cargo test -- --test-threads 1 --ignored tests::integrations::integration_test_get_info | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::bitcoind_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::liquid_ustx_integration | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::stx_transfer_btc_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::bitcoind_forking_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::should_fix_2771 | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::pox_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::bitcoin_regtest::bitcoind_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::should_succeed_handling_malformed_and_valid_txs | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_overflow_unconfirmed_microblocks_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_overflow_unconfirmed_stream_microblocks_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::size_overflow_unconfirmed_invalid_stream_microblocks_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::runtime_overflow_unconfirmed_microblocks_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::antientropy_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::filter_low_fee_tx_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::filter_long_runtime_tx_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::mining_transactions_is_fair | ||
RUN grcov . --binary-path ../../target/debug/ -s ../.. -t lcov --branch --ignore-not-existing --ignore "/*" -o /lcov.info | ||
|
||
FROM scratch AS export-stage | ||
COPY --from=test /lcov.info / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
...s/bitcoin-int-tests/Dockerfile.atlas-test → ...nt-tests/Dockerfile.generic.bitcoin-tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
FROM rust:bullseye | ||
|
||
WORKDIR /src | ||
WORKDIR /src/ | ||
|
||
COPY . . | ||
|
||
RUN cargo test --no-run --workspace | ||
WORKDIR /src/testnet/stacks-node | ||
|
||
RUN rustup override set nightly && \ | ||
rustup component add llvm-tools-preview && \ | ||
cargo install grcov | ||
|
||
ENV RUSTFLAGS="-Zinstrument-coverage" \ | ||
LLVM_PROFILE_FILE="stacks-blockchain-%p-%m.profraw" | ||
|
||
RUN cargo test --no-run && \ | ||
cargo build | ||
|
||
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
|
||
RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/ | ||
|
||
ENV BITCOIND_TEST 1 | ||
WORKDIR /src/testnet/stacks-node | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::atlas_integration_test | ||
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::atlas_stress_integration_test |
19 changes: 16 additions & 3 deletions
19
.github/actions/bitcoin-int-tests/Dockerfile.large-genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
FROM rust:bullseye | ||
FROM rust:bullseye AS test | ||
|
||
WORKDIR /src | ||
|
||
COPY . . | ||
|
||
RUN cargo test --no-run --workspace | ||
|
||
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz | ||
|
||
RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/ | ||
|
||
RUN rustup override set nightly && \ | ||
rustup component add llvm-tools-preview && \ | ||
cargo install grcov | ||
|
||
ENV RUSTFLAGS="-Zinstrument-coverage" \ | ||
LLVM_PROFILE_FILE="stacks-blockchain-%p-%m.profraw" | ||
|
||
RUN cargo test --no-run --workspace && \ | ||
cargo build --workspace | ||
|
||
ENV BITCOIND_TEST 1 | ||
RUN cd testnet/stacks-node && cargo test --release --features prod-genesis-chainstate -- --test-threads 1 --ignored neon_integrations::bitcoind_integration_test | ||
|
||
RUN grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info | ||
|
||
FROM scratch AS export-stage | ||
COPY --from=test /src/lcov.info / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.