Skip to content

Invert ignored_releases#524

Open
Alex-Welsh wants to merge 2 commits into
mainfrom
invert-ignored-releases
Open

Invert ignored_releases#524
Alex-Welsh wants to merge 2 commits into
mainfrom
invert-ignored-releases

Conversation

@Alex-Welsh
Copy link
Copy Markdown
Member

Instead of assuming all branches of a repo are synced, it makes more sense to assume they are ignored, and specify the ones we want to sync.

Added a CI test to make sure all synced_releases exist in maintained_releases

This commit inverts the ignored_releases variable so we now assume all
releases are ignored, unless specified. In the beginning, most forks we
manage would be managed for most release. Over time that has changed, so
it's more logical to just name all the branches that we do want to
sync.
@Alex-Welsh Alex-Welsh requested a review from a team as a code owner May 21, 2026 11:31
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the release management logic by transitioning from an exclusion-based approach (ignored_releases) to an inclusion-based approach (synced_releases). It renames the global default_releases variable to maintained_releases across Ansible configurations, documentation, and validation scripts. The core logic in the repository sync task now calculates active releases using an intersection of maintained and synced releases. Review feedback recommends enhancing the Python validation script by ensuring type consistency for release versions, providing deterministic error output, and replacing assert statements with explicit exit codes to prevent validation from being bypassed in CI environments.

Comment thread scripts/validate-source-repos.py
Comment thread scripts/validate-source-repos.py Outdated
@Alex-Welsh Alex-Welsh force-pushed the invert-ignored-releases branch from b46bced to f160cab Compare May 21, 2026 11:42
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