Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into 16840-enhance-Cons…
Browse files Browse the repository at this point in the history
…ensusEvent
  • Loading branch information
IvanKavaldzhiev committed Dec 23, 2024
2 parents 70cc987 + 111a2e2 commit c4321a1
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 25 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/node-zxc-build-release-artifact.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
# SPDX-License-Identifier: Apache-2.0
##
# Copyright (C) 2024 Hedera Hashgraph, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##

name: "ZXC: [Node] Deploy Release Artifacts"
on:
workflow_call:
Expand Down Expand Up @@ -643,7 +658,7 @@ jobs:
fi
- name: Upload Manifests
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ (steps.gcp.outcome == 'success' || steps.jfrog.outcome == 'success') && !cancelled() && always() }}
with:
name: Production Image Manifests
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/node-zxc-compile-application-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload Unit Test Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-unit-tests && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: Unit Test Report
Expand All @@ -241,7 +241,7 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload Unit Test (Timing Sensitive) Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-timing-sensitive-tests && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: Unit Test Report (Timing Sensitive)
Expand All @@ -263,7 +263,7 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload Unit Test (Time Consuming) Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-time-consuming-tests && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: Unit Test Report (Time Consuming)
Expand All @@ -285,7 +285,7 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload Hammer Test Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hammer-tests && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: Hammer Test Report
Expand All @@ -311,15 +311,15 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload HAPI Test (Misc) Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-misc && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: HAPI Test (Misc) Reports
path: "**/test-clients/build/test-results/**/TEST-*.xml"
retention-days: 7

- name: Upload HAPI Test (Misc) Network Logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-misc && inputs.enable-network-log-capture && steps.gradle-hapi-misc.conclusion == 'failure' && !cancelled() }}
with:
name: HAPI Test (Misc) Network Logs
Expand All @@ -345,15 +345,15 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload HAPI Test (Crypto) Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-crypto && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: HAPI Test (Crypto) Report
path: "**/test-clients/build/test-results/testSubprocess/TEST-*.xml"
retention-days: 7

- name: Upload HAPI Test (crypto) Network Logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-crypto && inputs.enable-network-log-capture && steps.gradle-hapi-crypto.conclusion == 'failure' && !cancelled() }}
with:
name: HAPI Test (Crypto) Network Logs
Expand All @@ -379,15 +379,15 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload HAPI Test (Token) Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-token && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: HAPI Test (Token) Report
path: "**/test-clients/build/test-results/testSubprocess/TEST-*.xml"
retention-days: 7

- name: Upload HAPI Test (Token) Network Logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-token && inputs.enable-network-log-capture && steps.gradle-hapi-token.conclusion == 'failure' && !cancelled() }}
with:
name: HAPI Test (Token) Network Logs
Expand All @@ -413,15 +413,15 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload HAPI Test (Smart Contract) Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-smart-contract && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: HAPI Test (Smart Contract) Report
path: "**/test-clients/build/test-results/testSubprocess/TEST-*.xml"
retention-days: 7

- name: Upload HAPI Test (Smart Contract) Network Logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-smart-contract && inputs.enable-network-log-capture && steps.gradle-hapi-smart-contract.conclusion == 'failure' && !cancelled() }}
with:
name: HAPI Test (Smart Contract) Network Logs
Expand All @@ -447,15 +447,15 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload HAPI Test (Time Consuming) Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-time-consuming && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: HAPI Test (Time Consuming) Report
path: "**/test-clients/build/test-results/testSubprocess/TEST-*.xml"
retention-days: 7

- name: Upload HAPI Test (Time Consuming) Network Logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-time-consuming && inputs.enable-network-log-capture && steps.gradle-hapi-time-consuming.conclusion == 'failure' && !cancelled() }}
with:
name: HAPI Test (Time Consuming) Network Logs
Expand All @@ -481,15 +481,15 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload HAPI Test (Restart) Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-restart && steps.gradle-build.conclusion == 'success' && !cancelled() }}
with:
name: HAPI Test (Restart) Report
path: "**/test-clients/build/test-results/testSubprocess/TEST-*.xml"
retention-days: 7

- name: Upload HAPI Test (Restart) Network Logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-restart && inputs.enable-network-log-capture && steps.gradle-hapi-restart.conclusion == 'failure' && !cancelled() }}
with:
name: HAPI Test (Restart) Network Logs
Expand All @@ -516,15 +516,15 @@ jobs:
comment_mode: errors # only comment if we could not find or parse the JUnit XML files

- name: Upload HAPI Test (Node Death Reconnect) Report Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-nd-reconnect && steps.gradle-build.conclusion == 'failure' && !cancelled() }}
with:
name: HAPI Test (Node Death Reconnect) Report
path: "**/test-clients/build/test-results/testSubprocess/TEST-*.xml"
retention-days: 7

- name: Upload HAPI Test (Node Death Reconnect) Network Logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-hapi-tests-nd-reconnect && inputs.enable-network-log-capture && steps.gradle-hapi-nd-reconnect.conclusion == 'failure' && !cancelled() }}
with:
name: HAPI Test (Node Death Reconnect) Network Logs
Expand All @@ -547,7 +547,7 @@ jobs:
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java -r gradle/aggregation/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml

- name: Upload Test Reports
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ inputs.enable-unit-tests && !cancelled() }}
with:
name: Test Reports
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zxc-verify-docker-build-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ jobs:
fi
- name: Publish Manifests
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ steps.regen-manifest.conclusion == 'success' && failure() && !cancelled() }}
with:
name: Docker Manifests [${{ join(matrix.os, ', ') }}]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zxc-verify-gradle-build-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ jobs:
fi
- name: Publish Manifests
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ steps.regen-manifest.conclusion == 'success' && failure() && !cancelled() }}
with:
name: Gradle Manifests [${{ join(matrix.os, ', ') }}]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zxcron-extended-test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ jobs:
done
- name: Upload log as artifact
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
path: run.log

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zxf-collect-workflow-logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Upload log as artifact
id: upload-log
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
path: workflow-run.log

Expand Down

0 comments on commit c4321a1

Please sign in to comment.