Skip to content

Optimize execution duration of Sync Github Organization Settings Action #1203

Open
@beyhan

Description

@beyhan

We have 210 archived repositories and it looks like the automation needs 12 seconds to check on a single archived repository. Logs:

{"client":"github","component":"peribolos","level":"info","msg":"GetRepo(cloudfoundry, stembuild)","severity":"info","time":"2025-06-10T01:52:06Z"}
{"component":"peribolos","level":"info","msg":"repo \"stembuild\" is archived, skipping changes","repo":"stembuild","severity":"info","time":"2025-06-10T01:52:18Z"}

....

{"client":"github","component":"peribolos","level":"info","msg":"GetRepo(cloudfoundry, stembuild)","severity":"info","time":"2025-06-09T12:38:32Z"}
{"component":"peribolos","level":"info","msg":"repo \"stembuild\" is archived, skipping changes","repo":"stembuild","severity":"info","time":"2025-06-09T12:38:44Z"}

....

{"client":"github","component":"peribolos","level":"info","msg":"GetRepo(cloudfoundry, route-registrar)","severity":"info","time":"2025-06-09T13:27:20Z"}
{"component":"peribolos","level":"info","msg":"repo \"route-registrar\" is archived, skipping changes","repo":"route-registrar","severity":"info","time":"2025-06-09T13:27:32Z"}

That means we could save 210 × 12 = 2520 / 60 = 42 min on each run of the Sync Github Organization Settings which needs currently more than 7 hours per ran.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions