Skip to content

snapcraft, hooks: generate changes from package data - #480

Merged
bboozzoo merged 5 commits into
canonical:mainfrom
bboozzoo:bboozzoo/get-changelogs
Oct 22, 2026
Merged

bboozzoo merged 5 commits into
canonical:mainfrom
bboozzoo:bboozzoo/get-changelogs

Conversation

@bboozzoo

@bboozzoo bboozzoo commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Related: SNAPDENG-37858

@bboozzoo
bboozzoo force-pushed the bboozzoo/get-changelogs branch from 96f8166 to a9bd4c0 Compare October 21, 2026 10:11
Comment thread snapcraft.yaml Outdated
Signed-off-by: Maciek Borzecki <maciej.borzecki@canonical.com>
@bboozzoo
bboozzoo force-pushed the bboozzoo/get-changelogs branch from a9bd4c0 to 70f24ab Compare October 21, 2026 10:13
@bboozzoo
bboozzoo requested review from Meulengracht and a lite review from Copilot October 21, 2026 10:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Three critical findings remain unresolved and may cause builds to fail.

3 open issues
What changed in this PR

This PR updates core26 changelog generation using chisel package data and removes changelog archives from the final image.

Changes:

  • Adds package changelog slices and stages package metadata.
  • Generates dpkg.yaml and ChangeLog from a temporary sysroot.
  • Removes changelog archives during hooks.
File Summary Final review findings
tools/​generate-changelog.py Updates the package changelog allowlist. Critical (1 vote): kmod_bins and openssh-server_* lack chisel changelog slices or explicit fallback handling, causing non-Launchpad builds to fail.
snapcraft.yaml Adds changelog slices and generation staging. Critical (4 votes): Add the missing openssh-server_changelog slice. Critical (1 vote): Restrict nvidia-kernel-common-595_changelog to amd64/arm64.
hooks/​040-remove-slices.chroot Removes package changelog archives from the final image. No final findings.

Review effort: Lite

Comment thread snapcraft.yaml Outdated
Comment thread snapcraft.yaml Outdated
pkg_allowed_list = [
'dpkg', # is removed during hook
'openssl' # contains a symlink which is broken currently
'openssl', # contains a symlink which is broken currently

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

neither kmod, nor openssh-server have their slices defined. The changelog.gz is owned by a different package (e.g. openssh-client) or has no associated package ownership at all (kmod)

@bboozzoo
bboozzoo marked this pull request as ready for review October 21, 2026 11:11
Comment thread snapcraft.yaml Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Comment thread snapcraft.yaml Outdated
Comment on lines +288 to +290
python3 "${CRAFT_PROJECT_DIR}/tools/wall2dpkg.py" \
"${CRAFT_PART_INSTALL}/base/var/lib/chisel/manifest.wall" \
/tmp/dpkg.yaml 2>/dev/null || true
Comment thread snapcraft.yaml
Comment on lines +295 to +299
openssh-server |\
kmod |\
libatomic1 |\
libgcc-s1 |\
libncursesw6 |\
Comment thread snapcraft.yaml Outdated
Comment thread snapcraft.yaml Outdated
libstdc++6 |\
openssh-sftp-server |\
p11-kit-modules |\
sgml-base)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is a changelog.gz in sgml-base

Comment thread snapcraft.yaml Outdated
libstdc++6 |\
openssh-sftp-server |\
p11-kit-modules |\
sgml-base)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It landed.

@bboozzoo
bboozzoo requested review from valentindavid and a lite review from Copilot October 21, 2026 14:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Architecture-dependent slice coverage and the staged-root handoff need build validation before approval.

3 open issues

Review effort: Balanced

@bboozzoo
bboozzoo merged commit 04b3616 into canonical:main Oct 22, 2026
5 of 8 checks passed
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.

4 participants