mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
A pull request whose base is another feature branch listed its changes against that base, so one that changed only tests built no images. The overlay then filled every package from main's or a release line's artifact, which has none of the stack's changes, and the stack's charts ran on images that did not match them: in one stacked run cozystack-controller crash-looped on "flag provided but not defined: -enable-gpu". The overlay's choice of artifact moves into hack/pr-artifact-ref.sh, unchanged. The plan step now takes its path lists from hack/pr-changed-paths.sh, which uses the same choice: on main and the release lines, which read their own artifact, it is the pull request's own diff as before; on any other base it is the diff from the fork point with the line whose artifact the base reads, so the images of the pull requests below are built too, and a stack on a release line does not rebuild everything for the line's own commits. When the fork point cannot be found nothing may trust the lists: the step warns, builds every image, Talos included, runs the backport-batch tests and keeps every package's committed refs out of the overlay. Closes: #5444 Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>