Skip to content

Commit

Permalink
Merge branch 'develop' into 09483-total-size-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
imalygin committed Nov 28, 2023
2 parents 7be247d + 0203ede commit 1315a54
Show file tree
Hide file tree
Showing 379 changed files with 31,404 additions and 2,169 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/node-flow-build-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ jobs:
enable-unit-tests: ${{ github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' }}
enable-sonar-analysis: ${{ github.event_name == 'push' || github.event.inputs.enable-sonar-analysis == 'true' }}
enable-integration-tests: ${{ github.event_name == 'push' || github.event.inputs.enable-integration-tests == 'true' }}
enable-hapi-tests: ${{ github.event_name == 'push' || github.event.inputs.enable-hapi-tests == 'true' }}
enable-hapi-tests-misc: ${{ github.event_name == 'push' || github.event.inputs.enable-hapi-tests == 'true' }}
enable-hapi-tests-crypto: ${{ github.event_name == 'push' || github.event.inputs.enable-hapi-tests == 'true' }}
enable-hapi-tests-token: ${{ github.event_name == 'push' || github.event.inputs.enable-hapi-tests == 'true' }}
enable-hapi-tests-smart-contract: ${{ github.event_name == 'push' || github.event.inputs.enable-hapi-tests == 'true' }}
enable-hapi-tests-time-consuming: ${{ github.event_name == 'push' || github.event.inputs.enable-hapi-tests == 'true' }}
enable-e2e-tests: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}
enable-spotless-check: ${{ github.event.inputs.enable-spotless-check == 'true' }}
enable-snyk-scan: ${{ github.event_name == 'push' || github.event.inputs.enable-snyk-scan == 'true' }}
Expand Down
80 changes: 72 additions & 8 deletions .github/workflows/node-flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jobs:
enable-unit-tests: false
enable-e2e-tests: false
enable-integration-tests: false
enable-hapi-tests: false
enable-sonar-analysis: false
enable-spotless-check: true
secrets:
Expand All @@ -66,7 +65,6 @@ jobs:
enable-unit-tests: true
enable-e2e-tests: false
enable-integration-tests: false
enable-hapi-tests: false
enable-sonar-analysis: false
secrets:
access-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -82,7 +80,6 @@ jobs:
enable-unit-tests: false
enable-e2e-tests: true
enable-integration-tests: false
enable-hapi-tests: false
enable-sonar-analysis: false
enable-network-log-capture: true
secrets:
Expand All @@ -99,7 +96,6 @@ jobs:
enable-unit-tests: false
enable-e2e-tests: false
enable-integration-tests: true
enable-hapi-tests: false
enable-sonar-analysis: false
enable-network-log-capture: true
secrets:
Expand All @@ -108,15 +104,83 @@ jobs:
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
sonar-token: ${{ secrets.SONAR_TOKEN }}

hapi-tests:
name: HAPI Tests
hapi-tests-misc:
name: HAPI Tests (Misc)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
with:
custom-job-label: Standard
enable-unit-tests: false
enable-e2e-tests: false
enable-integration-tests: false
enable-hapi-tests: true
enable-hapi-tests-misc: true
enable-sonar-analysis: false
enable-network-log-capture: true
secrets:
access-token: ${{ secrets.GITHUB_TOKEN }}
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
sonar-token: ${{ secrets.SONAR_TOKEN }}

hapi-tests-crypto:
name: HAPI Tests (Crypto)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
with:
custom-job-label: Standard
enable-unit-tests: false
enable-e2e-tests: false
enable-integration-tests: false
enable-hapi-tests-crypto: true
enable-sonar-analysis: false
enable-network-log-capture: true
secrets:
access-token: ${{ secrets.GITHUB_TOKEN }}
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
sonar-token: ${{ secrets.SONAR_TOKEN }}

hapi-tests-token:
name: HAPI Tests (Token)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
with:
custom-job-label: Standard
enable-unit-tests: false
enable-e2e-tests: false
enable-integration-tests: false
enable-hapi-tests-token: true
enable-sonar-analysis: false
enable-network-log-capture: true
secrets:
access-token: ${{ secrets.GITHUB_TOKEN }}
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
sonar-token: ${{ secrets.SONAR_TOKEN }}

hapi-tests-smart-contract:
name: HAPI Tests (Smart Contract)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
with:
custom-job-label: Standard
enable-unit-tests: false
enable-e2e-tests: false
enable-integration-tests: false
enable-hapi-tests-smart-contract: true
enable-sonar-analysis: false
enable-network-log-capture: true
secrets:
access-token: ${{ secrets.GITHUB_TOKEN }}
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
sonar-token: ${{ secrets.SONAR_TOKEN }}

hapi-tests-time-consuming:
name: HAPI Tests (Time Consuming)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
with:
custom-job-label: Standard
enable-unit-tests: false
enable-e2e-tests: false
enable-integration-tests: false
enable-hapi-tests-time-consuming: true
enable-sonar-analysis: false
enable-network-log-capture: true
secrets:
Expand Down Expand Up @@ -144,6 +208,7 @@ jobs:
gcp-project-number: ${{ secrets.PLATFORM_GCP_PROJECT_NUMBER }}
gcp-sa-key-contents: ${{ secrets.PLATFORM_GCP_KEY_FILE }}
slack-api-token: ${{ secrets.PLATFORM_SLACK_API_TOKEN }}

snyk-scan:
name: Snyk Scan
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
Expand All @@ -152,7 +217,6 @@ jobs:
enable-unit-tests: false
enable-e2e-tests: false
enable-integration-tests: false
enable-hapi-tests: false
enable-sonar-analysis: false
enable-snyk-scan: true
secrets:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/node-zxc-build-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1
uses: google-github-actions/auth@f105ef0cdb3b102a020be1767fcc8a974898b7c6 # v1.2.0
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 Expand Up @@ -370,7 +370,7 @@ jobs:

- name: Notify Jenkins of Release (Integration)
id: jenkins-integration
uses: fjogeleit/http-request-action@eab8015483ccea148feff7b1c65f320805ddc2bf # v1.14.1
uses: fjogeleit/http-request-action@25a5a55111f57b7eeaaff0ba0c6a457ce1895b90 # v1.14.2
if: ${{ inputs.dry-run-enabled != true && inputs.trigger-env-deploy == 'integration' && !cancelled() && !failure() }}
with:
url: ${{ secrets.jenkins-integration-url }}
Expand Down Expand Up @@ -414,7 +414,7 @@ jobs:

- name: Authenticate to Google Cloud
id: google-auth
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1
uses: google-github-actions/auth@f105ef0cdb3b102a020be1767fcc8a974898b7c6 # v1.2.0
if: ${{ inputs.dry-run-enabled != true && !cancelled() && !failure() }}
with:
token_format: 'access_token'
Expand Down Expand Up @@ -470,23 +470,23 @@ jobs:
cp -rvf ~/artifact-build/* hedera-node/infrastructure/docker/containers/local-node/main-network-node/sdk/
- name: Build Haveged Image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
push: true
platforms: linux/amd64,linux/arm64
context: hedera-node/infrastructure/docker/containers/local-node/network-node-haveged
tags: ${{ steps.set-registry.outputs.docker-tag-base }}/network-node-haveged:${{ needs.validate.outputs.version }}

- name: Build Base Image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
push: true
platforms: linux/amd64,linux/arm64
context: hedera-node/infrastructure/docker/containers/local-node/network-node-base
tags: ${{ steps.set-registry.outputs.docker-tag-base }}/network-node-base:${{ needs.validate.outputs.version }}

- name: Build Network Node Image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
push: true
platforms: linux/amd64,linux/arm64
Expand Down Expand Up @@ -610,7 +610,7 @@ jobs:
OSSRH_PASSWORD: ${{ secrets.svcs-ossrh-password }}
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: "releaseEvmMavenCentral --scan -PpublishSigningEnabled=true"
arguments: "releaseEvmMavenCentral --scan -PpublishSigningEnabled=true --no-configuration-cache --no-parallel"

- name: Gradle Maven Central Snapshot
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0
Expand All @@ -620,7 +620,7 @@ jobs:
OSSRH_PASSWORD: ${{ secrets.svcs-ossrh-password }}
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: "releaseEvmMavenCentralSnapshot --scan -PpublishSigningEnabled=true"
arguments: "releaseEvmMavenCentralSnapshot --scan -PpublishSigningEnabled=true --no-configuration-cache --no-parallel"

sdk-publish:
name: Publish Platform to ${{ inputs.version-policy == 'specified' && 'Maven Central' || 'GCP Registry' }}
Expand Down Expand Up @@ -657,7 +657,7 @@ jobs:

- name: Authenticate to Google Cloud
id: google-auth
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1
uses: google-github-actions/auth@f105ef0cdb3b102a020be1767fcc8a974898b7c6 # v1.2.0
with:
workload_identity_provider: "projects/229164983194/locations/global/workloadIdentityPools/registry-identity-pool/providers/gh-provider"
service_account: "artifact-deployer@swirlds-registry.iam.gserviceaccount.com"
Expand Down Expand Up @@ -776,7 +776,7 @@ jobs:
OSSRH_PASSWORD: ${{ secrets.sdk-ossrh-password }}
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: "release${{ inputs.sdk-release-profile }} --scan -PpublishSigningEnabled=true --no-configuration-cache"
arguments: "release${{ inputs.sdk-release-profile }} --scan -PpublishSigningEnabled=true --no-configuration-cache --no-parallel"

- name: Upload SDK Release Archives
if: ${{ inputs.dry-run-enabled != true && inputs.version-policy == 'specified' && !cancelled() && !failure() }}
Expand Down

0 comments on commit 1315a54

Please sign in to comment.