Skip to content

Commit

Permalink
Merge pull request #2295 from blockstack/next
Browse files Browse the repository at this point in the history
Merge `next` into `master`
  • Loading branch information
diwakergupta authored Jan 8, 2021
2 parents 00284ee + 7b085c5 commit 444e71f
Show file tree
Hide file tree
Showing 63 changed files with 57,245 additions and 70,061 deletions.
16 changes: 16 additions & 0 deletions .github/actions/bitcoin-int-tests/Dockerfile.atlas-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM rust:buster

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/

ENV BITCOIND_TEST 1
WORKDIR /src/testnet/stacks-node
RUN cargo test -- --test-threads 1 --ignored tests::neon_integrations::atlas_integration_test
12 changes: 11 additions & 1 deletion .github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ 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
RUN cd testnet/stacks-node && cargo test -- --test-threads 1 --ignored
WORKDIR /src/testnet/stacks-node
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::size_check_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::microblock_integration_test
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
27 changes: 27 additions & 0 deletions .github/workflows/bitcoin-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: stacks-bitcoin-integration-tests

# Only run on PRs
on:
pull_request:

jobs:
# Run sampled genesis tests
sampled-genesis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: All integration tests with sampled genesis
env:
DOCKER_BUILDKIT: 1
run: docker build -f ./.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests .
atlas-test:
# disable this job/test for now, since we haven't seen this pass
# on github actions in a while
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: All integration tests with sampled genesis
env:
DOCKER_BUILDKIT: 1
run: docker build -f ./.github/actions/bitcoin-int-tests/Dockerfile.atlas-test .
10 changes: 0 additions & 10 deletions .github/workflows/stacks-blockchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ jobs:
DOCKER_BUILDKIT: 1
run: docker build -f ./.github/actions/bitcoin-int-tests/Dockerfile.large-genesis .

# Run sampled genesis tests
sampled-genesis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: All integration tests with sampled genesis
env:
DOCKER_BUILDKIT: 1
run: docker build -f ./.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests .

# Run net-tests
nettest:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 444e71f

Please sign in to comment.