Skip to content

Commit 93883d2

Browse files
sync main
Signed-off-by: Neeharika-Sompalli <[email protected]>
2 parents ff8577c + 1df7784 commit 93883d2

File tree

428 files changed

+11157
-4472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

428 files changed

+11157
-4472
lines changed

.github/workflows/node-flow-build-application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ jobs:
177177
enable-unit-tests: false
178178
enable-hapi-tests-crypto: ${{ github.event_name == 'push' || github.event.inputs.enable-hapi-tests == 'true' }}
179179
enable-network-log-capture: true
180+
mats-suffix: MATS
180181
secrets:
181182
access-token: ${{ secrets.GITHUB_TOKEN }}
182183
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}

.github/workflows/node-flow-pull-request-checks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123
enable-unit-tests: false
124124
enable-hapi-tests-crypto: true
125125
enable-network-log-capture: true
126+
mats-suffix: MATS
126127
secrets:
127128
access-token: ${{ secrets.GITHUB_TOKEN }}
128129
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}

.github/workflows/node-zxc-compile-application-code.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ jobs:
395395
env:
396396
LC_ALL: en.UTF-8
397397
LANG: en_US.UTF-8
398-
run: ${GRADLE_EXEC} hapiTestCrypto
398+
run: ${GRADLE_EXEC} hapiTestCrypto${{ inputs.mats-suffix || '' }}
399399

400400
- name: Publish HAPI Test (Crypto) Report
401401
uses: step-security/publish-unit-test-result-action@5d195d4dec0b9fa7b51a3dbc4298362a021247c7 # v2.20.4

.github/workflows/zxcron-extended-test-suite.yaml

Lines changed: 169 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,73 @@ jobs:
171171
gh run cancel "${{ github.run_id }}"
172172
fi
173173
174-
extended-test-suite:
175-
name: Execute eXtended Test Suite
174+
xts-timing-sensitive-tests:
175+
name: XTS Timing Sensitive Tests
176176
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
177177
needs: fetch-xts-candidate
178178
if: ${{ needs.fetch-xts-candidate.result == 'success' && needs.fetch-xts-candidate.outputs.xts-tag-exists == 'true' }}
179179
with:
180-
custom-job-label: Execute eXtended Test Suite
180+
custom-job-label: "XTS Timing Sensitive"
181181
enable-timing-sensitive-tests: true
182+
enable-network-log-capture: true
183+
ref: ${{ needs.fetch-xts-candidate.outputs.xts-tag-commit }}
184+
secrets:
185+
access-token: ${{ secrets.GITHUB_TOKEN }}
186+
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
187+
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
188+
189+
xts-time-consuming-tests:
190+
name: XTS Time Consuming Tests
191+
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
192+
needs: fetch-xts-candidate
193+
if: ${{ needs.fetch-xts-candidate.result == 'success' && needs.fetch-xts-candidate.outputs.xts-tag-exists == 'true' }}
194+
with:
195+
custom-job-label: "XTS Time Consuming"
182196
enable-time-consuming-tests: true
197+
enable-network-log-capture: true
198+
ref: ${{ needs.fetch-xts-candidate.outputs.xts-tag-commit }}
199+
secrets:
200+
access-token: ${{ secrets.GITHUB_TOKEN }}
201+
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
202+
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
203+
204+
xts-hammer-tests:
205+
name: XTS Hammer Tests
206+
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
207+
needs: fetch-xts-candidate
208+
if: ${{ needs.fetch-xts-candidate.result == 'success' && needs.fetch-xts-candidate.outputs.xts-tag-exists == 'true' }}
209+
with:
210+
custom-job-label: "XTS Hammer Tests"
183211
enable-hammer-tests: true
212+
enable-network-log-capture: true
213+
ref: ${{ needs.fetch-xts-candidate.outputs.xts-tag-commit }}
214+
secrets:
215+
access-token: ${{ secrets.GITHUB_TOKEN }}
216+
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
217+
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
218+
219+
xts-hapi-time-consuming-tests:
220+
name: XTS HAPI Tests (Time Consuming)
221+
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
222+
needs: fetch-xts-candidate
223+
if: ${{ needs.fetch-xts-candidate.result == 'success' && needs.fetch-xts-candidate.outputs.xts-tag-exists == 'true' }}
224+
with:
225+
custom-job-label: "XTS HAPI Time Consuming"
184226
enable-hapi-tests-time-consuming: true
227+
enable-network-log-capture: true
228+
ref: ${{ needs.fetch-xts-candidate.outputs.xts-tag-commit }}
229+
secrets:
230+
access-token: ${{ secrets.GITHUB_TOKEN }}
231+
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
232+
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
233+
234+
xts-hapi-block-node-comms-tests:
235+
name: XTS HAPI Tests (Block Node Communication)
236+
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
237+
needs: fetch-xts-candidate
238+
if: ${{ needs.fetch-xts-candidate.result == 'success' && needs.fetch-xts-candidate.outputs.xts-tag-exists == 'true' }}
239+
with:
240+
custom-job-label: "XTS HAPI Block Node Comms"
185241
enable-hapi-tests-bn-communication: true
186242
enable-network-log-capture: true
187243
ref: ${{ needs.fetch-xts-candidate.outputs.xts-tag-commit }}
@@ -299,11 +355,22 @@ jobs:
299355
runs-on: hiero-citr-linux-medium
300356
needs:
301357
- abbreviated-panel
302-
- extended-test-suite
303358
- fetch-xts-candidate
304359
- hedera-node-jrs-panel
305360
- sdk-tck-regression-panel
306-
if: ${{ needs.abbreviated-panel.result == 'success' || needs.extended-test-suite.result == 'success' || needs.hedera-node-jrs-panel.result == 'success' }}
361+
- xts-hammer-tests
362+
- xts-hapi-block-node-comms-tests
363+
- xts-hapi-time-consuming-tests
364+
- xts-time-consuming-tests
365+
- xts-timing-sensitive-tests
366+
if: ${{ needs.abbreviated-panel.result == 'success' ||
367+
needs.hedera-node-jrs-panel.result == 'success' ||
368+
needs.sdk-tck-regression-panel.result == 'success' ||
369+
needs.xts-hammer-tests.result == 'success' ||
370+
needs.xts-hapi-block-node-comms-tests.result == 'success' ||
371+
needs.xts-hapi-time-consuming-tests.result == 'success' ||
372+
needs.xts-time-consuming-tests.result == 'success' ||
373+
needs.xts-timing-sensitive-tests.result == 'success' }}
307374
steps:
308375
- name: Harden Runner
309376
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
@@ -367,17 +434,25 @@ jobs:
367434
runs-on: hiero-citr-linux-medium
368435
needs:
369436
- abbreviated-panel
370-
- extended-test-suite
371437
- fetch-xts-candidate
372438
- hedera-node-jrs-panel
373439
- sdk-tck-regression-panel
374440
- tag-for-promotion
441+
- xts-hammer-tests
442+
- xts-hapi-block-node-comms-tests
443+
- xts-hapi-time-consuming-tests
444+
- xts-time-consuming-tests
445+
- xts-timing-sensitive-tests
375446
if: ${{ (needs.abbreviated-panel.result == 'success' &&
376-
needs.extended-test-suite.result == 'success' &&
377447
needs.fetch-xts-candidate.result == 'success' &&
378448
needs.hedera-node-jrs-panel.result == 'success' &&
379449
needs.sdk-tck-regression-panel.result == 'success' &&
380-
needs.tag-for-promotion.result == 'success') &&
450+
needs.tag-for-promotion.result == 'success' &&
451+
needs.xts-hammer-tests.result == 'success' &&
452+
needs.xts-hapi-block-node-comms-tests.result == 'success' &&
453+
needs.xts-hapi-time-consuming-tests.result == 'success' &&
454+
needs.xts-time-consuming-tests.result == 'success' &&
455+
needs.xts-timing-sensitive-tests == 'success') &&
381456
!cancelled() }}
382457
steps:
383458
- name: Harden Runner
@@ -421,7 +496,23 @@ jobs:
421496
},
422497
{
423498
"type": "plain_text",
424-
"text": "Execute eXtended Test Suite: ${{ needs.extended-test-suite.result }}"
499+
"text": "XTS Timing Sensitive Tests: ${{ needs.xts-timing-sensitive-tests.result }}"
500+
},
501+
{
502+
"type": "plain_text",
503+
"text": "XTS Time Consuming Tests: ${{ needs.xts-time-consuming-tests.result }}"
504+
},
505+
{
506+
"type": "plain_text",
507+
"text": "XTS Hammer Tests: ${{ needs.xts-hammer-tests.result }}"
508+
},
509+
{
510+
"type": "plain_text",
511+
"text": "XTS HAPI Time Consuming Tests: ${{ needs.xts-hapi-time-consuming-tests.result }}"
512+
},
513+
{
514+
"type": "plain_text",
515+
"text": "XTS HAPI Block Node Comms Tests: ${{ needs.xts-hapi-block-node-comms-tests.result }}"
425516
},
426517
{
427518
"type": "plain_text",
@@ -511,17 +602,25 @@ jobs:
511602
runs-on: hiero-citr-linux-medium
512603
needs:
513604
- abbreviated-panel
514-
- extended-test-suite
515605
- fetch-xts-candidate
516606
- hedera-node-jrs-panel
517607
- sdk-tck-regression-panel
518608
- tag-for-promotion
609+
- xts-hammer-tests
610+
- xts-hapi-block-node-comms-tests
611+
- xts-hapi-time-consuming-tests
612+
- xts-time-consuming-tests
613+
- xts-timing-sensitive-tests
519614
if: ${{ (needs.fetch-xts-candidate.result != 'success' ||
520615
needs.abbreviated-panel.result != 'success' ||
521-
needs.extended-test-suite.result != 'success' ||
522616
needs.hedera-node-jrs-panel.result != 'success' ||
523617
needs.sdk-tck-regression-panel.result != 'success' ||
524-
needs.tag-for-promotion.result != 'success') &&
618+
needs.tag-for-promotion.result != 'success' ||
619+
needs.xts-hammer-tests.result != 'success' ||
620+
needs.xts-hapi-block-node-comms-tests.result != 'success' ||
621+
needs.xts-hapi-time-consuming-tests.result != 'success' ||
622+
needs.xts-time-consuming-tests.result != 'success' ||
623+
needs.xts-timing-sensitive-tests.result != 'success') &&
525624
!cancelled() && always() }}
526625

527626
steps:
@@ -581,13 +680,48 @@ jobs:
581680
fi
582681
echo "slack-user-id=${SLACK_USER_ID}" >> "${GITHUB_OUTPUT}"
583682
683+
- name: Determine failure mode
684+
id: extended-test-suite-failure
685+
if: ${{ needs.xts-timing-sensitive-tests.result != 'success' ||
686+
needs.xts-time-consuming-tests.result != 'success' ||
687+
needs.xts-hammer-tests.result != 'success' ||
688+
needs.xts-hapi-time-consuming-tests.result != 'success' ||
689+
needs.xts-hapi-block-node-comms-tests.result != 'success' }}
690+
run: |
691+
# define a function to check for workflow failure mode
692+
has_workflow() {
693+
local arr=("$@")
694+
for mode in "${arr[@]}"; do
695+
[[ "mode" == "workflow" ]] && return 0
696+
done
697+
return 1
698+
}
699+
700+
# Collect the statuses of all XTS suite jobs
701+
xts_suite_statuses=(
702+
"${{ needs.xts-timing-sensitive-tests.outputs.mode }}"
703+
"${{ needs.xts-time-consuming-tests.outputs.mode }}"
704+
"${{ needs.xts-hammer-tests.outputs.mode }}"
705+
"${{ needs.xts-hapi-time-consuming-tests.outputs.mode }}"
706+
"${{ needs.xts-hapi-block-node-comms-tests.outputs.mode }}"
707+
)
708+
709+
# determine failure mode
710+
failure_mode="general"
711+
if has_workflow "${xts_suite_statuses[@]}"; then
712+
failure_mode="workflow"
713+
fi
714+
715+
# Set the output variable
716+
echo "mode=${failure_mode}" >> "${GITHUB_OUTPUT}"
717+
584718
- name: Set Rootly Service Name
585719
id: set-rootly-service
586720
run: |
587721
ROOTLY_SERVICE_NAME="CITR General"
588722
if [[ "${{ needs.fetch-xts-candidate.result }}" =~ ^(cancelled|failure)$ ]] \
589723
|| [[ "${{ needs.tag-for-promotion.result }}" =~ ^(cancelled|failure)$ ]] \
590-
|| [[ "${{ needs.extended-test-suite.outputs.failure-mode }}" == "workflow" ]]; then
724+
|| [[ "${{ steps.extended-test-suite-failure.outputs.mode || 'general' }}" == "workflow" ]]; then
591725
ROOTLY_SERVICE_NAME="CI/CD Workflows"
592726
elif [[ "${{ needs.sdk-tck-regression-panel.result }}" =~ ^(cancelled|failure)$ ]]; then
593727
ROOTLY_SERVICE_NAME="CITR TCK"
@@ -604,7 +738,11 @@ jobs:
604738
echo "------------------------------------"
605739
echo "Status of each jobs:"
606740
echo "- Abbreviated Panel: ${{ needs.abbreviated-panel.result }}"
607-
echo "- Extended Test Suite: ${{ needs.extended-test-suite.result }}"
741+
echo "- XTS Timing Sensitive Tests: ${{ needs.xts-timing-sensitive-tests.result }}"
742+
echo "- XTS Time Consuming Tests: ${{ needs.xts-time-consuming-tests.result }}"
743+
echo "- XTS Hammer Tests: ${{ needs.xts-hammer-tests.result }}"
744+
echo "- XTS HAPI Time Consuming Tests: ${{ needs.xts-hapi-time-consuming-tests.result }}"
745+
echo "- XTS HAPI Block Node Comms Tests: ${{ needs.xts-hapi-block-node-comms-tests.result }}"
608746
echo "- Hedera Node JRS Panel: ${{ needs.hedera-node-jrs-panel.result }}"
609747
echo "- SDK TCK Regression Panel: ${{ needs.sdk-tck-regression-panel.result }}"
610748
echo "- Tag for Promotion: ${{ needs.tag-for-promotion.result }}"
@@ -676,7 +814,23 @@ jobs:
676814
},
677815
{
678816
"type": "plain_text",
679-
"text": "Execute eXtended Test Suite: ${{ needs.extended-test-suite.result }}"
817+
"text": "XTS Timing Sensitive Tests: ${{ needs.xts-timing-sensitive-tests.result }}"
818+
},
819+
{
820+
"type": "plain_text",
821+
"text": "XTS Time Consuming Tests: ${{ needs.xts-time-consuming-tests.result }}"
822+
},
823+
{
824+
"type": "plain_text",
825+
"text": "XTS Hammer Tests: ${{ needs.xts-hammer-tests.result }}"
826+
},
827+
{
828+
"type": "plain_text",
829+
"text": "XTS HAPI Time Consuming Tests: ${{ needs.xts-hapi-time-consuming-tests.result }}"
830+
},
831+
{
832+
"type": "plain_text",
833+
"text": "XTS HAPI Block Node Comms Tests: ${{ needs.xts-hapi-block-node-comms-tests.result }}"
680834
},
681835
{
682836
"type": "plain_text",

.github/workflows/zxf-dry-run-extended-test-suite.yaml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,68 @@ defaults:
5858
shell: bash
5959

6060
jobs:
61-
extended-test-suite:
62-
name: Execute eXtended Test Suite
61+
xts-timing-sensitive-tests:
62+
name: XTS Timing Sensitive Tests
6363
if: ${{ inputs.enable-extended-test-suite == true }}
6464
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
6565
with:
66-
custom-job-label: "Dry-Run: Execute eXtended Test Suite"
66+
custom-job-label: "XTS Timing Sensitive"
6767
enable-timing-sensitive-tests: true
68+
enable-network-log-capture: true
69+
ref: ${{ inputs.commit_sha }}
70+
secrets:
71+
access-token: ${{ secrets.GITHUB_TOKEN }}
72+
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
73+
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
74+
75+
xts-time-consuming-tests:
76+
name: XTS Time Consuming Tests
77+
if: ${{ inputs.enable-extended-test-suite == true }}
78+
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
79+
with:
80+
custom-job-label: "XTS Time Consuming"
6881
enable-time-consuming-tests: true
82+
enable-network-log-capture: true
83+
ref: ${{ inputs.commit_sha }}
84+
secrets:
85+
access-token: ${{ secrets.GITHUB_TOKEN }}
86+
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
87+
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
88+
89+
xts-hammer-tests:
90+
name: XTS Hammer Tests
91+
if: ${{ inputs.enable-extended-test-suite == true }}
92+
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
93+
with:
94+
custom-job-label: "XTS Hammer Tests"
6995
enable-hammer-tests: true
96+
enable-network-log-capture: true
97+
ref: ${{ inputs.commit_sha }}
98+
secrets:
99+
access-token: ${{ secrets.GITHUB_TOKEN }}
100+
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
101+
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
102+
103+
xts-hapi-time-consuming-tests:
104+
name: XTS HAPI Tests (Time Consuming)
105+
if: ${{ inputs.enable-extended-test-suite == true }}
106+
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
107+
with:
108+
custom-job-label: "XTS HAPI Time Consuming"
70109
enable-hapi-tests-time-consuming: true
110+
enable-network-log-capture: true
111+
ref: ${{ inputs.commit_sha }}
112+
secrets:
113+
access-token: ${{ secrets.GITHUB_TOKEN }}
114+
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
115+
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
116+
117+
xts-hapi-block-node-comms-tests:
118+
name: XTS HAPI Tests (Block Node Communication)
119+
if: ${{ inputs.enable-extended-test-suite == true }}
120+
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
121+
with:
122+
custom-job-label: "XTS HAPI Block Node Comms"
71123
enable-hapi-tests-bn-communication: true
72124
enable-network-log-capture: true
73125
ref: ${{ inputs.commit_sha }}

gradle/wrapper/gradle-wrapper.jar

1.65 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
distributionBase=GRADLE_USER_HOME
44
distributionPath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
66
networkTimeout=10000
77
validateDistributionUrl=true
88
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)