From af2372b48c5307c64d4d89568f01dfa62080db04 Mon Sep 17 00:00:00 2001 From: Jesper Terkelsen Date: Mon, 4 May 2026 10:15:31 +0200 Subject: [PATCH] ci: pass openapi-max-workers through deploy-kotlin{,-v2} to component-service-profile Plumbs the new openapi-max-workers input added in #279 from the deploy-kotlin and deploy-kotlin-v2 umbrella workflows down into component-service-profile-kotlin where it actually maps to ./gradlew --max-workers. Without this passthrough the input is unreachable from any service repo, since service repos call the umbrella workflows (deploy-kotlin / deploy-kotlin-v2), not component-service-profile-kotlin directly. Defaults to empty (no behavior change for existing callers). The intended caller-side change is in service-api-gateways' deploy_*.yml workflows, where each one will pass openapi-max-workers: '2' to avoid the OOM in the Update Service Profile step (failing runs: 25171374143, 25236336830, 25236336844). --- .github/workflows/deploy-kotlin-v2.yml | 10 ++++++++++ .github/workflows/deploy-kotlin.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/deploy-kotlin-v2.yml b/.github/workflows/deploy-kotlin-v2.yml index 239271f..b955e05 100644 --- a/.github/workflows/deploy-kotlin-v2.yml +++ b/.github/workflows/deploy-kotlin-v2.yml @@ -98,6 +98,15 @@ on: type: boolean default: true description: 'Use generated openapi spec to generate linkerd service profile and update the service helm chart' + openapi-max-workers: + required: false + type: string + default: '' + description: | + Optional cap on Gradle parallelism for the OpenAPI build step in the + update-service-profile job. Forwarded to component-service-profile-kotlin. + Set to e.g. "2" on multi-module repos that OOM the runner during + concurrent kapt. Empty string keeps default behavior. helm-values-path: required: false type: string @@ -286,6 +295,7 @@ jobs: stage: ${{ inputs.stage }} gradle-module: ${{ inputs.gradle-module }} java-version: ${{ inputs.java-version }} + openapi-max-workers: ${{ inputs.openapi-max-workers }} secrets: GHL_USERNAME: ${{ secrets.GHL_USERNAME }} GHL_PASSWORD: ${{ secrets.GHL_PASSWORD }} diff --git a/.github/workflows/deploy-kotlin.yml b/.github/workflows/deploy-kotlin.yml index 07f3632..fe8ba9c 100644 --- a/.github/workflows/deploy-kotlin.yml +++ b/.github/workflows/deploy-kotlin.yml @@ -103,6 +103,15 @@ on: type: boolean default: true description: 'Use generated openapi spec to generate linkerd service profile and update the service helm chart' + openapi-max-workers: + required: false + type: string + default: '' + description: | + Optional cap on Gradle parallelism for the OpenAPI build step in the + update-service-profile job. Forwarded to component-service-profile-kotlin. + Set to e.g. "2" on multi-module repos that OOM the runner during + concurrent kapt. Empty string keeps default behavior. argocd-server: required: false type: string @@ -277,6 +286,7 @@ jobs: stage: ${{ inputs.stage }} gradle-module: ${{ inputs.gradle-module }} java-version: ${{ inputs.java-version }} + openapi-max-workers: ${{ inputs.openapi-max-workers }} secrets: GHL_USERNAME: ${{ secrets.GHL_USERNAME }} GHL_PASSWORD: ${{ secrets.GHL_PASSWORD }}