-
Notifications
You must be signed in to change notification settings - Fork 128
Add github workflow to test non-zero shard/realm #11608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
xin-hedera
merged 10 commits into
main
from
11540-create-github-action-to-run-tests-with-non-zero-shard-and-realm
Jul 21, 2025
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
bd412a1
add workflow to test nzr
xin-hedera 24a6767
don't fail other jobs in the matrix
xin-hedera 20a0c83
apply fail-fast=false to all workflows
xin-hedera b4aa197
remove temporary branch push trigger
xin-hedera 03282da
address feedback
xin-hedera 8f59a2a
combine checkout steps and test it
xin-hedera dec008f
fix bug
xin-hedera 43f2b94
fix rosetta test failure; use shard/realm not in any existing tests
xin-hedera 54d56d1
Merge remote-tracking branch 'origin/main' into 11540-create-github-a…
xin-hedera e1c9e39
undo branch push trigger
xin-hedera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ jobs: | |
images: | ||
runs-on: hiero-mirror-node-linux-medium | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
module: | ||
[ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: "Test non-zero shard and realm network" | ||
steven-sheehy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # Daily at midnight | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: "Branch" | ||
required: true | ||
type: string | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
LC_ALL: C.UTF-8 | ||
CGO_ENABLED: 1 | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
env: | ||
HIERO_MIRROR_COMMON_REALM: 1 | ||
HIERO_MIRROR_COMMON_SHARD: 1 | ||
runs-on: hiero-mirror-node-linux-large | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
project: | ||
- common | ||
steven-sheehy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- graphql | ||
- grpc | ||
- importer | ||
- monitor | ||
- rest | ||
- rest-java | ||
- rosetta | ||
- web3 | ||
schema: | ||
- v1 | ||
- v2 | ||
steven-sheehy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
exclude: | ||
- project: common | ||
schema: v2 | ||
- project: monitor | ||
schema: v2 | ||
- project: rosetta | ||
schema: v2 | ||
timeout-minutes: 40 # increase it from 20 minutes since some jobs often run longer on self-hosted runners | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: Checkout Code | ||
if: ${{ github.event_name != 'workflow_dispatch' }} | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
||
- name: Checkout Code from Branch | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
|
||
- name: Install JDK | ||
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4 | ||
|
||
- name: Execute Gradle | ||
env: | ||
MIRROR_NODE_SCHEMA: ${{ matrix.schema}} | ||
SPRING_PROFILES_ACTIVE: ${{ matrix.schema}} | ||
run: ./gradlew :${{matrix.project}}:build --scan ${{ secrets.GRADLE_ARGS }} | ||
|
||
- name: Build and test web3 with modularized code | ||
env: | ||
HIERO_MIRROR_WEB3_EVM_MODULARIZEDSERVICES: "true" | ||
HIERO_MIRROR_WEB3_EVM_MODULARIZEDTRAFFICPERCENT: "1.0" | ||
if: ${{ matrix.project == 'web3' && matrix.schema == 'v1'}} | ||
run: ./gradlew :${{ matrix.project }}:build | ||
steven-sheehy marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ env: | |
jobs: | ||
publish: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
project: | ||
- graphql | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ env: | |
jobs: | ||
image: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
project: | ||
- graphql | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.