Skip to content

Commit

Permalink
ci: update workflows to use latitude.sh based runners (hashgraph#15110)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
  • Loading branch information
nathanklick authored Aug 26, 2024
1 parent fbdd36d commit 964616d
Show file tree
Hide file tree
Showing 27 changed files with 272 additions and 268 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/flow-artifact-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21.0.1"
default: "21"
push:
branches:
- develop
Expand All @@ -55,7 +55,7 @@ jobs:
with:
ref: ${{ github.event.inputs.ref || '' }}
java-distribution: ${{ inputs.java-distribution || 'temurin' }}
java-version: ${{ inputs.java-version || '21.0.1' }}
java-version: ${{ inputs.java-version || '21' }}
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
Expand All @@ -66,7 +66,7 @@ jobs:
with:
ref: ${{ github.event.inputs.ref || '' }}
java-distribution: ${{ inputs.java-distribution || 'temurin' }}
java-version: ${{ inputs.java-version || '21.0.1' }}
java-version: ${{ inputs.java-version || '21' }}
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
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 @@ -45,7 +45,7 @@ permissions:
jobs:
canonical-test:
name: Canonical (10 hour)
runs-on: [self-hosted, Linux, medium, ephemeral]
runs-on: network-node-linux-medium
steps:
- name: Checkout Code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/flow-pull-request-formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ permissions:
jobs:
title-check:
name: Title Check
runs-on: [self-hosted, Linux, medium, ephemeral]
runs-on: network-node-linux-medium
steps:
- name: Check PR Title
uses: step-security/conventional-pr-title-action@0eae74515f5a79f8773fa04142dd746df76666ac # v1.0.0
Expand All @@ -52,7 +52,7 @@ jobs:

milestone-check:
name: Milestone Check
runs-on: [self-hosted, Linux, medium, ephemeral]
runs-on: network-node-linux-medium
steps:
- name: Check Milestone
if: ${{ github.event.pull_request.milestone == null }}
Expand All @@ -62,7 +62,7 @@ jobs:
assignee-check:
name: Assignee Check
runs-on: [ self-hosted, Linux, medium, ephemeral ]
runs-on: network-node-linux-medium

steps:
- name: Check Assignee
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-flow-build-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21.0.1"
default: "21"
java-distribution:
description: "Java JDK Distribution:"
type: string
Expand All @@ -73,7 +73,7 @@ jobs:
name: Code
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
with:
java-version: ${{ github.event.inputs.java-version || '21.0.1' }}
java-version: ${{ github.event.inputs.java-version || '21' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
enable-unit-tests: ${{ github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' }}
enable-integration-tests: ${{ github.event.inputs.enable-integration-tests == 'true' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-flow-deploy-adhoc-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21.0.1"
default: "21"
java-distribution:
description: "Java JDK Distribution:"
type: string
Expand All @@ -53,7 +53,7 @@ jobs:
trigger-env-deploy: none
release-profile: AdhocCommit
dry-run-enabled: ${{ github.event.inputs.dry-run-enabled == 'true' }}
java-version: ${{ github.event.inputs.java-version || '21.0.1' }}
java-version: ${{ github.event.inputs.java-version || '21' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
gradle-version: ${{ github.event.inputs.gradle-version || 'wrapper' }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-flow-deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defaults:
jobs:
prepare-deploy-preview:
name: Prepare for Deploy
runs-on: [self-hosted, Linux, medium, ephemeral]
runs-on: network-node-linux-medium
outputs:
version: ${{ steps.tag.outputs.version }}
prerelease: ${{ steps.tag.outputs.prerelease }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-flow-deploy-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defaults:
jobs:
prepare-tag-release:
name: Prepare Release [Tag]
runs-on: [self-hosted, Linux, medium, ephemeral]
runs-on: network-node-linux-medium
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
outputs:
version: ${{ steps.tag.outputs.version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-flow-fsts-custom-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21.0.1"
default: "21"
java-distribution:
description: "Java JDK Distribution:"
type: string
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
branch-name: ${{ github.ref_name }}
slack-results-channel: ${{ github.event.inputs.slack-results-channel }}
slack-summary-channel: ${{ github.event.inputs.slack-summary-channel }}
java-version: ${{ github.event.inputs.java-version || '21.0.1' }}
java-version: ${{ github.event.inputs.java-version || '21' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
gradle-version: ${{ github.event.inputs.gradle-version || 'wrapper' }}
use-branch-for-slack-channel: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ jobs:
with:
ref: ${{ github.event.inputs.ref || '' }}
java-distribution: temurin
java-version: 21.0.1
java-version: 21
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
Expand All @@ -291,7 +291,7 @@ jobs:
with:
ref: ${{ github.event.inputs.ref || '' }}
java-distribution: temurin
java-version: 21.0.1
java-version: 21
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
20 changes: 11 additions & 9 deletions .github/workflows/node-zxc-build-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21.0.1"
default: "21"
gradle-version:
description: "Gradle Version:"
type: string
Expand Down Expand Up @@ -119,7 +119,7 @@ permissions:
jobs:
validate:
name: Validate
runs-on: [ self-hosted, Linux, large, ephemeral ]
runs-on: network-node-linux-large
outputs:
branch-name: ${{ steps.parameters.outputs.branch-name }}
branch-name-lower: ${{ steps.parameters.outputs.branch-name-lower }}
Expand Down Expand Up @@ -222,7 +222,7 @@ jobs:

build-artifact:
name: Build Artifact
runs-on: [self-hosted, Linux, large, ephemeral]
runs-on: network-node-linux-large
needs:
- validate
steps:
Expand Down Expand Up @@ -415,7 +415,7 @@ jobs:
local-node-images:
name: Publish Local Node Images
runs-on: [ self-hosted, Linux, large, ephemeral ]
runs-on: network-node-linux-large
needs:
- validate
- build-artifact
Expand Down Expand Up @@ -454,9 +454,11 @@ jobs:
- name: Setup Docker Buildx Support
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
with:
version: v0.15.1
version: v0.16.2
driver-opts: network=host
buildkitd-config: /etc/docker/buildkitd.toml
buildkitd-config-inline: |
[registry."docker.io"]
mirrors = ["https://hub.mirror.docker.lat.ope.eng.hashgraph.io"]
- name: Setup Local Docker Registry
if: ${{ inputs.dry-run-enabled == true && !cancelled() && !failure() }}
Expand Down Expand Up @@ -582,7 +584,7 @@ jobs:

validate-production-image:
name: Validate Production Image
runs-on: [ self-hosted, Linux, large, ephemeral ]
runs-on: network-node-linux-large
needs:
- gcp-production-image
- jfr-production-image
Expand Down Expand Up @@ -691,7 +693,7 @@ jobs:

publish:
name: Publish to ${{ inputs.version-policy == 'specified' && 'Maven Central' || 'GCP Registry' }}
runs-on: [ self-hosted, Linux, large, ephemeral ]
runs-on: network-node-linux-large
needs:
- validate
if: ${{ inputs.release-profile != 'none' }}
Expand Down Expand Up @@ -865,7 +867,7 @@ jobs:
send-notifications:
name: Send Release Notifications
runs-on: [ self-hosted, Linux, large, ephemeral ]
runs-on: network-node-linux-large
needs:
- validate
- local-node-images
Expand Down
Loading

0 comments on commit 964616d

Please sign in to comment.