From a041fc9fc08e49d0b670d842bb4bf38383ec358d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Chodo=C5=82a?= <43241881+kamilchodola@users.noreply.github.com> Date: Tue, 14 May 2024 10:20:44 +0200 Subject: [PATCH 1/4] Fullpruning config values --- setup-wizard.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/setup-wizard.yml b/setup-wizard.yml index 544595c..440b722 100644 --- a/setup-wizard.yml +++ b/setup-wizard.yml @@ -164,3 +164,32 @@ fields: - "false" default: "true" required: true + + - id: PruningTriggerType + target: + type: environment + name: NETHERMIND_PRUNINGCONFIG_FULLPRUNINGTRIGGER + service: nethermind + title: Full Pruning Trigger Type + description: >- + The full pruning trigger which accepts config values like: + Manual: Triggered manually with JsonRPC call. (default) + StateDbSize: Trigger when the state DB size is above the threshold. + VolumeFreeSpace: Trigger when the free disk space where the state DB is stored is below the threshold. + enum: + - "Manual" + - "StateDbSize" + - "VolumeFreeSpace" + default: "Manual" + required: true + + - id: PruningThresholdMb + target: + type: environment + name: NETHERMIND_PRUNINGCONFIG_FULLPRUNINGTHRESHOLDMB + service: nethermind + title: Full Pruning Threshold in Mb + description: >- + The threshold, in MB, to trigger full pruning. Depends on Mode and FullPruningTrigger. Defaults to 256000. + default: "256000" + required: true From 74e0e8f265bbb5349f60c55a63dbaff59714ea8e Mon Sep 17 00:00:00 2001 From: Marcos Maceo Date: Tue, 14 May 2024 13:21:22 +0400 Subject: [PATCH 2/4] feat: add testing release action --- .github/workflows/testing-release.yaml | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/testing-release.yaml diff --git a/.github/workflows/testing-release.yaml b/.github/workflows/testing-release.yaml new file mode 100644 index 0000000..4d3951d --- /dev/null +++ b/.github/workflows/testing-release.yaml @@ -0,0 +1,31 @@ +name: "Testing release action" +on: + workflow_dispatch: + pull_request: + push: + branches: + - "master" + - "main" + - "v[0-9]+.[0-9]+.[0-9]+" + paths-ignore: + - "README.md" + +jobs: + build-test: + name: Build Test + runs-on: ubuntu-latest + if: github.event_name != 'push' + steps: + - uses: actions/checkout@v3 + - run: npx @dappnode/dappnodesdk build --skip_save + + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Publish + run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset --timeout 2h + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1" From c4a301b7bd615c736d5251f5e3e043896642d036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Chodo=C5=82a?= <43241881+kamilchodola@users.noreply.github.com> Date: Tue, 14 May 2024 12:00:41 +0200 Subject: [PATCH 3/4] add line breaks --- setup-wizard.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup-wizard.yml b/setup-wizard.yml index 440b722..b0df7cb 100644 --- a/setup-wizard.yml +++ b/setup-wizard.yml @@ -173,9 +173,13 @@ fields: title: Full Pruning Trigger Type description: >- The full pruning trigger which accepts config values like: + Manual: Triggered manually with JsonRPC call. (default) + StateDbSize: Trigger when the state DB size is above the threshold. + VolumeFreeSpace: Trigger when the free disk space where the state DB is stored is below the threshold. + enum: - "Manual" - "StateDbSize" From cf739cc078340eba31cb06417a873838bbdfc2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Chodo=C5=82a?= <43241881+kamilchodola@users.noreply.github.com> Date: Tue, 14 May 2024 12:16:21 +0200 Subject: [PATCH 4/4] One more UI adjustment --- setup-wizard.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup-wizard.yml b/setup-wizard.yml index b0df7cb..0e6523a 100644 --- a/setup-wizard.yml +++ b/setup-wizard.yml @@ -174,12 +174,14 @@ fields: description: >- The full pruning trigger which accepts config values like: - Manual: Triggered manually with JsonRPC call. (default) - StateDbSize: Trigger when the state DB size is above the threshold. + **Manual**: Triggered manually with JsonRPC call. (default) - VolumeFreeSpace: Trigger when the free disk space where the state DB is stored is below the threshold. + **StateDbSize**: Trigger when the state DB size is above the threshold. + + + **VolumeFreeSpace**: Trigger when the free disk space where the state DB is stored is below the threshold. enum: - "Manual" - "StateDbSize"