Skip to content

Commit 62b00f5

Browse files
committed
Merge 2.5.1
2 parents 9d9259b + 76e877f commit 62b00f5

File tree

701 files changed

+24755
-17398
lines changed

Some content is hidden

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

701 files changed

+24755
-17398
lines changed

.flake8

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

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.git_archival.txt export-subst
2+
**/*.lock linguist-generated=false

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
* @Chia-Network/required-reviewers
22
/.github/**/* @Chia-Network/actions-reviewers
33
/PRETTY_GOOD_PRACTICES.md @altendky @Chia-Network/required-reviewers
4-
/pylintrc @altendky @Chia-Network/required-reviewers
54
/tests/ether.py @altendky @Chia-Network/required-reviewers

.github/actionlint.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
self-hosted-runner:
2+
# Labels of self-hosted runner in array of strings.
3+
labels: ["benchmark", "glue-notify"]
4+
5+
# Configuration variables in array of strings defined in your repository or
6+
# organization. `null` means disabling configuration variables check.
7+
# Empty array means no configuration variable is allowed.
8+
config-variables: null
9+
10+
# Configuration for file paths. The keys are glob patterns to match to file
11+
# paths relative to the repository root. The values are the configurations for
12+
# the file paths. Note that the path separator is always '/'.
13+
# The following configurations are available.
14+
#
15+
# "ignore" is an array of regular expression patterns. Matched error messages
16+
# are ignored. This is similar to the "-ignore" command line option.
17+
paths:
18+
# .github/workflows/**/*.yml:
19+
# ignore: []
20+
".github/workflows/*.y*ml":
21+
ignore: ["string should not be empty", ".* SC2002:.*"]
22+
".github/workflows/test-single.yml":
23+
ignore: [
24+
# special case here using a variable as a key in the excludes
25+
'value .*\$\{\{ inputs.matrix_mode \}\}.* in "exclude" does not match in matrix "python" combinations. possible values are',
26+
]

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ updates:
2626
interval: "weekly"
2727
day: "tuesday"
2828
open-pull-requests-limit: 10
29-
rebase-strategy: disabled
29+
rebase-strategy: auto
3030
labels:
3131
- dependencies
3232
- python
3333
- "Changed"
3434
reviewers: ["emlowe", "altendky"]
3535

3636
- package-ecosystem: "github-actions"
37-
directory: /
37+
directories: ["/", ".github/actions/*"]
3838
schedule:
3939
interval: "weekly"
4040
day: "tuesday"

.github/workflows/build-linux-installer-deb.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ permissions:
3939
jobs:
4040
version:
4141
uses: ./.github/workflows/reflow-version.yml
42+
with:
43+
release_type: ${{ inputs.release_type }}
4244

4345
build:
4446
name: Build ${{ matrix.os.arch }}
@@ -128,8 +130,8 @@ jobs:
128130
mkdir "$GITHUB_WORKSPACE"/bladebit
129131
cd "$GITHUB_WORKSPACE"/bladebit
130132
gh release download -R Chia-Network/bladebit "$LATEST_VERSION" -p 'bladebit*-${{ matrix.os.bladebit-suffix }}'
131-
ls *.tar.gz | xargs -I{} bash -c 'tar -xzf {} && rm {}'
132-
ls bladebit* | xargs -I{} chmod +x {}
133+
find . -maxdepth 1 -name '*.tar.gz' -print0 | xargs -0 -I{} bash -c 'tar -xzf {} && rm {}'
134+
find . -maxdepth 1 -name 'bladebit*' -print0 | xargs -0 -I{} chmod +x {}
133135
cd "$OLDPWD"
134136
135137
- uses: ./.github/actions/install
@@ -320,7 +322,7 @@ jobs:
320322
shell: bash
321323
if: matrix.mode.name == 'GUI'
322324
run: |
323-
[ $(stat -c %a:%G:%U /opt/chia/chrome-sandbox) == "4755:root:root" ]
325+
[ "$(stat -c %a:%G:%U /opt/chia/chrome-sandbox)" == "4755:root:root" ]
324326
325327
- name: Remove package
326328
run: |

.github/workflows/build-linux-installer-rpm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ permissions:
3939
jobs:
4040
version:
4141
uses: ./.github/workflows/reflow-version.yml
42+
with:
43+
release_type: ${{ inputs.release_type }}
4244

4345
build:
4446
name: Build amd64 RPM
@@ -123,8 +125,8 @@ jobs:
123125
mkdir "$GITHUB_WORKSPACE"/bladebit
124126
cd "$GITHUB_WORKSPACE"/bladebit
125127
gh release download -R Chia-Network/bladebit "$LATEST_VERSION" -p 'bladebit*-centos-x86-64.tar.gz'
126-
ls *.tar.gz | xargs -I{} bash -c 'tar -xzf {} && rm {}'
127-
ls bladebit* | xargs -I{} chmod +x {}
128+
find . -maxdepth 1 -name '*.tar.gz' -print0 | xargs -0 -I{} bash -c 'tar -xzf {} && rm {}'
129+
find . -maxdepth 1 -name 'bladebit*' -print0 | xargs -0 -I{} chmod +x {}
128130
cd "$OLDPWD"
129131
130132
- uses: ./.github/actions/install

.github/workflows/build-macos-installers.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ permissions:
3939
jobs:
4040
version:
4141
uses: ./.github/workflows/reflow-version.yml
42+
with:
43+
release_type: ${{ inputs.release_type }}
4244

4345
build:
4446
name: Build ${{ matrix.os.name }} DMG
@@ -119,10 +121,10 @@ jobs:
119121
run: |
120122
LATEST_MADMAX=$(gh api repos/Chia-Network/chia-plotter-madmax/releases/latest --jq 'select(.prerelease == false) | .tag_name')
121123
mkdir "$GITHUB_WORKSPACE"/madmax
122-
gh release download -R Chia-Network/chia-plotter-madmax "$LATEST_MADMAX" -p 'chia_plot-'$LATEST_MADMAX'-macos-${{ matrix.os.name }}'
123-
mv chia_plot-$LATEST_MADMAX-macos-${{ matrix.os.name }} "$GITHUB_WORKSPACE"/madmax/chia_plot
124-
gh release download -R Chia-Network/chia-plotter-madmax "$LATEST_MADMAX" -p 'chia_plot_k34-'$LATEST_MADMAX'-macos-${{ matrix.os.name }}'
125-
mv chia_plot_k34-$LATEST_MADMAX-macos-${{ matrix.os.name }} "$GITHUB_WORKSPACE"/madmax/chia_plot_k34
124+
gh release download -R Chia-Network/chia-plotter-madmax "$LATEST_MADMAX" -p "chia_plot-$LATEST_MADMAX-macos-${{ matrix.os.name }}"
125+
mv "chia_plot-$LATEST_MADMAX-macos-${{ matrix.os.name }}" "$GITHUB_WORKSPACE"/madmax/chia_plot
126+
gh release download -R Chia-Network/chia-plotter-madmax "$LATEST_MADMAX" -p "chia_plot_k34-$LATEST_MADMAX-macos-${{ matrix.os.name }}"
127+
mv "chia_plot_k34-$LATEST_MADMAX-macos-${{ matrix.os.name }}" "$GITHUB_WORKSPACE"/madmax/chia_plot_k34
126128
chmod +x "$GITHUB_WORKSPACE"/madmax/chia_plot
127129
chmod +x "$GITHUB_WORKSPACE"/madmax/chia_plot_k34
128130
@@ -162,8 +164,8 @@ jobs:
162164
LATEST_VERSION=v2.0.1
163165
fi
164166
gh release download -R Chia-Network/bladebit "$LATEST_VERSION" -p 'bladebit*-${{ matrix.os.bladebit-suffix }}'
165-
ls *.tar.gz | xargs -I{} bash -c 'tar -xzf {} && rm {}'
166-
ls bladebit* | xargs -I{} chmod +x {}
167+
find . -maxdepth 1 -name '*.tar.gz' -print0 | xargs -0 -I{} bash -c 'tar -xzf {} && rm {}'
168+
find . -maxdepth 1 -name 'bladebit*' -print0 | xargs -0 -I{} chmod +x {}
167169
cd "$OLDPWD"
168170
169171
- uses: ./.github/actions/install
@@ -312,10 +314,6 @@ jobs:
312314
matrix: intel
313315
artifact-name: intel
314316
exclude:
315-
- os:
316-
matrix: 12
317-
arch:
318-
matrix: arm
319317
- os:
320318
matrix: 13
321319
arch:
@@ -353,6 +351,8 @@ jobs:
353351
354352
- name: Run chia dev installers test
355353
run: |
354+
# TODO: maybe fix this and remove the disable
355+
# shellcheck disable=SC2211
356356
"/Volumes/Chia "*"/Chia.app/Contents/Resources/app.asar.unpacked/daemon/chia" dev installers test --expected-chia-version "${{ needs.version.outputs.chia-installer-version }}"
357357
358358
- name: Detach .dmg

.github/workflows/build-windows-installer.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ permissions:
3939
jobs:
4040
version:
4141
uses: ./.github/workflows/reflow-version.yml
42+
with:
43+
release_type: ${{ inputs.release_type }}
4244

4345
build:
4446
name: Build EXE
4547
runs-on: [windows-2019]
4648
needs:
4749
- version
4850
timeout-minutes: 65
49-
outputs:
50-
chia-installer-version: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
5151
strategy:
5252
fail-fast: false
5353
matrix:
@@ -121,14 +121,18 @@ jobs:
121121
if: steps.check_secrets.outputs.HAS_SIGNING_SECRET
122122
shell: bash
123123
run: |
124-
echo "SM_HOST=${{ secrets.SM_HOST }}" >> "$GITHUB_ENV"
125-
echo "SM_API_KEY=${{ secrets.SM_API_KEY }}" >> "$GITHUB_ENV"
126-
echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"
127-
echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.SM_CLIENT_CERT_PASSWORD }}" >> "$GITHUB_ENV"
128-
echo "SM_CODE_SIGNING_CERT_SHA1_HASH=${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }}" >> "$GITHUB_ENV"
129-
echo "C:\Program Files (x86)\Windows Kits\10\App Certification Kit" >> $GITHUB_PATH
130-
echo "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools" >> $GITHUB_PATH
131-
echo "C:\Program Files\DigiCert\DigiCert One Signing Manager Tools" >> $GITHUB_PATH
124+
{
125+
echo "SM_HOST=${{ secrets.SM_HOST }}"
126+
echo "SM_API_KEY=${{ secrets.SM_API_KEY }}"
127+
echo "SM_CLIENT_CERT_FILE=D:/Certificate_pkcs12.p12"
128+
echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.SM_CLIENT_CERT_PASSWORD }}"
129+
echo "SM_CODE_SIGNING_CERT_SHA1_HASH=${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }}"
130+
} >> "$GITHUB_ENV"
131+
{
132+
echo "C:/Program Files (x86)/Windows Kits/10/App Certification Kit"
133+
echo "C:/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.8 Tools"
134+
echo "C:/Program Files/DigiCert/DigiCert One Signing Manager Tools"
135+
} >> "$GITHUB_PATH"
132136
133137
- name: Setup SSM KSP on windows latest
134138
if: steps.check_secrets.outputs.HAS_SIGNING_SECRET
@@ -183,7 +187,7 @@ jobs:
183187
mkdir "$GITHUB_WORKSPACE\\bladebit"
184188
cd "$GITHUB_WORKSPACE\\bladebit"
185189
gh release download -R Chia-Network/bladebit "$LATEST_VERSION" -p 'bladebit*windows-x86-64.zip'
186-
ls *.zip | xargs -I{} bash -c 'unzip {} && rm {}'
190+
find . -maxdepth 1 -name '*.zip' -print0 | xargs -0 -I{} bash -c 'unzip {} && rm {}'
187191
cd "$OLDPWD"
188192
189193
- uses: ./.github/actions/install
@@ -213,12 +217,14 @@ jobs:
213217

214218
- if: steps.cache-gui.outputs.cache-hit != 'true'
215219
name: Build GUI
220+
shell: pwsh
216221
continue-on-error: false
217222
run: |
218223
cd .\build_scripts
219224
.\build_windows-1-gui.ps1
220225
221226
- name: Build Windows installer
227+
shell: pwsh
222228
env:
223229
HAS_SIGNING_SECRET: ${{ steps.check_secrets.outputs.HAS_SIGNING_SECRET }}
224230
run: |
@@ -234,6 +240,7 @@ jobs:
234240
path: chia-blockchain-gui\release-builds\windows-installer\
235241

236242
- name: Remove Windows exe and installer to exclude from cache
243+
shell: pwsh
237244
run: |
238245
Remove-Item .\chia-blockchain-gui\packages\gui\dist -Recurse -Force
239246
Remove-Item .\chia-blockchain-gui\packages\gui\daemon -Recurse -Force
@@ -335,6 +342,7 @@ jobs:
335342
path: packages
336343

337344
- name: Install package
345+
shell: pwsh
338346
run: |
339347
dir ./packages/
340348
$env:INSTALLER_PATH = (Get-ChildItem packages/ChiaSetup-*.exe)
@@ -347,14 +355,16 @@ jobs:
347355
dir ./installed/
348356
349357
- name: List installed files
358+
shell: pwsh
350359
run: |
351360
Get-ChildItem -Recurse $env:INSTALL_PATH | Select FullName
352361
353362
- name: List all files
354-
if:
363+
shell: pwsh
355364
run: |
356365
Get-ChildItem -Recurse $env:INSTALL_PATH | Select FullName
357366
358367
- name: Run chia dev installers test
368+
shell: pwsh
359369
run: |
360370
& ($env:INSTALL_PATH + "/resources/app.asar.unpacked/daemon/chia.exe") dev installers test --expected-chia-version "${{ needs.version.outputs.chia-installer-version }}"

.github/workflows/mozilla-ca-cert.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: "Update Mozilla CA sub module"
22
on:
33
workflow_dispatch:
4-
branches:
5-
- $default-branch
64

75
jobs:
86
update_ca_module:
@@ -11,7 +9,6 @@ jobs:
119
- uses: actions/checkout@v4
1210
with:
1311
fetch-depth: 0
14-
ref: "${{ github.event.inputs.chia_ref }}"
1512
repository: chia-network/chia-blockchain
1613
submodules: recursive
1714
token: "${{ secrets.GITHUB_TOKEN }}"
@@ -28,7 +25,7 @@ jobs:
2825
git pull origin main
2926
3027
- name: "Create Pull Request"
31-
uses: peter-evans/create-pull-request@v6
28+
uses: peter-evans/create-pull-request@v7
3229
with:
3330
base: main
3431
body: "Newest Mozilla CA cert"

0 commit comments

Comments
 (0)