Skip to content

Commit 2907a81

Browse files
authored
Merge pull request #6 from zapper-95/nightly-fixes
fix: nightly tests fix
2 parents 99350bb + 36f0e65 commit 2907a81

File tree

10 files changed

+46
-60
lines changed

10 files changed

+46
-60
lines changed

.github/tests/external-l1/ethereum.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ network_params:
1414
"nonce": "1"
1515
}
1616
}
17-
'
17+
'

.github/tests/external-l1/optimism.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ external_l1_network_params:
44
el_rpc_url: http://el-1-geth-teku:8545
55
el_ws_url: ws://el-1-geth-teku:8546
66
cl_rpc_url: http://cl-1-teku-geth:4000
7-
priv_key: "0xbcdf20249abf0ed6d944c0288fad489e33f66b3960d9e6229c1cd214ed3bbe31"
7+
priv_key: "0xbcdf20249abf0ed6d944c0288fad489e33f66b3960d9e6229c1cd214ed3bbe31"

.github/tests/interop.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,3 @@ optimism_package:
2222
holocene_time_offset: 0
2323
interop_time_offset: 0
2424
fund_dev_accounts: true
25-
ethereum_package:
26-
network_params:
27-
preset: minimal
28-
genesis_delay: 5
29-
additional_preloaded_contracts: |
30-
{
31-
"0x4e59b44847b379578588920cA78FbF26c0B4956C": {
32-
"balance": "0ETH",
33-
"code": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3",
34-
"storage": {},
35-
"nonce": "1"
36-
}
37-
}

.github/tests/single_l2.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@ optimism_package:
22
chains:
33
- participants:
44
- count: 2
5-
ethereum_package:
6-
participants:
7-
- el_type: geth
8-
cl_type: teku

.github/workflows/nightly.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ jobs:
1212
- id: set-matrix
1313
# List all yaml files in the .github/tests directory, except for the k8s.yaml file
1414
run: echo "matrix=$(ls ./.github/tests/*.yaml | grep -vE 'k8s.yaml$' | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
15+
1516
run_with_args:
1617
needs: list-yamls
1718
strategy:
1819
matrix:
19-
file_name: ${{ fromJson(needs.list-yamls.outputs.matrix) }}
20+
file_name: ${{ fromJson(needs.list-yamls.outputs.matrix) }}
2021
runs-on: ubuntu-latest
22+
continue-on-error: true # Prevent the whole job from failing due to one test failure
2123
steps:
2224
- name: Checkout Repository
2325
uses: actions/checkout@v4
@@ -30,12 +32,14 @@ jobs:
3032
kurtosis analytics disable
3133
3234
- name: Run Starlark
35+
id: test_execution
3336
run: |
3437
if [ "${{ matrix.file_name }}" != "./.github/tests/mix-with-tools-mev.yaml" ]; then
35-
kurtosis run ${{ github.workspace }} --verbosity detailed --args-file ${{ matrix.file_name }}
38+
kurtosis run ${{ github.workspace }} --verbosity detailed --args-file ${{ matrix.file_name }} || echo "TEST_FAILED=true" >> $GITHUB_ENV
3639
else
3740
echo "Skipping ./.github/tests/mix-with-tools-mev.yaml"
3841
fi
42+
continue-on-error: true # Don't fail the entire job
3943

4044
- name: Check if Discord Webhook is Set
4145
id: check_discord_webhook
@@ -54,10 +58,11 @@ jobs:
5458
env:
5559
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
5660
with:
57-
args: "The nightly test for ${{matrix.file_name}} on optimism-package has failed find it here ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
61+
args: "The nightly test for ${{ matrix.file_name }} on optimism-package has failed. Find it here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
5862

5963
run_with_external_l1_args:
6064
runs-on: ubuntu-latest
65+
continue-on-error: true # Ensure failure here doesn't stop other jobs
6166
steps:
6267
- name: Checkout Repository
6368
uses: actions/checkout@v4
@@ -68,10 +73,10 @@ jobs:
6873
sudo apt update
6974
sudo apt install kurtosis-cli
7075
kurtosis analytics disable
71-
76+
7277
- name: Deploy L1
7378
run: kurtosis run --enclave test --args-file ./.github/tests/external-l1/ethereum.yaml github.com/ethpandaops/ethereum-package
74-
79+
7580
- name: Run Starlark
7681
run: |
7782
kurtosis run --enclave test --verbosity detailed --args-file ./.github/tests/external-l1/optimism.yaml ${{ github.workspace }}

main.star

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ethereum_package_static_files = import_module(
1919
)
2020

2121

22-
def run(plan, args):
22+
def run(plan, args={}):
2323
"""Deploy Optimism L2s on an Ethereum L1.
2424
2525
Args:
@@ -47,13 +47,13 @@ def run(plan, args):
4747

4848
# need to do a raw get here in case only optimism_package is provided.
4949
# .get will return None if the key is in the config with a None value.
50-
optimism_args = args.get("optimism_package") or input_parser.default_optimism_args(
51-
deployment_type
52-
)
53-
50+
optimism_args = args.get("optimism_package") or {}
5451
optimism_args_with_right_defaults = input_parser.input_parser(
5552
plan, optimism_args, deployment_type
5653
)
54+
# optimism_args = args.get("optimism_package") or {}
55+
# optimism_args_with_right_defaults = input_parser.input_parser(plan, optimism_args)
56+
5757
global_tolerations = optimism_args_with_right_defaults.global_tolerations
5858
global_node_selectors = optimism_args_with_right_defaults.global_node_selectors
5959
global_log_level = optimism_args_with_right_defaults.global_log_level

network_params.yaml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
optimism_package:
2-
deployment_type: "testnet"
32
chains:
43
- participants:
54
- el_type: op-geth
@@ -107,13 +106,13 @@ optimism_package:
107106
da_bond_size: 10000
108107
da_resolver_refund_percentage: 0
109108

110-
external_l1_network_params:
111-
network_id: "3151908"
112-
rpc_kind: standard
113-
el_rpc_url: http://el-1-geth-teku:8545
114-
el_ws_url: ws://el-1-geth-teku:8546
115-
cl_rpc_url: http://cl-1-teku-geth:4000
116-
priv_key: "0xbcdf20249abf0ed6d944c0288fad489e33f66b3960d9e6229c1cd214ed3bbe31"
109+
# external_l1_network_params:
110+
# network_id: "3151908"
111+
# rpc_kind: standard
112+
# el_rpc_url: http://el-1-geth-teku:8545
113+
# el_ws_url: ws://el-1-geth-teku:8546
114+
# cl_rpc_url: http://cl-1-teku-geth:4000
115+
# priv_key: "0xbcdf20249abf0ed6d944c0288fad489e33f66b3960d9e6229c1cd214ed3bbe31"
117116

118117
# external_l1_network_params:
119118
# network_id: "11155111"
@@ -123,21 +122,21 @@ external_l1_network_params:
123122
# cl_rpc_url: https://omniscient-sparkling-model.ethereum-sepolia.quiknode.pro/0650b5f675a2d17b00c8aa2a29dadc3e46f7fdbb/
124123
# priv_key: "0xbcdf20249abf0ed6d944c0288fad489e33f66b3960d9e6229c1cd214ed3bbe31"
125124

126-
# ethereum_package:
127-
# participants:
128-
# - el_type: geth
129-
# cl_type: teku
130-
# cl_image: "consensys/teku:latest-amd64" # add this https://github.com/rancher-sandbox/rancher-desktop/issues/8057
131-
# network_params:
132-
# preset: minimal
133-
# genesis_delay: 5
134-
# additional_preloaded_contracts: '
135-
# {
136-
# "0x4e59b44847b379578588920cA78FbF26c0B4956C": {
137-
# "balance": "0ETH",
138-
# "code": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3",
139-
# "storage": {},
140-
# "nonce": "1"
141-
# }
142-
# }
143-
# '
125+
ethereum_package:
126+
participants:
127+
- el_type: geth
128+
cl_type: teku
129+
cl_image: "consensys/teku:latest-amd64" # add this https://github.com/rancher-sandbox/rancher-desktop/issues/8057
130+
network_params:
131+
preset: minimal
132+
genesis_delay: 5
133+
additional_preloaded_contracts: '
134+
{
135+
"0x4e59b44847b379578588920cA78FbF26c0B4956C": {
136+
"balance": "0ETH",
137+
"code": "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3",
138+
"storage": {},
139+
"nonce": "1"
140+
}
141+
}
142+
'

src/cl/hildr/hildr_launcher.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def get_beacon_config(
172172

173173
cmd = [
174174
"--devnet",
175-
"--log.level=" + log_level,
175+
"--log-level=" + log_level,
176176
"--jwt-file=" + ethereum_package_constants.JWT_MOUNT_PATH_ON_CONTAINER,
177177
"--l1-beacon-url={0}".format(l1_config_env_vars["CL_RPC_URL"]),
178178
"--l1-rpc-url={0}".format(l1_config_env_vars["L1_RPC_URL"]),

src/package_io/input_parser.star

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def external_l1_network_params_input_parser(plan, input_args):
6363
)
6464

6565

66-
def input_parser(plan, input_args, deployment_type):
66+
def input_parser(plan, input_args, deployment_type="devnet"):
6767
sanity_check.sanity_check(plan, input_args)
6868
results = parse_network_params(plan, input_args, deployment_type)
6969
plan.print(results)
@@ -350,7 +350,7 @@ def parse_network_params(plan, input_args, deployment_type):
350350

351351
seen_names = {}
352352
seen_network_ids = {}
353-
for chain in input_args.get("chains", default_chains()):
353+
for chain in input_args.get("chains", default_chains(deployment_type)):
354354
network_params = default_network_params()
355355
network_params.update(chain.get("network_params", {}))
356356

@@ -587,7 +587,7 @@ def default_mev_params():
587587
}
588588

589589

590-
def default_chains(deployment_type="devnet"):
590+
def default_chains(deployment_type):
591591
return [
592592
{
593593
"participants": [default_participant()],

src/package_io/sanity_check.star

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ ADDITIONAL_SERVICES_PARAMS = [
189189
]
190190

191191
ROOT_PARAMS = [
192-
"deployment_type",
193192
"observability",
194193
"interop",
195194
"altda_deploy_config",

0 commit comments

Comments
 (0)