Skip to content

Commit 99a809e

Browse files
authored
Merge branch 'develop' into 3.3.0.0.1-to-develop
2 parents 17d353e + 17a221c commit 99a809e

File tree

153 files changed

+4952
-4141
lines changed

Some content is hidden

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

153 files changed

+4952
-4141
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
id: exclude
5757
run: |
5858
cat << 'EOF' > raw_exclude.txt
59+
# The following tests are excluded from CI runs. Some of these may be
60+
# worth investigating adding back into the CI
5961
tests::nakamoto_integrations::consensus_hash_event_dispatcher
6062
tests::neon_integrations::atlas_integration_test
6163
tests::neon_integrations::atlas_stress_integration_test
@@ -72,6 +74,8 @@ jobs:
7274
tests::signer::v0::tenure_extend_after_2_bad_commits
7375
tests::stackerdb::test_stackerdb_event_observer
7476
tests::stackerdb::test_stackerdb_load_store
77+
# Epoch tests are covered by the epoch-tests CI workflow, and don't need to run
78+
# on every PR (for older epochs)
7579
tests::epoch_205::test_cost_limit_switch_version205
7680
tests::epoch_205::test_dynamic_db_method_costs
7781
tests::epoch_205::test_exact_block_costs
@@ -93,7 +97,9 @@ jobs:
9397
tests::epoch_23::trait_invocation_behavior
9498
tests::epoch_24::fix_to_pox_contract
9599
tests::epoch_24::verify_auto_unlock_behavior
100+
# Disable this flaky test. We don't need continue testing Epoch 2 -> 3 transition
96101
tests::nakamoto_integrations::flash_blocks_on_epoch_3_FLAKY
102+
# These mempool tests take a long time to run, and are meant to be run manually
97103
tests::nakamoto_integrations::large_mempool_original_constant_fee
98104
tests::nakamoto_integrations::large_mempool_original_random_fee
99105
tests::nakamoto_integrations::large_mempool_next_constant_fee
@@ -118,16 +124,12 @@ jobs:
118124
jq -e 'type == "array"' ignored_tests.json > /dev/null
119125
jq -e 'type == "array"' exclude.json > /dev/null
120126
121-
# Load exclude list into a jq variable
122-
exclude_array=$(cat exclude.json)
127+
# Keep only ignored tests NOT in exclude list
128+
# First sort the inputs to use comm -23
129+
jq -r '.[]' ignored_tests.json | sort > ignored_sorted.txt
130+
jq -r '.[]' exclude.json | sort > exclude_sorted.txt
123131
124-
# Filter ignored tests: keep only those NOT in exclude list
125-
jq -c --argjson exclude "$exclude_array" '
126-
.[] | select($exclude | contains([.]) | not)
127-
' ignored_tests.json > filtered_tests.json
128-
129-
# Convert to plain text lines
130-
jq -r '.' filtered_tests.json > filtered.txt
132+
comm -23 ignored_sorted.txt exclude_sorted.txt > filtered.txt
131133
132134
echo "Final test count: $(wc -l < filtered.txt)"
133135

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,10 @@ impl<'a, 'b> ReadOnlyChecker<'a, 'b> {
498498
///
499499
/// # Errors
500500
///
501-
/// - Returns CheckErrors::WriteAttemptedInReadOnly if there is a read-only
501+
/// - Returns CheckErrorKind::WriteAttemptedInReadOnly if there is a read-only
502502
/// violation, i.e. if some function marked read-only attempts to modify
503503
/// the chainstate.
504-
pub fn run(&mut self, contract_analysis: &ContractAnalysis) -> Result<(), CheckError>
504+
pub fn run(&mut self, contract_analysis: &ContractAnalysis) -> Result<(), StaticCheckError>
505505
```
506506

507507
This comment is considered positive because it explains the contract of the function in pseudo-code. Someone who understands the constructs mentioned could, e.g., write a test for this method from this description.

clarity-types/src/errors/analysis.rs

Lines changed: 391 additions & 188 deletions
Large diffs are not rendered by default.

clarity-types/src/errors/ast.rs

Lines changed: 182 additions & 83 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)