Skip to content

Commit 0538d9f

Browse files
build: use 4 batches of 100 services (googleapis#31559)
Fixes the following: ``` checking size of services Error: Total services (303) exceed limit of 300 at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v5/dist/index.js:4888:16), <anonymous>:7:9) ``` https://github.com/googleapis/google-api-java-client-services/actions/runs/25089385991/job/73512013375
1 parent 95b37a7 commit 0538d9f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/codegen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
on:
22
schedule:
3-
# Runs at 12:18, 1:18 and 2:18.
3+
# Runs at 12:18, 1:18, 2:18 and 3:18.
44
# See https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
5-
- cron: '18 0-2 * * *'
5+
- cron: '18 0-3 * * *'
66
workflow_dispatch:
77
inputs:
88
batch_index:
99
type: number
10-
description: Index of the batch ([0-2]). You must call this workflow one time per index in order to confirm the generation in all the jobs.
10+
description: Index of the batch ([0-3]). You must call this workflow one time per index in order to confirm the generation in all the jobs.
1111

1212
name: codegen
1313
jobs:
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
script: |
2525
console.log('checking size of services')
26-
const MAX_SERVICE_SIZE = 300 // 00:18 to 02:18 implies 3 batches of size 100
26+
const MAX_SERVICE_SIZE = 400 // 00:18 to 03:18 implies 4 batches of size 100
2727
const services = ${{ needs.discovery.outputs.services }}
2828
if (services.length > MAX_SERVICE_SIZE) {
2929
throw new Error(`Total services (${services.length}) exceed limit of ${MAX_SERVICE_SIZE}`)

0 commit comments

Comments
 (0)