Skip to content

Commit 475e9fd

Browse files
committed
Merge branch 'feat/update-cargo-versions' into feat/build-time-git-consts
2 parents 3872c8f + 7c396ea commit 475e9fd

File tree

412 files changed

+18068
-13810
lines changed

Some content is hidden

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

412 files changed

+18068
-13810
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[alias]
22
stacks-node = "run --package stacks-node --"
33
fmt-stacks = "fmt -- --config group_imports=StdExternalCrate,imports_granularity=Module"
4+
clippy-stacks = "clippy -p libstackerdb -p stacks-signer -p pox-locking -p clarity -p libsigner -p stacks-common --no-deps --tests --all-features -- -D warnings"
45

56
# Uncomment to improve performance slightly, at the cost of portability
67
# * Note that native binaries may not run on CPUs that are different from the build machine

.github/workflows/bitcoin-tests.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
# - tests::neon_integrations::size_overflow_unconfirmed_microblocks_integration_test
5555
# - tests::neon_integrations::size_overflow_unconfirmed_stream_microblocks_integration_test
5656
# - tests::neon_integrations::runtime_overflow_unconfirmed_microblocks_integration_test
57+
# - tests::epoch_25::microblocks_disabled
5758
# Disable this flaky test. Microblocks are no longer supported anyways.
5859
# - tests::neon_integrations::microblock_large_tx_integration_test_FLAKY
5960
- tests::neon_integrations::miner_submit_twice
@@ -80,7 +81,6 @@ jobs:
8081
- tests::neon_integrations::bitcoin_reorg_flap
8182
- tests::neon_integrations::bitcoin_reorg_flap_with_follower
8283
- tests::neon_integrations::start_stop_bitcoind
83-
- tests::epoch_25::microblocks_disabled
8484
- tests::should_succeed_handling_malformed_and_valid_txs
8585
- tests::nakamoto_integrations::simple_neon_integration
8686
- tests::nakamoto_integrations::flash_blocks_on_epoch_3
@@ -89,7 +89,8 @@ jobs:
8989
- tests::nakamoto_integrations::miner_writes_proposed_block_to_stackerdb
9090
- tests::nakamoto_integrations::correct_burn_outs
9191
- tests::nakamoto_integrations::vote_for_aggregate_key_burn_op
92-
- tests::nakamoto_integrations::follower_bootup
92+
- tests::nakamoto_integrations::follower_bootup_simple
93+
- tests::nakamoto_integrations::follower_bootup_custom_chain_id
9394
- tests::nakamoto_integrations::forked_tenure_is_ignored
9495
- tests::nakamoto_integrations::nakamoto_attempt_time
9596
- tests::nakamoto_integrations::skip_mining_long_tx
@@ -124,15 +125,29 @@ jobs:
124125
- tests::signer::v0::continue_after_tenure_extend
125126
- tests::signer::v0::tenure_extend_after_idle_signers
126127
- tests::signer::v0::tenure_extend_after_idle_miner
128+
- tests::signer::v0::tenure_extend_after_failed_miner
127129
- tests::signer::v0::tenure_extend_succeeds_after_rejected_attempt
128130
- tests::signer::v0::stx_transfers_dont_effect_idle_timeout
129131
- tests::signer::v0::idle_tenure_extend_active_mining
130132
- tests::signer::v0::multiple_miners_with_custom_chain_id
131133
- tests::signer::v0::block_commit_delay
132134
- tests::signer::v0::continue_after_fast_block_no_sortition
133135
- tests::signer::v0::block_validation_response_timeout
136+
- tests::signer::v0::block_validation_pending_table
137+
- tests::signer::v0::new_tenure_while_validating_previous_scenario
134138
- tests::signer::v0::tenure_extend_after_bad_commit
135139
- tests::signer::v0::block_proposal_max_age_rejections
140+
- tests::signer::v0::global_acceptance_depends_on_block_announcement
141+
- tests::signer::v0::no_reorg_due_to_successive_block_validation_ok
142+
- tests::signer::v0::incoming_signers_ignore_block_proposals
143+
- tests::signer::v0::outgoing_signers_ignore_block_proposals
144+
- tests::signer::v0::injected_signatures_are_ignored_across_boundaries
145+
- tests::signer::v0::fast_sortition
146+
- tests::signer::v0::single_miner_empty_sortition
147+
- tests::signer::v0::multiple_miners_empty_sortition
148+
- tests::signer::v0::block_proposal_timeout
149+
- tests::signer::v0::rejected_blocks_count_towards_miner_validity
150+
- tests::signer::v0::allow_reorg_within_first_proposal_burn_block_timing_secs
136151
- tests::nakamoto_integrations::burn_ops_integration_test
137152
- tests::nakamoto_integrations::check_block_heights
138153
- tests::nakamoto_integrations::clarity_burn_state
@@ -143,6 +158,7 @@ jobs:
143158
- tests::nakamoto_integrations::mock_mining
144159
- tests::nakamoto_integrations::multiple_miners
145160
- tests::nakamoto_integrations::follower_bootup_across_multiple_cycles
161+
- tests::nakamoto_integrations::nakamoto_lockup_events
146162
- tests::nakamoto_integrations::utxo_check_on_startup_panic
147163
- tests::nakamoto_integrations::utxo_check_on_startup_recover
148164
- tests::nakamoto_integrations::v3_signer_api_endpoint
@@ -151,6 +167,8 @@ jobs:
151167
- tests::nakamoto_integrations::sip029_coinbase_change
152168
- tests::nakamoto_integrations::clarity_cost_spend_down
153169
- tests::nakamoto_integrations::v3_blockbyheight_api_endpoint
170+
- tests::nakamoto_integrations::mine_invalid_principal_from_consensus_buff
171+
- tests::nakamoto_integrations::test_tenure_extend_from_flashblocks
154172
# TODO: enable these once v1 signer is supported by a new nakamoto epoch
155173
# - tests::signer::v1::dkg
156174
# - tests::signer::v1::sign_request_rejected

.github/workflows/ci.yml

Lines changed: 35 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,10 @@ jobs:
112112
## - commit to either (development, master) branch
113113
create-cache:
114114
if: |
115-
needs.check-release.outputs.is_release == 'true' || (
116-
github.event_name == 'workflow_dispatch' ||
117-
github.event_name == 'pull_request' ||
118-
github.event_name == 'merge_group' ||
119-
(
120-
contains('
121-
refs/heads/master
122-
refs/heads/develop
123-
refs/heads/next
124-
', github.event.pull_request.head.ref) &&
125-
github.event_name == 'push'
126-
)
127-
)
115+
needs.check-release.outputs.is_release == 'true' ||
116+
github.event_name == 'workflow_dispatch' ||
117+
github.event_name == 'pull_request' ||
118+
github.event_name == 'merge_group'
128119
name: Create Test Cache
129120
needs:
130121
- rustfmt
@@ -144,64 +135,55 @@ jobs:
144135
## - commit to either (development, next, master) branch
145136
stacks-core-tests:
146137
if: |
147-
needs.check-release.outputs.is_release == 'true' || (
148-
github.event_name == 'workflow_dispatch' ||
149-
github.event_name == 'pull_request' ||
150-
github.event_name == 'merge_group' ||
151-
(
152-
contains('
153-
refs/heads/master
154-
refs/heads/develop
155-
refs/heads/next
156-
', github.event.pull_request.head.ref) &&
157-
github.event_name == 'push'
158-
)
159-
)
138+
github.event_name == 'workflow_dispatch' ||
139+
github.event_name == 'pull_request' ||
140+
github.event_name == 'merge_group'
160141
name: Stacks Core Tests
161142
needs:
162143
- rustfmt
163144
- create-cache
164145
- check-release
165146
uses: ./.github/workflows/stacks-core-tests.yml
166147

148+
## Checks to run on built binaries
149+
##
150+
## Runs when:
151+
## - it is a release run
152+
## or:
153+
## - it is not a release run
154+
## and any of:
155+
## - this workflow is called manually
156+
## - PR is opened
157+
## - PR added to merge queue
158+
## - commit to either (development, next, master) branch
159+
stacks-core-build-tests:
160+
if: |
161+
github.event_name == 'workflow_dispatch' ||
162+
github.event_name == 'pull_request' ||
163+
github.event_name == 'merge_group'
164+
name: Stacks Core Build Tests
165+
needs:
166+
- rustfmt
167+
- check-release
168+
uses: ./.github/workflows/core-build-tests.yml
169+
167170
bitcoin-tests:
168171
if: |
169-
needs.check-release.outputs.is_release == 'true' || (
170-
github.event_name == 'workflow_dispatch' ||
171-
github.event_name == 'pull_request' ||
172-
github.event_name == 'merge_group' ||
173-
(
174-
contains('
175-
refs/heads/master
176-
refs/heads/develop
177-
refs/heads/next
178-
', github.event.pull_request.head.ref) &&
179-
github.event_name == 'push'
180-
)
181-
)
172+
github.event_name == 'workflow_dispatch' ||
173+
github.event_name == 'pull_request' ||
174+
github.event_name == 'merge_group'
182175
name: Bitcoin Tests
183176
needs:
184177
- rustfmt
185178
- create-cache
186179
- check-release
187180
uses: ./.github/workflows/bitcoin-tests.yml
188181

189-
190182
p2p-tests:
191183
if: |
192-
needs.check-release.outputs.is_release == 'true' || (
193-
github.event_name == 'workflow_dispatch' ||
194-
github.event_name == 'pull_request' ||
195-
github.event_name == 'merge_group' ||
196-
(
197-
contains('
198-
refs/heads/master
199-
refs/heads/develop
200-
refs/heads/next
201-
', github.event.pull_request.head.ref) &&
202-
github.event_name == 'push'
203-
)
204-
)
184+
github.event_name == 'workflow_dispatch' ||
185+
github.event_name == 'pull_request' ||
186+
github.event_name == 'merge_group'
205187
name: P2P Tests
206188
needs:
207189
- rustfmt

.github/workflows/clippy.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## Perform Clippy checks - currently set to defaults
2+
## https://github.com/rust-lang/rust-clippy#usage
3+
## https://rust-lang.github.io/rust-clippy/master/index.html
4+
##
5+
name: Clippy Checks
6+
7+
# Only run when:
8+
# - PRs are (re)opened against develop branch
9+
on:
10+
pull_request:
11+
branches:
12+
- develop
13+
types:
14+
- opened
15+
- reopened
16+
- synchronize
17+
18+
jobs:
19+
clippy_check:
20+
name: Clippy Check
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout the latest code
24+
id: git_checkout
25+
uses: actions/checkout@v3
26+
- name: Define Rust Toolchain
27+
id: define_rust_toolchain
28+
run: echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV
29+
- name: Setup Rust Toolchain
30+
id: setup_rust_toolchain
31+
uses: actions-rust-lang/setup-rust-toolchain@v1
32+
with:
33+
toolchain: ${{ env.RUST_TOOLCHAIN }}
34+
components: clippy
35+
- name: Clippy
36+
id: clippy
37+
run: cargo clippy-stacks
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Core build tests
2+
3+
# Only run when:
4+
# - PRs are (re)opened against develop branch
5+
on:
6+
workflow_call:
7+
8+
jobs:
9+
check-consts:
10+
name: Check the constants from stacks-inspect
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout the latest code
14+
id: git_checkout
15+
uses: actions/checkout@v3
16+
- name: Define Rust Toolchain
17+
id: define_rust_toolchain
18+
run: echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV
19+
- name: Setup Rust Toolchain
20+
id: setup_rust_toolchain
21+
uses: actions-rust-lang/setup-rust-toolchain@v1
22+
with:
23+
toolchain: ${{ env.RUST_TOOLCHAIN }}
24+
- name: Build the binaries
25+
id: build
26+
run: |
27+
cargo build
28+
- name: Dump constants JSON
29+
id: consts-dump
30+
run: cargo run --bin stacks-inspect -- dump-consts | tee out.json
31+
- name: Set expected constants JSON
32+
id: expects-json
33+
run: diff out.json ./sample/expected_consts.json

.github/workflows/docs-pr.yml

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

0 commit comments

Comments
 (0)