8000 ci(inkless): tighten upstream CI triggers and build edge tarball once by jeqo · Pull Request #926 · aiven/inkless · GitHub
[go: up one dir, main page]

Skip to content

ci(inkless): tighten upstream CI triggers and build edge tarball once - #926

Merged
jeqo merged 2 commits into
mainfrom
jeqo/ci-tier3-hygiene
Dec 2, 2026
Merged

jeqo merged 2 commits into
mainfrom
jeqo/ci-tier3-hygiene

Conversation

@jeqo
@jeqo jeqo commented Dec 1, 2026
Copy link
Copy Markdown
Contributor

Two repo-wide workflow inefficiencies consume nearly half of all runner minutes and add unnecessary cache entries:

  • ci.yml matches inkless-* on push without excluding release-prep or sync branches (unlike inkless.yml), and does not cancel superseded push runs on main, letting burst merges run multiple 450-minute upstream builds in parallel.
  • inkless-edge.yml runs make build_release twice (on amd64 and arm64) for an architecture-independent Kafka tarball, and writes Gradle caches from both architectures into the 10 GB repository pool.

Update both workflows:

  • Scope ci.yml push triggers to inkless-4.* with !inkless-4.*-*, and enable cancel-in-progress: true keyed by workflow, ref, and event name so pushes cancel superseded pushes without canceling scheduled or manual runs.
  • Extract build-dist in inkless-edge.yml to build the Kafka distribution once on ubuntu-latest with a read-only Gradle cache, upload it as a 1-day artifact, and share it across both native Docker build jobs.

@jeqo
jeqo added this pull request to stack #925 December 1, 2026 15:22
@jeqo
jeqo force-pushed the jeqo/ci-tier3-hygiene branch from 2e8ac09 to 45ae25c Compare December 1, 2026 15:23
@jeqo
jeqo force-pushed the jeqo/ci-tier3-hygiene branch from 45ae25c to cbf3ba9 Compare December 1, 2026 16:16
@jeqo
jeqo force-pushed the jeqo/ci-tier3-hygiene branch from cbf3ba9 to 72b3022 Compare December 1, 2026 16:19
@gqmelo
gqmelo force-pushed the jeqo/ci-tier3-hygiene branch from 72b3022 to 68fe5a7 Compare December 2, 2026 14:39
Comment thread .github/workflows/ci.yml Outdated
Comment on lines +24 to +26
- 'inkless-4.*'
# Release-prep and sync branches (inkless-4.x-0.y, inkless-4.x-sync-*) get CI from their PRs.
- '!inkless-4.*-*'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could use some of the regex-like syntax to be more specific and future-proof: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#filter-pattern-cheat-sheet

For example something like inkless-[0-9].[0-9]+ and inkless-[0-9].[0-9]+-*

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Agree, this is a better match. Adding change on last commit.

Base automatically changed from jeqo/ci-tier2-test-infra to main December 2, 2026 14:58
…, and build edge tarball once

Three repo-wide workflow inefficiencies waste runner capacity and add
unnecessary cache entries:

- `ci.yml` matches `inkless-*` on push without excluding release-prep or
  sync branches (unlike `inkless.yml`), and does not cancel superseded
  push runs on `main`, letting burst merges run multiple 450-minute
  upstream builds in parallel.
- `inkless-vale.yml` triggers on `ready_for_review` even though it
  already runs on draft PRs, re-running on the same SHA.
- `inkless-edge.yml` runs `make build_release` twice (on `amd64` and
  `arm64`) for an architecture-independent Kafka tarball, and writes
  Gradle caches from both architectures into the 10 GB repository pool.

Update all three workflows:

- Scope `ci.yml` push triggers to `inkless-4.*` with `!inkless-4.*-*`,
  and enable `cancel-in-progress: true` keyed by workflow, ref, and
  event name so pushes cancel superseded pushes without canceling
  scheduled or manual runs.
- Drop `ready_for_review` from `inkless-vale.yml`.
- Extract `build-dist` in `inkless-edge.yml` to build the Kafka
  distribution once on `ubuntu-latest` with a read-only Gradle cache,
  upload it as a 1-day artifact, and share it across both native Docker
  build jobs.

Assisted-by: Gemini 4 Neon
@gqmelo
gqmelo force-pushed the jeqo/ci-tier3-hygiene branch from 68fe5a7 to 4da8ff4 Compare December 2, 2026 14:58
GitHub Actions branch filters match the full branch name and support
`[0-9]+`. Using `inkless-[0-9]+.[0-9]+` in both `ci.yml` and
`inkless.yml` stays future-proof beyond Kafka 4.x and excludes
release-prep and sync branches without a separate negation rule.

Assisted-by: Gemini 4 Neon
@jeqo
jeqo requested a review from gqmelo December 2, 2026 15:12
@jeqo
jeqo marked this pull request as ready for review December 2, 2026 15:14
@jeqo
jeqo enabled stacked auto-merge (squash) December 2, 2026 15:14
@jeqo
jeqo merged commit 1f3e0ad into main Dec 2, 2026
13 checks passed
@jeqo
jeqo deleted the jeqo/ci-tier3-hygiene branch December 2, 2026 15:22
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.

2 participants

0