Skip to content

ci(manifest): remove builds of closed PRs from the update list - #717

Open
mrosseel wants to merge 1 commit into
brickbots:mainfrom
mrosseel:ci/prune-closed-pr-builds
Open

mrosseel wants to merge 1 commit into
brickbots:mainfrom
mrosseel:ci/prune-closed-pr-builds

Conversation

@mrosseel

@mrosseel mrosseel commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Fault

A closed PR keeps its build in the unstable channel of update-manifest.json. Devices then offer code that will never be merged. Seven such builds are in the list now: #699, #664, #617, #557, #540, #482 and #385.

The features of these PRs are not lost. Each one is merged into the nixos branch of mrosseel/PiFinder through a later PR, or is in an open PR.

Change

  • nixos-pr-build.yml now also runs on closed and reopened.
  • A new job prune-manifest runs when a PR closes. It reads the list of open PRs and removes every PR build that is not in that list. It runs for every closed PR, so its first run also removes the seven old builds.
  • The job checks out the base branch only. It runs no PR code.
  • The build jobs do not run on closed. A reopened PR with the testable or preview label builds again.
  • update_manifest.py gets a prune command. It needs at least one --open number, so an empty list cannot remove all PR builds. Release and trunk entries stay.

Tests

🤖 Generated with Claude Code

A closed PR kept its build in the unstable channel. Devices then offered
code that will never be merged. Seven such builds are in the list now.

The PR build workflow now also runs when a PR closes. A new job asks
GitHub for all open PRs and removes every PR build that is not in that
list. The job runs for every closed PR, so its first run also removes
the seven old builds. A reopened PR with a build label builds again.

update_manifest.py gets a prune command. It needs at least one --open
number, so an empty list cannot remove all PR builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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