Skip to content

ci: make scheduled branch matrix dynamic - #5412

Open
kolyshkin wants to merge 1 commit into
opencontainers:mainfrom
kolyshkin:scheduled-dynamic-matrix
Open

ci: make scheduled branch matrix dynamic#5412
kolyshkin wants to merge 1 commit into
opencontainers:mainfrom
kolyshkin:scheduled-dynamic-matrix

Conversation

@kolyshkin

Copy link
Copy Markdown
Contributor

Follow-up to #5393 (review comment).

The list of branches to run periodical CI on was hardcoded, meaning it had to be manually updated on every minor release (add the new release branch, drop the one that falls out of support per RELEASES.md), and would silently keep testing unsupported branches if we forgot.

Instead, a prepare job lists the repo branches via the API and picks the three most recent release-X.Y ones (latest, latest-1, latest-2), plus main, feeding them into the matrix via fromJSON.

Running the same selection logic against the current branch list of this repo yields ["main", "release-1.5", "release-1.4", "release-1.3"], i.e. exactly the list that was hardcoded before, so there is no behavior change today.

🤖 Generated with Claude Code

@kolyshkin

Copy link
Copy Markdown
Contributor Author

Alas no way to test this until we merge.

The list of branches to run periodical CI on was hardcoded, meaning it
had to be manually updated on every minor release (add the new release
branch, drop the one that falls out of support per RELEASES.md), and
would silently keep testing unsupported branches if we forgot.

Instead, list the repo branches via the API and pick the three most
recent release-X.Y ones (latest, latest-1, latest-2), plus main.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@kolyshkin
kolyshkin force-pushed the scheduled-dynamic-matrix branch from 0f3f9fa to e869baa Compare August 24, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant