Skip to content

Unify tools setup, add release policy gate, and automate versioned tag publishing - #390

Draft
serhat andic (serhatandic) wants to merge 2 commits into
masterfrom
serhatandic/release-automation-v0.8.42
Draft

serhat andic (serhatandic) wants to merge 2 commits into
masterfrom
serhatandic/release-automation-v0.8.42

Conversation

@serhatandic

@serhatandic serhat andic (serhatandic) commented Nov 26, 2026 •

Copy link
Copy Markdown

Reviewer index: Release lifecycle modernization (#278) | Wave 2 of 3 (Core)
Review tip: Focus on update_version.yml (citus_series gate) and publish_docker_images_on_push.yml (tag_release + workflow_call). Keep Draft until tools v0.8.42 is tagged.

Problem

  • The 5 Docker workflows copy-paste citusdata/tools clones at two old tags (v0.8.36 and v0.8.38) inside the repo checkout.
  • update_version.yml accepts only project_version, has no guard against patch or off-line releases, does not pass exact published DEB versions or PG versions from pkgvars, and checks out with GITHUB_TOKEN (so generated PRs do not trigger CI).
  • Merging a Citus release PR only publishes floating Docker Hub tags (latest, alpine, pg16, pg17); versioned tags (14.3.0, 14.3, 14) require a separate manual git tag + git push step, which has been missed (Docker Hub still has no 14.3.0).
  • publish_docker_images_on_manual.yml has no image matrix, so manual runs fail trying to build every target sequentially.

Approach

  • Add a local composite action (.github/actions/setup-tools) pinned to v0.8.42 that clones tools outside the checkout, and use it across all 5 workflows.
  • Add citus_series=14 to pkgvars and update update_version.yml to take source_tag, deb_version, and force_docker: skip patch/off-line releases unless force_docker is true, pass stable pkgvars PG versions to tools update_docker.py, and use the GitHub App token on checkout.
  • On merge to master, have publish_docker_images_on_push.yml create annotated tag v<VERSION> if it does not exist yet and call publish_docker_images_on_tag.yml (workflow_call) in the same run so versioned tags publish automatically without triggering on PG-base-only PRs.
  • Add the image matrix and choice input to publish_docker_images_on_manual.yml, and switch docker login to --password-stdin.

Depends on: citusdata/tools#450 merged and tagged as v0.8.42 (CI will fail cloning v0.8.42 until that tag exists). Supersedes #386.

Testing

  • Tested the release checks on this branch: skipped old line v13.6.0 (45801457581), skipped patch v14.3.1 (45801463687), and stopped with an error on v15.0.0 because pkgvars is still on Citus 14 (45801470671).
  • Tested the full flow on a personal fork: opened 14.3.0 PR #1 without touching postgres-19, avoided opening a duplicate PR on a repeat run (45805787620), created tag v14.3.0 and ran the versioned publish workflow on merge (45806154319), and skipped tagging on a later README edit (45806732747).

@github-actions

Copy link
Copy Markdown

Hadolint: success

SARIF results were uploaded to the workflow run.

@github-actions

Copy link
Copy Markdown

Hadolint: success

SARIF results were uploaded to the workflow run.

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