Skip to content

fix: skip GLRD releases not yet published on GitHub#103

Merged
yeoldegrove merged 4 commits into
mainfrom
fix/half_finished_releases
Jul 9, 2026
Merged

fix: skip GLRD releases not yet published on GitHub#103
yeoldegrove merged 4 commits into
mainfrom
fix/half_finished_releases

Conversation

@yeoldegrove

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

GLRD can list a release before its GitHub Release tag is created (a release in process). This caused the release table and release-note pages to include entries with broken or missing content.

  • New aggregation/github_api module — centralized GitHub HTTP client (get_json, list_repo_releases) with GITHUB_TOKEN auth support and actionable rate-limit error messages.
  • Single GitHub fetch in aggregate.py — all GitHub releases are fetched once upfront and passed to both release generators, replacing the ad-hoc curl-based approach in release_notes.py.
  • GLRD release table filteringgenerate_release_table now accepts existing_gh_tags and silently skips any minor GLRD release that has no matching GitHub tag; a warning is written to stderr for each skipped row.
  • Unit tests — full coverage for the new API client and the GLRD filtering logic.
  • Docs — updated architecture diagram, module reference, and added GITHUB_TOKEN setup instructions + a rate-limit troubleshooting entry to the working-locally guide.

Add centralized GitHub HTTP client for docs aggregation:
- New github_api module with get_json and list_repo_releases
- Authentication via GITHUB_TOKEN environment variable
- Rate limit detection and actionable error messages
- Comprehensive unit tests for API client
- Unit tests for GLRD release filtering against GitHub tags

Signed-off-by: Eike Waldt <waldt@b1-systems.de>
On-behalf-of: SAP <eike.waldt@sap.com>
Assisted-by: Kilo:claude-opus-4-7
Assisted-by: Kilo:claude-sonnet-4-6
Refactor release documentation generation to avoid duplicate API calls:
- Fetch GitHub releases once in aggregate.py before generators run
- Pass pre-fetched release list to both generators
- Filter GLRD release tables to only show releases with GitHub tags
- Remove curl-based GitHub fetching from release_notes.py
- Add existing_gh_tags parameter to generate_release_docs
- Write warnings to stderr for GLRD releases missing GitHub tags
- Hard-fail early on GitHub API errors with actionable hint

Signed-off-by: Eike Waldt <waldt@b1-systems.de>
On-behalf-of: SAP <eike.waldt@sap.com>
Assisted-by: Kilo:claude-opus-4-7
Assisted-by: Kilo:claude-sonnet-4-6
- Add Mermaid flowchart showing pipeline stages and GitHub API integration
- Document new github_api, glrd, and sphinx_builder modules
- Add GitHub token setup instructions for make aggregate
- Improve CI workflow reference table formatting
- Add troubleshooting section for API rate limits

Signed-off-by: Eike Waldt <waldt@b1-systems.de>
On-behalf-of: SAP <eike.waldt@sap.com>
Assisted-by: Kilo:claude-opus-4-7
Assisted-by: Kilo:claude-sonnet-4-6
@yeoldegrove yeoldegrove added this to the 2026-07 milestone Jul 7, 2026
@yeoldegrove yeoldegrove requested a review from ByteOtter July 7, 2026 12:44
@yeoldegrove yeoldegrove self-assigned this Jul 7, 2026
@netlify

netlify Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploy Preview for gardenlinux-docs ready!

Name Link
🔨 Latest commit ca91b5c
🔍 Latest deploy log https://app.netlify.com/projects/gardenlinux-docs/deploys/6a4e01e5ac6ed80008fdaafa
😎 Deploy Preview https://deploy-preview-103--gardenlinux-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@yeoldegrove yeoldegrove marked this pull request as ready for review July 7, 2026 14:58
@yeoldegrove yeoldegrove merged commit 4dfd812 into main Jul 9, 2026
11 checks passed
@yeoldegrove yeoldegrove deleted the fix/half_finished_releases branch July 9, 2026 10:37
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