Skip to content

Commit

Permalink
Ms.fast test blockchain (#11051)
Browse files Browse the repository at this point in the history
* more work on test blockchain

* Optimize test_blockchain.py

* Fix weight proof bug

* Rename variable

* first rc_sub_slot hash bug

* New plots

* try with a new ID

* Run without cache

* Address test blocks and plots preparation.

* Update constant in test_compact_protocol().

* Update this constant too.

* Revert accidental altering of the gui submodule in ae7e329.

* Fix benchmark test

* Revert mozilla-ca change

* Rebase on main

Co-authored-by: almog <[email protected]>
Co-authored-by: Amine Khaldi <[email protected]>
  • Loading branch information
3 people authored Apr 8, 2022
1 parent 7cd23b0 commit 2f9e718
Show file tree
Hide file tree
Showing 51 changed files with 255 additions and 332 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
repository: 'Chia-Network/test-cache'
path: '.chia'
ref: '0.28.0'
ref: '0.29.0'
fetch-depth: 1

- name: Run install script
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-blockchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-core-daemon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-core-full_node-full_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-core-full_node-stores.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-core-full_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-core-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-core-ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-core-util.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-farmer_harvester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-plot_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-plotting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build-test-macos-pools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Daily (POC) cache key invalidation for test blocks and plots
id: today-date
run: date +%F > today.txt

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: ${{ hashFiles('today.txt') }}
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.28.0.tar.gz | tar xzf -
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.28.0/* ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia
- name: Run install script
env:
Expand Down
Loading

0 comments on commit 2f9e718

Please sign in to comment.