Skip to content

#2337 cleanup

#2337 cleanup #1

Workflow file for this run

name: testeth-run

Check failure on line 1 in .github/workflows/testeth-run.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/testeth-run.yml

Invalid workflow file

(Line: 3, Col: 1): Unexpected value 'inputs', (Line: 13, Col: 1): Unexpected value 'runs', (Line: 1, Col: 1): Required property is missing: jobs
description: Run testeth (full suites or historic JsonRpcSuite) with marker files and optional verbosity rerun
inputs:
build_dir:
required: true
mode:
required: true
description: "full | historic"
verbosity:
required: true
description: "1 | 4"
runs:
using: composite
steps:
- shell: bash
run: |
set -euo pipefail
cd "${{ inputs.build_dir }}/test"
if [[ "${{ inputs.mode }}" == "historic" ]]; then
mkdir -p /tmp/tests/
# Only clear markers on verbosity 1 (keep markers for verbosity 4 rerun logic)
if [[ "${{ inputs.verbosity }}" == "1" ]]; then
sudo rm -rf /tmp/tests/*
fi
if [[ "${{ inputs.verbosity }}" == "1" ]]; then
./testeth -t JsonRpcSuite -- --express && touch /tmp/tests/JsonRpcSuitePassed || true
else
ls /tmp/tests/JsonRpcSuitePassed 2>/dev/null || ./testeth -t JsonRpcSuite -- --express --verbosity 4
fi
exit 0
fi
# mode == full
TEST_SUITES=(
TransitionTests TransactionTests VMTests LevelDBTests CoreLibTests RlpTests SharedSpaceTests
EthashTests SealEngineTests DifficultyTests BlockSuite BlockChainMainNetworkSuite
BlockChainFrontierSuite BlockQueueSuite ClientBase EstimateGas getHistoricNodesData
ExtVmSuite GasPricer BasicTests InstanceMonitorSuite PrecompiledTests SkaleHostSuite
StateUnitTests libethereum TransactionQueueSuite LegacyVMSuite SkaleInterpreterSuite
SnapshotSigningTestSuite SkUtils BlockChainTestSuite TestHelperSuite LevelDBHashBase
memDB OverlayDBTests AccountHolderTest ClientTests JsonRpcSuite SingleConsensusTests ConsensusTests
)
if [[ "${{ inputs.verbosity }}" == "1" ]]; then
mkdir -p /tmp/tests/
sudo rm -rf /tmp/tests/*
run_test() { ./testeth --report_level=detailed -t "$1" -- --express && touch "/tmp/tests/${1}Passed" || true; }
for s in "${TEST_SUITES[@]}"; do run_test "$s"; done
run_sudo_all() {
sudo NO_ULIMIT_CHECK="${NO_ULIMIT_CHECK:-1}" NO_NTP_CHECK="${NO_NTP_CHECK:-1}" ./testeth -t "$1" -- --all \
&& touch "/tmp/tests/${1}Passed" || true
}
run_sudo_all BtrfsTestSuite
run_sudo_all HashSnapshotTestSuite
run_sudo_all ClientSnapshotsSuite
else
rerun_test() { ls "/tmp/tests/${1}Passed" 2>/dev/null || ./testeth --report_level=detailed -t "$1" -- --express --verbosity 4; }
for s in "${TEST_SUITES[@]}"; do rerun_test "$s"; done
rerun_sudo_all() {
ls "/tmp/tests/${1}Passed" 2>/dev/null || sudo NO_ULIMIT_CHECK="${NO_ULIMIT_CHECK:-1}" NO_NTP_CHECK="${NO_NTP_CHECK:-1}" \
./testeth -t "$1" -- --all --verbosity 4
}
rerun_sudo_all BtrfsTestSuite
rerun_sudo_all HashSnapshotTestSuite
rerun_sudo_all ClientSnapshotsSuite
fi