|
14 | 14 | nlg-time: #'-R -c 32 -a 100000000 -T 1000 -n 100000 -S hot -p 50 -tt 1m |
15 | 15 | required: true |
16 | 16 | default: "3" |
17 | | - description: "Test execution time options, in seconds" |
| 17 | + description: "Test execution time, in seconds, per each test (of 6 tests)" |
18 | 18 | type: choice |
19 | 19 | options: |
20 | 20 | - "60" |
|
24 | 24 | - "1200" |
25 | 25 | - "7200" |
26 | 26 | - "19800" |
| 27 | + memory-interval: |
| 28 | + required: true |
| 29 | + default: "200" |
| 30 | + type: string |
| 31 | + description: 'Interval between memory checks, secs' |
| 32 | + |
27 | 33 | add-app-props: |
28 | 34 | required: false |
29 | 35 | default: "" |
|
72 | 78 | run-single-node-tests: |
73 | 79 | name: Single node tests |
74 | 80 | runs-on: hl-cn-mem-profiler-lin |
| 81 | + timeout-minutes: 1440 |
75 | 82 | steps: |
76 | 83 | - name: Harden Runner |
77 | 84 | uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 |
@@ -162,9 +169,9 @@ jobs: |
162 | 169 | chmod a+rx "${HOME}"/solo |
163 | 170 | sudo mv "${HOME}"/solo /usr/bin/solo |
164 | 171 |
|
165 | | - git clone https://github.com/timo0/solo.git solo |
| 172 | + git clone https://github.com/hiero-ledger/solo.git solo |
166 | 173 | cd solo |
167 | | - git checkout fix-semantic-version |
| 174 | + git checkout 942ec2d0f1738edead5bbc89ece6cd1516c3bae6 |
168 | 175 | task build:compile |
169 | 176 | #npm run build |
170 | 177 |
|
@@ -224,21 +231,26 @@ jobs: |
224 | 231 | set +e |
225 | 232 | set +x |
226 | 233 | 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}'); \ |
232 | 242 | if [ \"\$jpid\" != \"\" ]; then echo \"pod $i:\"; \ |
233 | 243 | jcmd \$jpid GC.heap_info; echo \"\"; \ |
234 | 244 | 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 }} |
238 | 251 | done |
239 | 252 | 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 & |
242 | 254 |
|
243 | 255 | - name: Run NLG test |
244 | 256 | run: | |
|
0 commit comments