Skip to content

Commit

Permalink
Merge branch 'master' into feature/t8n
Browse files Browse the repository at this point in the history
  • Loading branch information
yerke26 committed Oct 21, 2024
2 parents f6ea323 + 05581f2 commit 21db0ab
Show file tree
Hide file tree
Showing 24 changed files with 2,041 additions and 36 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/sync-supported-chains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
description: "Docker image to be used by action"
default: ""
required: false
network_filter:
description: "Usefull for manual execution on only specified networks - provide partial or full name. Will execute action only on networks which contains phrase."
default: ""
required: false

env:
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: "1"
Expand All @@ -29,7 +33,14 @@ jobs:
path: nethermind
- name: Set Matrix
id: set-matrix
run: echo "matrix=$(jq -c . nethermind/scripts/workflow_config/sync_testnets_matrix.json)" >> $GITHUB_OUTPUT
run: |
matrix=$(cat nethermind/scripts/workflow_config/sync_testnets_matrix.json)
if [ -n "${{ github.event.inputs.network_filter }}" ]; then
matrix=$(echo "$matrix" | jq --arg filter "${{ github.event.inputs.network_filter }}" '[.[] | select(.network | contains($filter))]')
fi
echo "matrix=$(echo "$matrix" | jq -c .)" >> $GITHUB_OUTPUT
create_a_runner:
needs: [setup-matrix]
Expand Down Expand Up @@ -188,7 +199,7 @@ jobs:
required_count["Processed"]=20
network="${{ matrix.config.network }}"
if [[ "$network" != "joc-mainnet" && "$network" != "joc-testnet" ]]; then
if [[ "$network" != "joc-mainnet" && "$network" != "joc-testnet" && "$network" != "linea-mainnet" && "$network" != "linea-sepolia" ]]; then
good_logs["Synced Chain Head"]=0
required_count["Synced Chain Head"]=20
fi
Expand Down Expand Up @@ -250,7 +261,7 @@ jobs:
done

- name: Get Consensus Logs
if: always() && matrix.config.network != 'joc-mainnet' && matrix.config.network != 'joc-testnet'
if: always() && matrix.config.network != 'joc-mainnet' && matrix.config.network != 'joc-testnet' && matrix.config.network != 'linea-mainnet' && matrix.config.network != 'linea-sepolia'
run: |
network="${{ matrix.config.network }}"
if [[ "$network" == base-* || "$network" == op-* ]]; then
Expand All @@ -265,6 +276,7 @@ jobs:
- name: Destroy VM
if: always()
continue-on-error: true
id: run-linode-action
uses: kamilchodola/linode-github-runner/.github/actions/linode-machine-manager@main
with:
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ make sure your description is not missing any information requested by the templ

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
[email protected].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
10 changes: 10 additions & 0 deletions scripts/syncSettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@
"url": "https://sepolia.optimism.io",
"blockReduced": 8192,
"multiplierRequirement": 10000
},
"linea-mainnet": {
"url": "https://rpc.linea.build",
"blockReduced": 8192,
"multiplierRequirement": 10000
},
"linea-sepolia": {
"url": "https://rpc.sepolia.linea.build",
"blockReduced": 8192,
"multiplierRequirement": 10000
}
}

Expand Down
16 changes: 16 additions & 0 deletions scripts/workflow_config/sync_testnets_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,21 @@
"checkpoint-sync-url": "",
"timeout": 180,
"agent": "g6-standard-6"
},
{
"network": "linea-mainnet",
"cl": "",
"cl_image": "",
"checkpoint-sync-url": "",
"timeout": 180,
"agent": "g6-standard-6"
},
{
"network": "linea-sepolia",
"cl": "",
"cl_image": "",
"checkpoint-sync-url": "",
"timeout": 180,
"agent": "g6-standard-6"
}
]
Loading

0 comments on commit 21db0ab

Please sign in to comment.