-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement on demand block production (#402)
Allows registered parathreads to produce blocks every n slots, where n is defined on chain
- Loading branch information
1 parent
ae5cc6a
commit 6f48194
Showing
16 changed files
with
896 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -545,6 +545,61 @@ jobs: | |
name: logs | ||
path: logs | ||
|
||
zombienet-tests-parathreads: | ||
runs-on: ubuntu-latest | ||
needs: ["set-tags", "build"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ needs.set-tags.outputs.git_ref }} | ||
|
||
- name: Pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
cache: "pnpm" | ||
|
||
- name: "Download binaries" | ||
uses: actions/[email protected] | ||
with: | ||
name: binaries | ||
path: target/release | ||
|
||
- name: "Run zombie test" | ||
run: | | ||
chmod uog+x target/release/tanssi-node | ||
chmod uog+x target/release/container-chain-template-simple-node | ||
chmod uog+x target/release/container-chain-template-frontier-node | ||
cd test | ||
pnpm install | ||
## Run tests | ||
pnpm moonwall test zombie_tanssi_parathreads | ||
- name: "Gather zombie logs" | ||
if: failure() | ||
run: | | ||
ls -ltr /tmp | ||
latest_zombie_dir=$(find /tmp -type d -iname "*zombie*" -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" ") | ||
logs_dir="logs" | ||
mkdir -p "$logs_dir" | ||
find "$latest_zombie_dir" -type f -name "*.log" -exec cp {} "$logs_dir" \; | ||
- name: "Upload zombie logs" | ||
if: failure() | ||
uses: actions/[email protected] | ||
with: | ||
name: logs-parathreads | ||
path: logs | ||
|
||
zombienet-tests-rotation: | ||
runs-on: self-hosted | ||
needs: ["set-tags", "build"] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.