Skip to content

Commit b34b76a

Browse files
authored
Merge pull request #6004 from csgui/clarity-wasm-develop-sync
Clarity wasm develop sync
2 parents fa0a21c + c885fe6 commit b34b76a

File tree

145 files changed

+7246
-1720
lines changed

Some content is hidden

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

145 files changed

+7246
-1720
lines changed

.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/workflows/bitcoin-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ jobs:
106106
- test-name: tests::epoch_24::verify_auto_unlock_behavior
107107
# Disable this flaky test. We don't need continue testing Epoch 2 -> 3 transition
108108
- 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
109116

110117
steps:
111118
## Setup test environment

.github/workflows/ci.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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/clippy.yml

Lines changed: 4 additions & 1 deletion
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
@@ -34,4 +37,4 @@ jobs:
3437
components: clippy
3538
- name: Clippy
3639
id: clippy
37-
run: cargo clippy-stacks
40+
run: cargo clippy-stacks

.github/workflows/github-release.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ on:
2929
description: "True if it is a signer release"
3030
required: true
3131
type: string
32-
secrets:
33-
GH_TOKEN:
34-
required: true
3532

3633
concurrency:
3734
group: github-release-${{ github.head_ref || github.ref }}
@@ -41,6 +38,21 @@ concurrency:
4138
run-name: ${{ inputs.node_tag || inputs.signer_tag }}
4239

4340
jobs:
41+
## This job's sole purpose is trigger a secondary approval outside of the matrix jobs below.
42+
## - If this job isn't approved to run, then the subsequent jobs will also not run - for this reason, we always exit 0
43+
## - `andon-cord` requires the repo environment "Build Release", which will trigger a secondary approval step before running this workflow.
44+
andon-cord:
45+
if: |
46+
inputs.node_tag != '' ||
47+
inputs.signer_tag != ''
48+
name: Andon Cord
49+
runs-on: ubuntu-latest
50+
environment: "Build Release"
51+
steps:
52+
- name: Check Approval
53+
id: check
54+
run: |
55+
exit 0
4456
## Build arch dependent binaries from source
4557
##
4658
## Runs when the following is true:
@@ -51,7 +63,8 @@ jobs:
5163
inputs.signer_tag != ''
5264
name: Build Binaries
5365
runs-on: ubuntu-latest
54-
environment: "Build Release"
66+
needs:
67+
- andon-cord
5568
strategy:
5669
## Run a maximum of 10 builds concurrently, using the matrix defined in inputs.arch
5770
max-parallel: 10
@@ -94,7 +107,10 @@ jobs:
94107
name: Create Release
95108
runs-on: ubuntu-latest
96109
needs:
110+
- andon-cord
97111
- build-binaries
112+
permissions:
113+
contents: write
98114
steps:
99115
## Creates releases
100116
- name: Create Release
@@ -106,8 +122,7 @@ jobs:
106122
signer_docker_tag: ${{ inputs.signer_docker_tag }}
107123
is_node_release: ${{ inputs.is_node_release }}
108124
is_signer_release: ${{ inputs.is_signer_release }}
109-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
110-
125+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111126

112127
## Builds arch dependent Docker images from binaries
113128
##
@@ -121,6 +136,7 @@ jobs:
121136
name: Docker Image (Binary)
122137
runs-on: ubuntu-latest
123138
needs:
139+
- andon-cord
124140
- build-binaries
125141
- create-release
126142
strategy:
@@ -148,17 +164,23 @@ jobs:
148164
## Create the downstream PR for the release branch to master,develop
149165
create-pr:
150166
if: |
151-
inputs.node_tag != '' ||
152-
inputs.signer_tag != ''
167+
!contains(github.ref, '-rc') &&
168+
(
169+
inputs.node_tag != '' ||
170+
inputs.signer_tag != ''
171+
)
153172
name: Create Downstream PR (${{ github.ref_name }})
154173
runs-on: ubuntu-latest
155174
needs:
175+
- andon-cord
156176
- build-binaries
157177
- create-release
158178
- docker-image
179+
permissions:
180+
pull-requests: write
159181
steps:
160182
- name: Open Downstream PR
161183
id: create-pr
162184
uses: stacks-network/actions/stacks-core/release/downstream-pr@main
163185
with:
164-
token: ${{ secrets.GH_TOKEN }}
186+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/image-build-source.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
image:
2222
name: Build Image
2323
runs-on: ubuntu-latest
24+
## Requires the repo environment "Push to Docker", which will trigger a secondary approval step before running this workflow.
25+
environment: "Push to Docker"
2426
steps:
2527
## Increase swapfile
2628
- name: Increase swapfile

.gitmodules

Whitespace-only changes.

.vscode/settings.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
2-
"lldb.launch.sourceLanguages": ["rust"],
3-
"rust-analyzer.runnables.extraEnv": {
4-
"BITCOIND_TEST": "1"
5-
},
6-
"rust-analyzer.rustfmt.extraArgs": ["+nightly"]
2+
"lldb.launch.sourceLanguages": [
3+
"rust"
4+
],
5+
"rust-analyzer.runnables.extraEnv": {
6+
"BITCOIND_TEST": "1"
7+
},
8+
"rust-analyzer.rustfmt.extraArgs": [
9+
"+nightly"
10+
],
11+
"files.eol": "\n"
712
}

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to the versioning scheme outlined in the [README.md](README.md).
77

8-
## [Unreleased]
8+
## [3.1.0.0.8]
99

1010
### Added
1111

1212
- Add fee information to transaction log ending with "success" or "skipped", while building a new block
13+
- Add `max_execution_time_secs` to miner config for limiting duration of contract calls
1314
- When a miner's config file is updated (ie with a new fee rate), a new block commit is issued using
1415
the new values ([#5924](https://github.com/stacks-network/stacks-core/pull/5924))
16+
- Add `txindex` configuration option enabling the storage (and querying via api) of transactions. Note: the old STACKS_TRANSACTION_LOG environment var configuration is no longer available.
1517

1618
### Changed
1719

1820
- When a miner times out waiting for signatures, it will re-propose the same block instead of building a new block ([#5877](https://github.com/stacks-network/stacks-core/pull/5877))
1921
- Improve tenure downloader trace verbosity applying proper logging level depending on the tenure state ("debug" if unconfirmed, "info" otherwise) ([#5871](https://github.com/stacks-network/stacks-core/issues/5871))
2022
- Remove warning log about missing UTXOs when a node is configured as `miner` with `mock_mining` mode enabled ([#5841](https://github.com/stacks-network/stacks-core/issues/5841))
23+
- Deprecated the `wait_on_interim_blocks` option in the miner config file. This option is no longer needed, as the miner will always wait for interim blocks to be processed before mining a new block. To wait extra time in between blocks, use the `min_time_between_blocks_ms` option instead.
2124

2225
## [3.1.0.0.7]
2326

0 commit comments

Comments
 (0)