Skip to content

Speed up CI: preinstalled Python, earlier snapshot pickup, configuration cache - #2021

Merged
igorwojda merged 1 commit into
developfrom
con/ci-pipeline-speed-improvement
Oct 13, 2026
Merged

igorwojda merged 1 commit into
developfrom
con/ci-pipeline-speed-improvement

Conversation

@igorwojda

Copy link
Copy Markdown
Contributor

Speeds up CI. Check Test Project is the slowest workflow on PRs, at ~5.8 min.

Cause Before After
setup-python 3.15.0 is not preinstalled on runners, so it is downloaded and installed in every job Windows 44–89s, macOS 31–51s, Ubuntu 8–12s per job ~1s ('3.x' uses the preinstalled version)
Test jobs wait for the whole Publish run to be marked completed Snapshot version uploaded at 08:07:42, test jobs started at 08:08:53 (~70s lost) Poll for the konsist-snapshot-version artifact every 5s, starting 75s after Publish starts (uploads take 81–113s)
Configuration cache is never saved (no cache-encryption-key) ~40s configuration + build-logic compile per Check job Reused from develop cache via GRADLE_ENCRYPTION_KEY (check.yml, ktdoc snippets)

Expected: Check Test Project ~5.8 → ~3.5–4 min on PRs. Configuration cache only pays off after the first develop push stores the cache.

…snapshot is published, cache configuration

- setup-python 3.15.0 is not in the runner tool cache, so every job downloaded and installed it (up to 90s on Windows/macOS). Use '3.x' to pick the preinstalled version.
- Wait for the 'konsist-snapshot-version' artifact instead of Publish run completion. The artifact is available ~1 min before the run is marked as completed. Poll every 5s, starting 75s after the Publish run start (artifact is uploaded after 81-113s).
- Pass GRADLE_ENCRYPTION_KEY to setup-gradle in workflows building the root project, so configuration cache entries are saved and restored.
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

📦 Konsist snapshot published

Version 1.0.0-alpha.1-20261013.083855-5
Latest snapshot 1.0.0-alpha.1-SNAPSHOT
Commit c56a4c0
Build Publish #12
Artifact konsist-1.0.0-alpha.1-20261013.083855-5.jar (pom)
repositories {
    maven("https://central.sonatype.com/repository/maven-snapshots/")
}

dependencies {
    testImplementation("com.lemonappdev:konsist:1.0.0-alpha.1-20261013.083855-5")
}

Snapshots are removed from the Central snapshots repository after 90 days.

@igorwojda
igorwojda merged commit c56a4c0 into develop Oct 13, 2026
47 of 48 checks passed
@igorwojda
igorwojda deleted the con/ci-pipeline-speed-improvement branch October 13, 2026 08:38
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