Skip to content

Commit 24a3fff

Browse files
authored
Merge branch 'develop' into chore/depend-on-clarity-backing-store-interface
2 parents c2fad40 + 59213ab commit 24a3fff

File tree

250 files changed

+32909
-18635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+32909
-18635
lines changed

.cargo/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ clippy-stacks = "clippy -p libstackerdb -p stacks-signer -p pox-locking -p clari
1212
#[target.x86_64-unknown-linux-gnu]
1313
#linker = "/usr/bin/clang"
1414
#rustflags = ["-Clink-arg=-fuse-ld=lld", "-Clink-arg=-Wl,--no-rosegment"]
15-

.dockerignore

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
Dockerfile*
22
target
3-
integration_tests/blockstack-consensus-data/
4-
integration_tests/test-out/
5-
api/data
6-
.git
7-
.venv
83
.dockerignore
9-
testnet/index.html
10-
testnet.log
11-
testnet-logs*
12-
legacy
13-
build-scripts
14-
dist

.gitattributes

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
legacy/* linguist-vendored
2-
* text=lf
2+
# Enforcing 'lf' eol mainly for:
3+
# - 'stx-genesis' package, where txt files need hash computation and comparison
4+
# - 'clarity' package, where clarity language is sensitive to line endings for .clar files
5+
# anyhow, setting eol for all text files to have a homogeneous management over the whole code base
6+
* text eol=lf

.github/CODEOWNERS

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# These owners will be the default owners for everything in
2+
# the repo. Unless a later match takes precedence,
3+
#
4+
# require both blockchain-team-codeowners and blockchain-team to review all PR's not specifically matched below
5+
* @stacks-network/blockchain-team-codeowners @stacks-network/blockchain-team
6+
7+
8+
# Signer code
9+
# require both blockchain-team-codeowners and blockchain-team-signer to review PR's for the signer folder(s)
10+
libsigner/**/*.rs @stacks-network/blockchain-team-codeowners @stacks-network/blockchain-team-signer
11+
stacks-signer/**/*.rs @stacks-network/blockchain-team-codeowners @stacks-network/blockchain-team-signer
12+
13+
# CI workflows
14+
# require both blockchain-team and blockchain-team-ci teams to review PR's modifying CI workflows
15+
/.github/workflows/ @stacks-network/blockchain-team @stacks-network/blockchain-team-ci
16+
/.github/actions/ @stacks-network/blockchain-team @stacks-network/blockchain-team-ci

.github/actions/dockerfiles/Dockerfile.debian-source

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/bitcoin-tests.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,30 +70,13 @@ jobs:
7070
- test-name: tests::neon_integrations::lockup_integration
7171
- test-name: tests::neon_integrations::most_recent_utxo_integration_test
7272
- test-name: tests::neon_integrations::run_with_custom_wallet
73-
- test-name: tests::neon_integrations::test_competing_miners_build_anchor_blocks_and_microblocks_on_same_chain
7473
- test-name: tests::neon_integrations::test_competing_miners_build_anchor_blocks_on_same_chain_without_rbf
7574
- test-name: tests::neon_integrations::test_one_miner_build_anchor_blocks_on_same_chain_without_rbf
7675
- test-name: tests::signer::v0::tenure_extend_after_2_bad_commits
7776
- test-name: tests::stackerdb::test_stackerdb_event_observer
7877
- test-name: tests::stackerdb::test_stackerdb_load_store
79-
# Microblock tests that are no longer needed on every CI run
80-
# (microblocks are unsupported starting in Epoch 2.5)
81-
- test-name: tests::neon_integrations::bad_microblock_pubkey
82-
- test-name: tests::neon_integrations::microblock_fork_poison_integration_test
83-
- test-name: tests::neon_integrations::microblock_integration_test
84-
- test-name: tests::neon_integrations::microblock_large_tx_integration_test_FLAKY
85-
- test-name: tests::neon_integrations::microblock_limit_hit_integration_test
86-
- test-name: tests::neon_integrations::microblock_miner_multiple_attempts
87-
- test-name: tests::neon_integrations::test_problematic_microblocks_are_not_mined
88-
- test-name: tests::neon_integrations::test_problematic_microblocks_are_not_relayed_or_stored
89-
- test-name: tests::neon_integrations::runtime_overflow_unconfirmed_microblocks_integration_test
90-
- test-name: tests::neon_integrations::size_overflow_unconfirmed_invalid_stream_microblocks_integration_test
91-
- test-name: tests::neon_integrations::size_overflow_unconfirmed_microblocks_integration_test
92-
- test-name: tests::neon_integrations::size_overflow_unconfirmed_stream_microblocks_integration_test
93-
- test-name: tests::epoch_25::microblocks_disabled
9478
# Epoch tests are covered by the epoch-tests CI workflow, and don't need to run
9579
# on every PR (for older epochs)
96-
- test-name: tests::epoch_205::bigger_microblock_streams_in_2_05
9780
- test-name: tests::epoch_205::test_cost_limit_switch_version205
9881
- test-name: tests::epoch_205::test_dynamic_db_method_costs
9982
- test-name: tests::epoch_205::test_exact_block_costs
@@ -123,6 +106,13 @@ jobs:
123106
- test-name: tests::epoch_24::verify_auto_unlock_behavior
124107
# Disable this flaky test. We don't need continue testing Epoch 2 -> 3 transition
125108
- test-name: tests::nakamoto_integrations::flash_blocks_on_epoch_3_FLAKY
109+
# These mempool tests take a long time to run, and are meant to be run manually
110+
- test-name: tests::nakamoto_integrations::large_mempool_original_constant_fee
111+
- test-name: tests::nakamoto_integrations::large_mempool_original_random_fee
112+
- test-name: tests::nakamoto_integrations::large_mempool_next_constant_fee
113+
- test-name: tests::nakamoto_integrations::large_mempool_next_random_fee
114+
- test-name: tests::nakamoto_integrations::larger_mempool
115+
- test-name: tests::signer::v0::larger_mempool
126116

127117
steps:
128118
## Setup test environment

.github/workflows/ci.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ on:
1919
- opened
2020
- reopened
2121
- synchronize
22-
- ready_for_review
2322

2423
defaults:
2524
run:
@@ -94,6 +93,7 @@ jobs:
9493
needs:
9594
- rustfmt
9695
- check-release
96+
secrets: inherit
9797
uses: ./.github/workflows/github-release.yml
9898
with:
9999
node_tag: ${{ needs.check-release.outputs.node_tag }}
@@ -102,22 +102,6 @@ jobs:
102102
signer_docker_tag: ${{ needs.check-release.outputs.signer_docker_tag }}
103103
is_node_release: ${{ needs.check-release.outputs.is_node_release }}
104104
is_signer_release: ${{ needs.check-release.outputs.is_signer_release }}
105-
secrets: inherit
106-
107-
## Build and push Debian image built from source
108-
##
109-
## Runs when:
110-
## - it is not a node or signer-only release run
111-
docker-image:
112-
if: |
113-
needs.check-release.outputs.is_node_release != 'true' ||
114-
needs.check-release.outputs.is_signer_release != 'true'
115-
name: Docker Image (Source)
116-
uses: ./.github/workflows/image-build-source.yml
117-
needs:
118-
- rustfmt
119-
- check-release
120-
secrets: inherit
121105

122106
## Create a reusable cache for tests
123107
##

.github/workflows/clarity-js-sdk-pr.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/clippy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ name: Clippy Checks
77
# Only run when:
88
# - PRs are (re)opened against develop branch
99
on:
10+
merge_group:
11+
types:
12+
- checks_requested
1013
pull_request:
1114
branches:
1215
- develop
@@ -22,16 +25,16 @@ jobs:
2225
steps:
2326
- name: Checkout the latest code
2427
id: git_checkout
25-
uses: actions/checkout@v3
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2629
- name: Define Rust Toolchain
2730
id: define_rust_toolchain
2831
run: echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV
2932
- name: Setup Rust Toolchain
3033
id: setup_rust_toolchain
31-
uses: actions-rust-lang/setup-rust-toolchain@v1
34+
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
3235
with:
3336
toolchain: ${{ env.RUST_TOOLCHAIN }}
3437
components: clippy
3538
- name: Clippy
3639
id: clippy
37-
run: cargo clippy-stacks
40+
run: cargo clippy-stacks

.github/workflows/core-build-tests.yml

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,56 @@ name: Core build tests
44
# - PRs are (re)opened against develop branch
55
on:
66
workflow_call:
7-
7+
88
jobs:
99
check-consts:
1010
name: Check the constants from stacks-inspect
1111
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
shell: bash
15+
1216
steps:
1317
- name: Checkout the latest code
1418
id: git_checkout
15-
uses: actions/checkout@v3
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1620
- name: Define Rust Toolchain
1721
id: define_rust_toolchain
1822
run: echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV
1923
- name: Setup Rust Toolchain
2024
id: setup_rust_toolchain
21-
uses: actions-rust-lang/setup-rust-toolchain@v1
25+
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
2226
with:
2327
toolchain: ${{ env.RUST_TOOLCHAIN }}
24-
- name: Build the binaries
25-
id: build
28+
29+
## run cargo check steps
30+
- name: Cargo Check
31+
id: cargo_check
32+
run: |
33+
cargo check
34+
35+
- name: Cargo Check (monitoring_prom)
36+
id: cargo_check_prom
37+
run: |
38+
cargo check --features monitoring_prom
39+
40+
- name: Cargo Check (clarity)
41+
id: cargo_check_clarity
2642
run: |
27-
cargo build
43+
cargo check -p clarity --no-default-features
44+
45+
- name: Cargo Check (stacks-common)
46+
id: cargo_check_stacks-common
47+
run: |
48+
cargo check -p stacks-common --no-default-features
49+
2850
- name: Dump constants JSON
2951
id: consts-dump
30-
run: cargo run --bin stacks-inspect -- dump-consts | tee out.json
31-
- name: Set expected constants JSON
52+
run: |
53+
cargo run --bin stacks-inspect -- dump-consts | tee out.json
54+
55+
## output any diff to the github job summary
56+
- name: Compare expected constants JSON
3257
id: expects-json
33-
run: diff out.json ./sample/expected_consts.json
58+
run: |
59+
diff out.json ./sample/expected_consts.json >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)