-
Couldn't load subscription status.
- Fork 147
ci: init hive tests in PRs #3590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
siddarthkay
wants to merge
1
commit into
master
Choose a base branch
from
hive-ci
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Copyright (c) 2024-2025 Status Research & Development GmbH | ||
| # Licensed under either of | ||
| # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or | ||
| # http://www.apache.org/licenses/LICENSE-2.0) | ||
| # * MIT license ([LICENSE-MIT](LICENSE-MIT) or | ||
| # http://opensource.org/licenses/MIT) | ||
| # at your option. This file may not be copied, modified, or distributed except | ||
| # according to those terms. | ||
|
|
||
| - client: nimbus-el | ||
| dockerfile: | ||
| build_args: | ||
| tag: master | ||
| - client: erigon |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,122 @@ | ||
| #!/usr/bin/env groovy | ||
|
|
||
| /* | ||
| * Copyright (c) 2019-2025 Status Research & Development GmbH | ||
| * Licensed and distributed under either of | ||
| * * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). | ||
| * * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). | ||
| * at your option. This file may not be copied, modified, or distributed except according to those terms. | ||
| */ | ||
|
|
||
| library '[email protected]' | ||
|
|
||
| pipeline { | ||
| agent { label 'linux' } | ||
|
|
||
| parameters { | ||
| string( | ||
| name: 'SIMULATION_NAME', | ||
| defaultValue: 'ethereum/sync', | ||
| description: 'The name of the simulation to run' | ||
| ) | ||
| string( | ||
| name: 'CLIENT_TAG', | ||
| defaultValue: 'master', | ||
| description: 'The tag/branch for the client build' | ||
| ) | ||
| string( | ||
| name: 'DOCKERFILE_TYPE', | ||
| defaultValue: '', | ||
| description: 'The dockerfile type (git) or leave empty to avoid rebuild' | ||
| ) | ||
| string( | ||
| name: 'PARALLELISM', | ||
| defaultValue: '40', | ||
| description: 'Number of parallel processes to run' | ||
| ) | ||
| string( | ||
| name: 'TIMEOUT_MINUTES', | ||
| defaultValue: '20', | ||
| description: 'Timeout for each stage in minutes' | ||
| ) | ||
| booleanParam( | ||
| name: 'DOCKER_BUILDOUTPUT', | ||
| defaultValue: true, | ||
| description: 'Whether to output Docker build logs' | ||
| ) | ||
| } | ||
|
|
||
| stages { | ||
| stage('Run Hive Tests') { | ||
| parallel { | ||
| stage('sync neth-nimbus') { | ||
| steps { | ||
| timeout(time: params.TIMEOUT_MINUTES.toInteger(), unit: 'MINUTES') { | ||
| dir('/home/jenkins/hive/') { | ||
| sh """ | ||
| hive \ | ||
| --sim "${params.SIMULATION_NAME}" \ | ||
| --client-file="${WORKSPACE}/ci/neth-nimbus-sync-config.yml" \ | ||
| --sim.parallelism=${params.PARALLELISM} \ | ||
| --sim.loglevel 4 \ | ||
| --docker.nocache hive/clients/nimbus-el \ | ||
| --docker.pull true \ | ||
| ${params.DOCKER_BUILDOUTPUT ? '--docker.buildoutput' : ''} | ||
| """ | ||
| } | ||
| } | ||
| } | ||
| } | ||
| stage('sync reth-nimbus') { | ||
| steps { | ||
| timeout(time: params.TIMEOUT_MINUTES.toInteger(), unit: 'MINUTES') { | ||
| dir('/home/jenkins/hive/') { | ||
| sh """ | ||
| hive \ | ||
| --sim "${params.SIMULATION_NAME}" \ | ||
| --client-file="${WORKSPACE}/ci/reth-nimbus-sync-config.yml" \ | ||
| --sim.parallelism=${params.PARALLELISM} \ | ||
| --sim.loglevel 4 \ | ||
| --docker.nocache hive/clients/nimbus-el \ | ||
| --docker.pull true \ | ||
| ${params.DOCKER_BUILDOUTPUT ? '--docker.buildoutput' : ''} | ||
| """ | ||
| } | ||
| } | ||
| } | ||
| } | ||
| stage('sync erigon-nimbus') { | ||
| steps { | ||
| timeout(time: params.TIMEOUT_MINUTES.toInteger(), unit: 'MINUTES') { | ||
| dir('/home/jenkins/hive/') { | ||
| sh """ | ||
| hive \ | ||
| --sim "${params.SIMULATION_NAME}" \ | ||
| --client-file="${WORKSPACE}/ci/erigon-nimbus-sync-config.yml" \ | ||
| --sim.parallelism=${params.PARALLELISM} \ | ||
| --sim.loglevel 4 \ | ||
| --docker.nocache hive/clients/nimbus-el \ | ||
| --docker.pull true \ | ||
| ${params.DOCKER_BUILDOUTPUT ? '--docker.buildoutput' : ''} | ||
| """ | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| post { | ||
| success { script { github.notifyPR(true) } } | ||
| failure { script { github.notifyPR(false) } } | ||
| cleanup { | ||
| script { | ||
| sh './scripts/hive-cleanup.sh' | ||
| } | ||
| } | ||
| always { | ||
| archiveArtifacts artifacts: 'simulation-results/**', allowEmptyArchive: true | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Copyright (c) 2024-2025 Status Research & Development GmbH | ||
| # Licensed under either of | ||
| # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or | ||
| # http://www.apache.org/licenses/LICENSE-2.0) | ||
| # * MIT license ([LICENSE-MIT](LICENSE-MIT) or | ||
| # http://opensource.org/licenses/MIT) | ||
| # at your option. This file may not be copied, modified, or distributed except | ||
| # according to those terms. | ||
|
|
||
| - client: nimbus-el | ||
| dockerfile: | ||
| build_args: | ||
| tag: master | ||
| - client: nethermind |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Copyright (c) 2024-2025 Status Research & Development GmbH | ||
| # Licensed under either of | ||
| # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or | ||
| # http://www.apache.org/licenses/LICENSE-2.0) | ||
| # * MIT license ([LICENSE-MIT](LICENSE-MIT) or | ||
| # http://opensource.org/licenses/MIT) | ||
| # at your option. This file may not be copied, modified, or distributed except | ||
| # according to those terms. | ||
|
|
||
| - client: nimbus-el | ||
| dockerfile: | ||
| build_args: | ||
| tag: master | ||
| - client: reth |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| hive -cleanup -cleanup.older-than 5m | ||
|
|
||
| # for dangling Docker resources | ||
| docker image prune -f | ||
| docker volume prune -f | ||
| docker network prune -f |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the container here