Skip to content

[CI] Split only the active lines and refresh the gitsplit cache every run - #3222

Open
dpfaffenbauer wants to merge 1 commit into
5.1from
issue/3221
Open

[CI] Split only the active lines and refresh the gitsplit cache every run#3222
dpfaffenbauer wants to merge 1 commit into
5.1from
issue/3221

Conversation

@dpfaffenbauer

Copy link
Copy Markdown
Member

Fixes #3221

  • .github/workflows/gitsplit.yml: cache key gitsplit-cache-${{ github.run_id }} with restore-keys: gitsplit-cache-, so every run saves a fresh snapshot and the next one restores the newest (a static key is saved once and never again; an eviction then meant a ~70 min full rebuild). Push trigger limited to 4.1, 5.0, 5.1, 2026.x.
  • .gitsplit.yml: origins limited to those branches and to the tags 4.1.*, 5.*, 2026.* (pre-release suffixes included). 2.x–4.0 are final and already live in the split repositories.

Expected effect: cache hits stay at ~2 min; a miss re-splits only the active lines instead of the whole history. The first run after the merge starts from the current cache snapshot (or a miss) and saves the new per-run key.

Both files are per-branch: 5.0 and 2026.x get the same change through the upmerge chain (the 2026.x file already lists 2026.x instead of next); 4.1 would need a backport if its split should benefit too.

actionlint only reports the pre-existing SC2086 info on the untouched clone line.

… run

The static cache key froze the split state at its first save and every
eviction meant a full rebuild of all 10 branches and 203 tags for 64 split
repositories (68-99 min). The cache is now keyed per run with a prefix
restore key, and the origins and the push trigger are limited to the lines
that still receive commits.

Fixes #3221
@dpfaffenbauer dpfaffenbauer added this to the 5.1.1 milestone Sep 4, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@dpfaffenbauer dpfaffenbauer modified the milestones: 5.1.1, 5.1.2 Sep 4, 2026
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