Skip to content

Commit 05e700e

Browse files
Improvements
Signed-off-by: Alex Kuzmin <alex.kuzmin@swirldslabs.com>
1 parent 24facbd commit 05e700e

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

.github/workflows/050-user-memory-profile-ctrl.yaml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
nlg-time: #'-R -c 32 -a 100000000 -T 1000 -n 100000 -S hot -p 50 -tt 1m
1515
required: true
1616
default: "3"
17-
description: "Test execution time options, in seconds"
17+
description: "Test execution time, in seconds, per each test (of 6 tests)"
1818
type: choice
1919
options:
2020
- "60"
@@ -24,6 +24,12 @@ on:
2424
- "1200"
2525
- "7200"
2626
- "19800"
27+
memory-interval:
28+
required: true
29+
default: "200"
30+
type: string
31+
description: 'Interval between memory checks, secs'
32+
2733
add-app-props:
2834
required: false
2935
default: ""
@@ -72,6 +78,7 @@ jobs:
7278
run-single-node-tests:
7379
name: Single node tests
7480
runs-on: hl-cn-mem-profiler-lin
81+
timeout-minutes: 1440
7582
steps:
7683
- name: Harden Runner
7784
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
@@ -162,9 +169,9 @@ jobs:
162169
chmod a+rx "${HOME}"/solo
163170
sudo mv "${HOME}"/solo /usr/bin/solo
164171
165-
git clone https://github.com/timo0/solo.git solo
172+
git clone https://github.com/hiero-ledger/solo.git solo
166173
cd solo
167-
git checkout fix-semantic-version
174+
git checkout 942ec2d0f1738edead5bbc89ece6cd1516c3bae6
168175
task build:compile
169176
#npm run build
170177
@@ -224,21 +231,26 @@ jobs:
224231
set +e
225232
set +x
226233
cd "${{ github.workspace }}"/solo
227-
kubectl get namespaces
228-
for i in `kubectl get namespaces | grep 'one-shot' | awk '{print $1}' | grep -v 'solo-setup'`;\
229-
do \
230-
kubectl -n ${i} exec network-node1-0 -- \
231-
bash -c "ps -aef; jpid=\$(ps -aef | grep -w java | grep -v grep | awk '{print \$2}'); \
234+
count=0
235+
while [ true ]
236+
do
237+
kubectl get namespaces
238+
for i in `kubectl get namespaces | grep 'one-shot' | awk '{print $1}' | grep -v 'solo-setup'`
239+
do
240+
kubectl -n ${i} exec network-node1-0 -- \
241+
bash -c "ps -aef; jpid=\$(ps -aef | grep -w java | grep -v grep | awk '{print \$2}'); \
232242
if [ \"\$jpid\" != \"\" ]; then echo \"pod $i:\"; \
233243
jcmd \$jpid GC.heap_info; echo \"\"; \
234244
jmap -dump:live,format=b,file=/tmp/test.hprof \$jpid; fi"; \
235-
kubectl -n ${i} cp network-node1-0:/opt/hgcapp/services-hedera/HapiApp2.0/output/recording.jfr "${{ github.workspace }}"/solo/recording.jfr
236-
kubectl -n ${i} cp network-node1-0:/tmp/test.hprof "${{ github.workspace }}"/solo/$i.hprof
237-
ls -l "${{ github.workspace }}"/solo/$i.hprof
245+
kubectl -n ${i} cp network-node1-0:/opt/hgcapp/services-hedera/HapiApp2.0/output/recording.jfr "${{ github.workspace }}"/solo/recording.jfr
246+
kubectl -n ${i} cp network-node1-0:/tmp/test.hprof "${{ github.workspace }}"/solo/$i_$count.hprof
247+
ls -l "${{ github.workspace }}"/solo/$i_$count.hprof
248+
done
249+
count=`expr $count + 1`
250+
sleep ${{ inputs.memory-interval }}
238251
done
239252
EOF
240-
wait_time=$(expr ${{ inputs.nlg-time }} / 10 \* 9)
241-
nohup bash -c "sleep 300; sleep ${wait_time}; sh "${{ github.workspace }}"/solo/heapInfoByPod.sh" > "${{ github.workspace }}"/solo/heapInfoByPod.log 2>&1 &
253+
nohup bash -c "sleep 300; sleep ${{ inputs.memory-interval }}; sh "${{ github.workspace }}"/solo/heapInfoByPod.sh" > "${{ github.workspace }}"/solo/heapInfoByPod.log 2>&1 &
242254
243255
- name: Run NLG test
244256
run: |

0 commit comments

Comments
 (0)