Skip to content

Take the repository README's history from the live tree as well as the archive. #10937 - #10939

Merged
dpage merged 1 commit into
pgadmin-org:masterfrom
dpage:build/readme-new-platform
Dec 3, 2026
Merged

dpage merged 1 commit into
pgadmin-org:masterfrom
dpage:build/readme-new-platform

Conversation

@dpage

@dpage dpage commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #10938 (issue #10937). Promotion runs rebuild-readme before sync-s3 has copied the new release to the archive bucket, so the first promotion carrying a new platform (9.20, with Ubuntu 26.10 and Fedora 45) would stop with <platform> is published but absent from the archive. The workaround is running sync-s3 and rebuild-readme by hand on the download server, which the person doing the release cannot do.

install-repo-readme.py now adds the live tree's packages to the history it reads from the archive, so a new platform is listed as supported from the release being promoted. Existing platforms keep the same first release, since the live tree never loses packages. PLATFORMS.md drops the manual steps.

Tested against a made-up tree and archive listing: new platforms showed 9.20, an existing one kept its first release from the archive, retired ones went to the unsupported table, and the --no-archive snapshot README was unchanged.

After merging, install pkg/publish/install-repo-readme.py into /usr/local/lib/pga-publish/ on the download server before the 9.20 promotion.

Summary by CodeRabbit

  • Bug Fixes
    • Repository promotion now handles platforms that are present in the live tree but not yet in the archive, combining their architecture and package-version details with archived history.
  • Documentation
    • Updated platform history guidance to reflect that promotion rebuilds the README before syncing the archive and records the first release carrying each platform.

…e archive, so promoting a new platform's first release does not fail.
@dpage dpage self-assigned this Dec 3, 2026
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The README generator now records package versions with platform architectures and merges live-tree data into archive history. The platform documentation describes the promotion sequence and how the README identifies a platform’s first release.

Changes

Platform history

Layer / File(s) Summary
Collect platform package data
pkg/publish/install-repo-readme.py
APT and YUM scans collect matching package versions and architectures in each platform entry.
Merge live-tree and archive history
pkg/publish/install-repo-readme.py, pkg/linux/PLATFORMS.md
Archive mode merges live-tree architectures and versions into archive history. The documentation states that promotion runs rebuild-readme before sync-s3 and lists a new platform with its first release.

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Bug fix

Merge Risk: Minimal · up to 9b8e9

The README generator now includes the live tree's packages when building platform history. A new platform is therefore listed with the release being promoted even before the archive sync runs. No merge-blocking risk was found. The updated script must be installed on the download server before the 9.20 promotion.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: install-repo-readme.py now takes the README's platform history from the live package tree as well as the archive. The summary confirms scan_tree records architectures and p…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: install-repo-readme.py now takes the README's platform history from the live package tree as well as the archive. The summary confirms scan_tree records architectures and pgAdmin versions for present platforms and merges them into archive history. The title does not mention the new helper functions or the PLATFORMS.md doc update, which is acceptable because it covers the main change. The issue reference #10937 differs from the PR number #10939 in the objectives, which is a minor inconsistency and does not affect the title's relevance.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6f06ee2 and 9b8e995.

Files selected for processing: 2

  • pkg/linux/PLATFORMS.md
  • pkg/publish/install-repo-readme.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

@dpage
dpage merged commit 3be795d into pgadmin-org:master Dec 3, 2026
2 checks passed
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