Skip to content

Care only about state based distributions in diff#95

Merged
lkocman merged 1 commit into
openSUSE:mainfrom
lkocman:distributions
May 20, 2026
Merged

Care only about state based distributions in diff#95
lkocman merged 1 commit into
openSUSE:mainfrom
lkocman:distributions

Conversation

@lkocman
Copy link
Copy Markdown
Collaborator

@lkocman lkocman commented May 20, 2026

Each new TW snapshot would instantly require a new distribution file update. We really want to track diff only for state based distribuitons (Leap + LeapMicro at the moment).

Copilot AI review requested due to automatic review settings May 20, 2026 08:15
@lkocman lkocman merged commit a7edfd5 into openSUSE:main May 20, 2026
4 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the check-distributions-json GitHub Actions workflow to ignore non-“state” releases when diffing distributions.json, reducing CI churn from frequently changing rolling/snapshot-based entries (e.g., Tumbleweed).

Changes:

  • Filter both live and local distributions.json to only include releases that have a state field before diffing.
  • Update step naming and output messages to reflect “stateful releases only”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +16 to 20
# Track all releases that expose "state" (future-proof), while Leap/Leap Micro
# are the most relevant migration targets today.
curl -sf https://get.opensuse.org/api/v0/distributions.json \
| jq --sort-keys 'with_entries(.value |= map(select(has("state"))))' > /tmp/live.json

echo ""
echo "::error::distributions.json is out of date."
echo "::error::distributions.json stateful releases are out of date."
echo "Run: curl -s https://get.opensuse.org/api/v0/distributions.json | jq . > distributions.json"
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