Skip to content
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

ci: Update self-hosted-runners for hiero-ledger transfer #2193

Merged
merged 7 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Default code owners for entire repository
* @hashgraph/hedera-sdk-java-maintainers
* @hiero-ledger/hiero-sdk-java-maintainers

#########################
##### Core Files ######
Expand All @@ -8,34 +8,35 @@
# NOTE: Must be placed last to ensure enforcement over all other rules

# Protection Rules for Github Configuration Files and Actions Workflows
/.github/ @hashgraph/platform-ci @hashgraph/release-engineering-managers
/.github/workflows/ @hashgraph/platform-ci @hashgraph/platform-ci-committers @hashgraph/release-engineering-managers
/.github/ @hiero-ledger/github-maintainers @hiero-ledger/github-committers
/.github/workflows/ @hiero-ledger/github-maintainers @hiero-ledger/github-committers
/.github/dependabot.yml @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-java-maintainers @hiero-ledger/hiero-sdk-java-committers

# Legacy Maven project files
**/pom.xml @hashgraph/platform-ci @hashgraph/platform-ci-committers @hashgraph/release-engineering-managers @hashgraph/hedera-sdk-java-maintainers
**/pom.xml @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-java-maintainers

# Gradle project files and inline plugins
/gradle/ @hashgraph/platform-ci @hashgraph/platform-ci-committers
gradlew @hashgraph/platform-ci @hashgraph/platform-ci-committers
gradlew.bat @hashgraph/platform-ci @hashgraph/platform-ci-committers
**/build-logic/ @hashgraph/platform-ci @hashgraph/platform-ci-committers
**/gradle.* @hashgraph/platform-ci @hashgraph/platform-ci-committers
**/*.gradle.* @hashgraph/platform-ci @hashgraph/platform-ci-committers
/gradle/ @hiero-ledger/github-maintainers @hiero-ledger/github-committers
gradlew @hiero-ledger/github-maintainers @hiero-ledger/github-committers
gradlew.bat @hiero-ledger/github-maintainers @hiero-ledger/github-committers
**/build-logic/ @hiero-ledger/github-maintainers @hiero-ledger/github-committers
**/gradle.* @hiero-ledger/github-maintainers @hiero-ledger/github-committers
**/*.gradle.* @hiero-ledger/github-maintainers @hiero-ledger/github-committers

# Codacy Tool Configurations
/config/ @hashgraph/platform-ci @hashgraph/platform-ci-committers @hashgraph/release-engineering-managers @hashgraph/hedera-sdk-java-maintainers
.remarkrc @hashgraph/platform-ci @hashgraph/platform-ci-committers @hashgraph/release-engineering-managers @hashgraph/hedera-sdk-java-maintainers
/config/ @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-java-maintainers
.remarkrc @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-java-maintainers

# Self-protection for root CODEOWNERS files (this file should not exist and should definitely require approval)
/CODEOWNERS @hashgraph/release-engineering-managers
/CODEOWNERS @hiero-ledger/github-maintainers

# Protect the repository root files
/README.md @hashgraph/platform-ci @hashgraph/platform-ci-committers @hashgraph/release-engineering-managers @hashgraph/hedera-sdk-java-maintainers
**/LICENSE @hashgraph/release-engineering-managers
/README.md @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-java-maintainers
**/LICENSE @hiero-ledger/github-maintainers @hiero-ledger/hiero-sdk-java-maintainers

# CodeCov configuration
**/codecov.yml @hashgraph/platform-ci @hashgraph/platform-ci-committers @hashgraph/release-engineering-managers
**/codecov.yml @hiero-ledger/github-maintainers @hiero-ledger/github-committers

# Git Ignore definitions
**/.gitignore @hashgraph/platform-ci @hashgraph/platform-ci-committers @hashgraph/release-engineering-managers
**/.gitignore.* @hashgraph/platform-ci @hashgraph/platform-ci-committers @hashgraph/release-engineering-managers
**/.gitignore @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-java-maintainers @hiero-ledger/hiero-sdk-java-committers
**/.gitignore.* @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-java-maintainers @hiero-ledger/hiero-sdk-java-committers
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
jobs:
build:
name: Build
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium
rbarker-dev marked this conversation as resolved.
Show resolved Hide resolved
steps:
rbarker-dev marked this conversation as resolved.
Show resolved Hide resolved
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
Expand All @@ -55,7 +55,7 @@ jobs:

test:
name: Unit and Integration Tests
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium
rbarker-dev marked this conversation as resolved.
Show resolved Hide resolved
needs:
- build
steps:
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:

run-examples:
name: Run Examples
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium
needs:
- build
steps:
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:

test-tck:
name: TCK Tests
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium
needs:
- build
steps:
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/disabled/main.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# SPDX-License-Identifier: Apache-2.0
name: Hedera Services Main

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
test:
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium
strategy:
matrix:
version: [ 'current', 'latest' ]
version: ["current", "latest"]

steps:
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.gradle/caches
Expand All @@ -22,12 +23,12 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 12
uses: actions/setup-java@v2
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '12'
distribution: 'adopt'
java-version: "12"
distribution: "adopt"
- name: Fetch Hedera Services
uses: actions/checkout@v2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: hashgraph/hedera-services
path: hedera-services
Expand All @@ -50,12 +51,12 @@ jobs:
working-directory: hedera-services
run: docker build -t services-node:$TAG .
- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '17.0.13'
distribution: 'adopt'
java-version: "17.0.13"
distribution: "adopt"
- name: Fetch Hedera SDK
uses: actions/checkout@v2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: hedera-sdk-java
- name: Run Hedera SDK Tests
Expand Down
27 changes: 14 additions & 13 deletions .github/workflows/disabled/previewnet.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# SPDX-License-Identifier: Apache-2.0
name: Previewnet

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
build:
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '17.0.13'
distribution: 'adopt'
java-version: "17.0.13"
distribution: "adopt"
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.gradle/caches
Expand All @@ -28,17 +29,17 @@ jobs:
run: ./gradlew build

test:
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '17.0.13'
distribution: 'adopt'
java-version: "17.0.13"
distribution: "adopt"
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.gradle/caches
Expand Down
47 changes: 24 additions & 23 deletions .github/workflows/disabled/testnet.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# SPDX-License-Identifier: Apache-2.0
name: Testnet

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
compile:
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '17.0.13'
distribution: 'adopt'
java-version: "17.0.13"
distribution: "adopt"
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.gradle/caches
Expand All @@ -36,19 +37,19 @@ jobs:
run: ./gradlew :examples:compileJava

build:
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '17.0.13'
distribution: 'adopt'
java-version: "17.0.13"
distribution: "adopt"
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.gradle/caches
Expand All @@ -57,7 +58,7 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache SonarCloud packages
uses: actions/cache@v1
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
Expand All @@ -69,17 +70,17 @@ jobs:
run: ./gradlew build sonarqube --info

test:
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '17.0.13'
distribution: 'adopt'
java-version: "17.0.13"
distribution: "adopt"
- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.gradle/caches
Expand All @@ -94,7 +95,7 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
./gradlew -POPERATOR_ID=$OPERATOR_ID -POPERATOR_KEY=$OPERATOR_KEY -PHEDERA_NETWORK=testnet :aggregation:testCodeCoverageReport && bash <(curl -s https://codecov.io/bash)
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
jobs:
publish:
name: Publish
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
validate-release:
name: Validate Release
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

maven-central:
name: Publish to Maven Central
runs-on: client-sdk-linux-medium
runs-on: hiero-client-sdk-linux-medium
needs:
# This needs clause exists solely to provide a dependency on the previous step. This publish step will not occur
# until the validate-release step completes successfully.
Expand Down