forked from stacks-network/stacks-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jbencin/multisig-order-independence
Multisig order independence
- Loading branch information
Showing
433 changed files
with
64,773 additions
and
22,295 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
FROM rust:bullseye as build | ||
FROM rust:bookworm as build | ||
|
||
ARG STACKS_NODE_VERSION="No Version Info" | ||
ARG GIT_BRANCH='No Branch Info' | ||
ARG GIT_COMMIT='No Commit Info' | ||
ARG BUILD_DIR=/build | ||
ARG TARGET=x86_64-unknown-linux-gnu | ||
# Allow us to override the default `--target-cpu` for the given target triplet | ||
ARG TARGET_CPU | ||
ENV RUSTFLAGS="${TARGET_CPU:+${RUSTFLAGS} -Ctarget-cpu=${TARGET_CPU}}" | ||
WORKDIR /src | ||
|
||
COPY . . | ||
|
||
RUN apt-get update && apt-get install -y git libclang-dev | ||
|
||
# Run all the build steps in ramdisk in an attempt to speed things up | ||
RUN target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \ | ||
RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \ | ||
&& cd ${BUILD_DIR} \ | ||
&& rustup target add ${TARGET} \ | ||
&& rustup component add rustfmt \ | ||
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} \ | ||
&& cargo build --features monitoring_prom,slog_json,portable --release --workspace --target ${TARGET} \ | ||
&& mkdir -p /out \ | ||
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out | ||
|
||
FROM --platform=${TARGETPLATFORM} debian:bookworm | ||
COPY --from=build /out/stacks-node /bin/ | ||
COPY --from=build /out/stacks-node /out/stacks-signer /bin/ | ||
CMD ["stacks-node", "mainnet"] |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
## Github workflow to run atlas tests | ||
|
||
name: Tests::Atlas | ||
|
||
on: | ||
workflow_call: | ||
|
||
## env vars are transferred to composite action steps | ||
env: | ||
BITCOIND_TEST: 1 | ||
RUST_BACKTRACE: full | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 15 | ||
TEST_TIMEOUT: 30 | ||
|
||
concurrency: | ||
group: atlas-tests-${{ github.head_ref || github.ref || github.run_id}} | ||
## Only cancel in progress if this is for a PR | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
# Atlas integration tests with code coverage | ||
atlas-tests: | ||
name: Atlas Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
## Continue with the test matrix even if we've had a failure | ||
fail-fast: false | ||
## Run a maximum of 2 concurrent tests from the test matrix | ||
max-parallel: 2 | ||
matrix: | ||
test-name: | ||
- tests::neon_integrations::atlas_integration_test | ||
- tests::neon_integrations::atlas_stress_integration_test | ||
steps: | ||
## Setup test environment | ||
- name: Setup Test Environment | ||
id: setup_tests | ||
uses: stacks-network/actions/stacks-core/testenv@main | ||
with: | ||
btc-version: "25.0" | ||
|
||
## Run test matrix using restored cache of archive file | ||
## - Test will timeout after env.TEST_TIMEOUT minutes | ||
- name: Run Tests | ||
id: run_tests | ||
timeout-minutes: ${{ fromJSON(env.TEST_TIMEOUT) }} | ||
uses: stacks-network/actions/stacks-core/run-tests@main | ||
with: | ||
test-name: ${{ matrix.test-name }} | ||
|
||
## Create and upload code coverage file | ||
- name: Code Coverage | ||
id: codecov | ||
uses: stacks-network/actions/codecov@main | ||
with: | ||
test-name: ${{ matrix.test-name }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.