forked from maticnetwork/bor
-
Notifications
You must be signed in to change notification settings - Fork 0
126 lines (123 loc) · 4.41 KB
/
cdk-superuser-regression-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: REGRESSION TESTER - SUPERUSERS
on:
push:
# workflow_dispatch:
# inputs:
# zkevm_agglayer_commit_id:
# description: '0xPolygon/agglayer (commit id)'
# required: true
# zkevm_bridge_service_commit_id:
# description: '0xPolygonHermez/zkevm-bridge-service (commit id)'
# required: true
# zkevm_bridge_ui_commit_id:
# description: '0xPolygonHermez/zkevm-bridge-ui (commit id)'
# required: true
# zkevm_dac_commit_id:
# description: '0xPolygon/cdk-data-availability (commit id)'
# required: true
# zkevm_node_commit_id:
# description: '0xPolygon/cdk-validium-node (commit id)'
# required: true
# bake_time:
# description: 'bake time (minutes)'
# required: true
#
jobs:
deploy_devnet:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.before }}
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- name: Clone internal kurtosis-cdk repo
run: |
git clone https://github.com/0xPolygon/kurtosis-cdk.git
cd kurtosis-cdk
git checkout dan/jit_containers_superusers
#
# - name: Clone and build agglayer
# run: |
# git clone https://github.com/0xPolygon/agglayer.git
# cd agglayer
# git checkout "${{ github.event.inputs.zkevm_agglayer_commit_id }}"
# docker compose -f docker/docker-compose.yaml build --no-cache agglayer
# sleep 10
#
# - name: Clone and build zkevm-bridge-service
# run: |
# git clone https://github.com/0xPolygonHermez/zkevm-bridge-service.git
# cd zkevm-bridge-service
# git checkout "${{ github.event.inputs.zkevm_bridge_service_commit_id }}"
# docker build -t zkevm-bridge-service:local -f ./Dockerfile .
# sleep 10
#
# - name: Clone and build zkevm-bridge-ui
# run: |
# git clone https://github.com/0xPolygonHermez/zkevm-bridge-ui.git
# cd zkevm-bridge-ui
# git checkout "${{ github.event.inputs.zkevm_bridge_ui_commit_id }}"
# docker build -t zkevm-bridge-ui:local -f ./Dockerfile .
# sleep 10
#
# - name: Clone and build cdk-data-availability
# run: |
# git clone https://github.com/0xPolygon/cdk-data-availability.git
# cd cdk-data-availability
# git checkout "${{ github.event.inputs.zkevm_dac_commit_id }}"
# docker build -t cdk-data-availability:local -f ./Dockerfile .
# sleep 10
#
# - name: Clone and build cdk-validium-node
# run: |
# git clone https://github.com/0xPolygon/cdk-validium-node.git
# cd cdk-validium-node
# git checkout "${{ github.event.inputs.zkevm_node_commit_id }}"
# docker build -t cdk-validium-node:local -f ./Dockerfile .
# sleep 10
- name: Install foundry (i.e. cast)
run: |
curl -L https://foundry.paradigm.xyz | bash
. .bashrc
foundryup
cast
#
# - name: Install kurtosis
# run: |
# echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
# sudo apt update
# sudo apt install kurtosis-cli
#
# - name: Run kurtosis agent in background
# run: |
# kurtosis gateway & # Run cmd in background
# sleep 10
#
# - name: Deploy CDK devnet on local github runner
# run: |
# cd kurtosis-cdk
# kurtosis engine restart
# kurtosis run --enclave cdk-v1 --args-file params.yml .
#
# - name: Auto-apply load and report any regressions here
# run: |
# bake_time="${{ github.event.inputs.bake_time }}"
# end_minute=$(( $(date +'%M') + bake_time))
#
# while [ $(date +'%M') -lt $end_minute ]; do
# STATUS=$(curl -X GET "https://api.datadoghq.com/api/v1/monitor/${MONITOR_ID}" \
# -H "Content-Type: application/json" \
# -H "DD-API-KEY: ${DATADOG_API_KEY}" \
# -H "DD-APPLICATION-KEY: ${DATADOG_APP_KEY}" \
# -s \
# | jq -r '.overall_state')
# echo "ZKEVM_VERIFIED_BATCH_NUMBER: $STATUS"
# sleep 60
# done
#
# - name: Finally, remove all devnet resources locally
# run: |
# cd kurtosis-cdk
# kurtosis clean -a