Skip to content

Commit

Permalink
merge from upstream
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Petrov <[email protected]>
  • Loading branch information
anthony-swirldslabs committed Mar 19, 2024
2 parents d3a4316 + ac78214 commit 4f625ab
Show file tree
Hide file tree
Showing 773 changed files with 33,323 additions and 13,744 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flow-node-performance-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@5a50e581162a13f4baa8916d01180d2acbc04363 # v2.1.0
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c # v2.1.2
with:
workload_identity_provider: "projects/235822363393/locations/global/workloadIdentityPools/hedera-builds-pool/providers/hedera-builds-gh-actions"
service_account: "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flow-pull-request-formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
runs-on: [self-hosted, Linux, medium, ephemeral]
steps:
- name: Check PR Title
uses: aslafy-z/conventional-pr-title-action@2ce59b07f86bd51b521dd088f0acfb0d7fdac55e # v3.1.1
uses: aslafy-z/conventional-pr-title-action@a0b851005a0f82ac983a56ead5a8111c0d8e044a # v3.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/node-flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:

eet-tests:
name: E2E Tests
if: ${{ false }}
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- dependency-check
Expand All @@ -107,6 +108,7 @@ jobs:

integration-tests:
name: Integration Tests
if: ${{ false }}
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- dependency-check
Expand Down
58 changes: 29 additions & 29 deletions .github/workflows/node-zxc-build-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,19 @@ jobs:
java-version: ${{ inputs.java-version }}

- name: Setup Gradle
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}

- name: Gradle Update Version (As Specified)
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
if: ${{ inputs.version-policy == 'specified' && !cancelled() && !failure() }}
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: versionAsSpecified -PnewVersion=${{ inputs.new-version }} --scan

- name: Gradle Update Version (Branch Commit)
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
if: ${{ inputs.version-policy != 'specified' && !cancelled() && !failure() }}
with:
gradle-version: ${{ inputs.gradle-version }}
Expand All @@ -204,7 +204,7 @@ jobs:
echo "prerelease=${PRERELEASE}" >>"${GITHUB_OUTPUT}"
- name: Cache Build Version
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: version.txt
key: node-build-version-${{ steps.effective-version.outputs.number }}-${{ github.sha }}
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@5a50e581162a13f4baa8916d01180d2acbc04363 # v2.1.0
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c # v2.1.2
if: ${{ inputs.dry-run-enabled != true && !cancelled() && !failure() }}
with:
workload_identity_provider: "projects/235822363393/locations/global/workloadIdentityPools/hedera-builds-pool/providers/hedera-builds-gh-actions"
Expand All @@ -276,32 +276,32 @@ jobs:
java-version: ${{ inputs.java-version }}

- name: Setup Gradle
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}

- name: Restore Build Version
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
fail-on-cache-miss: true
path: version.txt
key: node-build-version-${{ needs.validate.outputs.version }}-${{ github.sha }}

- name: Cache Build Artifacts
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: ~/artifact-build
key: node-build-artifacts-${{ needs.validate.outputs.version }}-${{ github.sha }}

- name: Gradle Assemble
id: gradle-build
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: assemble --scan

- name: Gradle Version Summary
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: githubVersionSummary --scan
Expand Down Expand Up @@ -334,7 +334,7 @@ jobs:
mkdir -p "${ARTIFACT_BASE_DIR}"
if [[ "${POLICY}" == "branch-commit" ]]; then
ARTIFACT_NAME="build-${{ needs.validate.outputs.branch-name-lower }}-${{ needs.validate.outputs.commit-id-short }}"
ARTIFACT_NAME="build-${{ needs.validate.outputs.branch-name-safe }}-${{ needs.validate.outputs.commit-id-short }}"
else
ARTIFACT_NAME="build-v${{ needs.validate.outputs.version }}"
fi
Expand Down Expand Up @@ -414,7 +414,7 @@ jobs:

- name: Authenticate to Google Cloud
id: google-auth
uses: google-github-actions/auth@5a50e581162a13f4baa8916d01180d2acbc04363 # v2.1.0
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c # v2.1.2
if: ${{ inputs.dry-run-enabled != true && !cancelled() && !failure() }}
with:
token_format: 'access_token'
Expand Down Expand Up @@ -458,7 +458,7 @@ jobs:
password: ${{ steps.google-auth.outputs.access_token }}

- name: Restore Build Artifacts
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
fail-on-cache-miss: true
path: ~/artifact-build
Expand Down Expand Up @@ -554,7 +554,7 @@ jobs:
- name: Import GPG key
id: gpg_key
uses: crazy-max/ghaction-import-gpg@82a020f1f7f605c65dd2449b392a52c3fcfef7ef # v6.0.0
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
if: ${{ inputs.dry-run-enabled != true && !cancelled() && !failure() }}
with:
gpg_private_key: ${{ secrets.svcs-gpg-key-contents }}
Expand All @@ -571,39 +571,39 @@ jobs:
java-version: ${{ inputs.java-version }}

- name: Setup Gradle
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}

- name: Restore Build Version
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
fail-on-cache-miss: true
path: version.txt
key: node-build-version-${{ needs.validate.outputs.version }}-${{ github.sha }}

- name: Gradle Update Version (Snapshot)
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
if: ${{ inputs.version-policy != 'specified' && !cancelled() && !failure() }}
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: versionAsSnapshot --scan

- name: Gradle Assemble
id: gradle-build
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: assemble --scan

- name: Gradle Version Summary
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: githubVersionSummary --scan

- name: Gradle Maven Central Release
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
if: ${{ inputs.dry-run-enabled != true && inputs.version-policy == 'specified' && !cancelled() && !failure() }}
env:
OSSRH_USERNAME: ${{ secrets.svcs-ossrh-username }}
Expand All @@ -613,7 +613,7 @@ jobs:
arguments: "releaseEvmMavenCentral --scan -PpublishSigningEnabled=true --no-configuration-cache --no-parallel"

- name: Gradle Maven Central Snapshot
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
if: ${{ inputs.dry-run-enabled != true && inputs.version-policy != 'specified' && !cancelled() && !failure() }}
env:
OSSRH_USERNAME: ${{ secrets.svcs-ossrh-username }}
Expand Down Expand Up @@ -646,7 +646,7 @@ jobs:
- name: Import GPG key
id: gpg_key
uses: crazy-max/ghaction-import-gpg@82a020f1f7f605c65dd2449b392a52c3fcfef7ef # v6.0.0
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
with:
gpg_private_key: ${{ secrets.sdk-gpg-key-contents }}
passphrase: ${{ secrets.sdk-gpg-key-passphrase }}
Expand All @@ -657,7 +657,7 @@ jobs:

- name: Authenticate to Google Cloud
id: google-auth
uses: google-github-actions/auth@5a50e581162a13f4baa8916d01180d2acbc04363 # v2.1.0
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c # v2.1.2
with:
workload_identity_provider: "projects/229164983194/locations/global/workloadIdentityPools/registry-identity-pool/providers/gh-provider"
service_account: "[email protected]"
Expand All @@ -673,25 +673,25 @@ jobs:
java-version: ${{ inputs.java-version }}

- name: Setup Gradle
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}

- name: Restore Build Version
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
fail-on-cache-miss: true
path: version.txt
key: node-build-version-${{ needs.validate.outputs.version }}-${{ github.sha }}

- name: Gradle Assemble
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: assemble --scan

- name: Gradle Version Summary
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: githubVersionSummary --scan
Expand Down Expand Up @@ -769,7 +769,7 @@ jobs:
echo "::endgroup::"
- name: Gradle Publish to ${{ inputs.version-policy == 'specified' && 'Maven Central' || 'Google Artifact Registry' }} (${{ inputs.sdk-release-profile }})
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
if: ${{ inputs.dry-run-enabled != true && inputs.sdk-release-profile != 'none' && !cancelled() && !failure() }}
env:
OSSRH_USERNAME: ${{ secrets.sdk-ossrh-username }}
Expand Down Expand Up @@ -814,7 +814,7 @@ jobs:
echo "artifact-registry=${ARTIFACT_REGISTRY}" >>"${GITHUB_OUTPUT}"
- name: Send Slack Notification (Maven Central)
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
env:
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
SLACK_WEBHOOK_URL: ${{ secrets.slack-webhook-url }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/node-zxc-compile-application-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ jobs:
java-version: ${{ inputs.java-version }}

- name: Setup Gradle
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0
with:
cache-read-only: false

- name: Setup NodeJS
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ inputs.node-version }}

Expand Down Expand Up @@ -260,7 +260,7 @@ jobs:
junit_files: "**/build/test-results/itest/TEST-*.xml"

- name: Publish Integration Test Network Logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-integration-tests && inputs.enable-network-log-capture && !cancelled() }}
with:
name: Integration Test Network Logs
Expand All @@ -285,7 +285,7 @@ jobs:
junit_files: "**/build/test-results/hapiTestMisc/TEST-*.xml"

- name: Publish HAPI Test (Misc) Network Logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-hapi-tests-misc && inputs.enable-network-log-capture && !cancelled() }}
with:
name: HAPI Test (Misc) Network Logs
Expand All @@ -310,7 +310,7 @@ jobs:
junit_files: "**/build/test-results/hapiTestCrypto/TEST-*.xml"

- name: Publish HAPI Test (crypto) Network Logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-hapi-tests-crypto && inputs.enable-network-log-capture && !cancelled() }}
with:
name: HAPI Test (Crypto) Network Logs
Expand All @@ -335,7 +335,7 @@ jobs:
junit_files: "**/build/test-results/hapiTestToken/TEST-*.xml"

- name: Publish HAPI Test (Token) Network Logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-hapi-tests-token && inputs.enable-network-log-capture && !cancelled() }}
with:
name: HAPI Test (Token) Network Logs
Expand All @@ -360,7 +360,7 @@ jobs:
junit_files: "**/build/test-results/hapiTestSmartContract/TEST-*.xml"

- name: Publish HAPI Test (Smart Contract) Network Logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-hapi-tests-smart-contract && inputs.enable-network-log-capture && !cancelled() }}
with:
name: HAPI Test (Smart Contract) Network Logs
Expand All @@ -385,7 +385,7 @@ jobs:
junit_files: "**/build/test-results/hapiTestTimeConsuming/TEST-*.xml"

- name: Publish HAPI Test (Time Consuming) Network Logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-hapi-tests-time-consuming && inputs.enable-network-log-capture && !cancelled() }}
with:
name: HAPI Test (Time Consuming) Network Logs
Expand All @@ -410,7 +410,7 @@ jobs:
junit_files: "**/build/test-results/hapiTestRestart/TEST-*.xml"

- name: Publish HAPI Test (Restart) Network Logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-hapi-tests-restart && inputs.enable-network-log-capture && !cancelled() }}
with:
name: HAPI Test (Restart) Network Logs
Expand All @@ -436,7 +436,7 @@ jobs:
junit_files: "**/build/test-results/hapiTestNDReconnect/TEST-*.xml"

- name: Publish HAPI Test (Node Death Reconnect) Network Logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-hapi-tests-nd-reconnect && inputs.enable-network-log-capture && !cancelled() }}
with:
name: HAPI Test (Node Death Reconnect) Network Logs
Expand All @@ -459,7 +459,7 @@ jobs:
junit_files: "**/build/test-results/eet/TEST-*.xml"

- name: Publish E2E Test Network Logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-e2e-tests && inputs.enable-network-log-capture && !cancelled() }}
with:
name: E2E Test Network Logs
Expand All @@ -468,7 +468,7 @@ jobs:
- name: Publish To Codecov
if: ${{ inputs.enable-unit-tests && !cancelled() }}
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0

- name: Publish to Codacy
env:
Expand All @@ -477,7 +477,7 @@ jobs:
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java $(find . -name 'jacoco*.xml' -printf '-r %p ')

- name: Publish Test Reports
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: ${{ inputs.enable-unit-tests && !cancelled() }}
with:
name: Test Reports
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-zxc-deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
fi
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@5a50e581162a13f4baa8916d01180d2acbc04363 # v2.1.0
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c # v2.1.2
if: ${{ inputs.dry-run-enabled != true && !cancelled() && !failure() }}
with:
workload_identity_provider: "projects/235822363393/locations/global/workloadIdentityPools/hedera-builds-pool/providers/hedera-builds-gh-actions"
Expand Down
Loading

0 comments on commit 4f625ab

Please sign in to comment.