agents/skills/build-native-package: add skill for building native packages - #17408
agents/skills/build-native-package: add skill for building native packages#17408bboozzoo wants to merge 2 commits into
Conversation
Add skill describing how to build the native packages for any distro for which we have reference packaging. Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
There was a problem hiding this comment.
Pull request overview
Adds agent “skill” documentation so Copilot workflows can point contributors to executable, task-focused build instructions, specifically for building snapd’s native distro packages via the existing packaging/kulturysta tooling.
Changes:
- Document where task workflows (“skills”) live in the repo (
.agents/skills/). - Add a new
build-native-packageskill describing how to invokepackaging/kulturystaand where artifacts land.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/copilot-instructions.md |
Adds a short section pointing readers to .agents/skills/ for detailed workflows. |
.agents/skills/build-native-package/SKILL.md |
Introduces a new skill for building native distro packages using kulturysta. |
Comments suppressed due to low confidence (2)
.agents/skills/build-native-package/SKILL.md:18
- The example uses
cd packaging/fedora-44, but there is nopackaging/fedora-44/directory in this repo. Use an existing target directory (e.g.packaging/fedora) or keep the example fully generic.
# e.g. fedora-44, replace with ubuntu-26.04, or debian-sid, or arch
cd packaging/fedora-44
../kulturysta # full build with tests
../kulturysta --no-tests # faster, skip tests
.agents/skills/build-native-package/SKILL.md:39
- The Targets table lists directories that don't exist in this repository (e.g.
fedora-44,opensuse-tumbleweed,centos-7,amzn-2023). Since this skill is meant to be “executable”, it should only list targets that actually exist underpackaging/in this tree (or instruct readers to discover them).
| `ubuntu-26.04`, `ubuntu-16.04`, `debian-sid` | `.deb` |
| `fedora`, `fedora-44`, `fedora-42`, `fedora-latest`, `fedora-rawhide` | `.rpm` |
| `opensuse`, `opensuse-tumbleweed`, `opensuse-16.0` | `.rpm` |
| `centos-7`, `centos-9`, `amzn-2`, `amzn-2023` | `.rpm` |
| `arch` | `.pkg.tar.zst` |
| name: build-native-package | ||
| description: Build snapd native distribution packages (deb, rpm, pkg) using kulturysta. Use when building Debian, Ubuntu, Fedora, openSUSE, Arch, CentOS, or Amazon Linux packages. | ||
| metadata: |
There was a problem hiding this comment.
so what are those symlinks then?
maciek@galeon:work/canonical/snapd (git)-[bboozzoo/skill-package-build] ls -l packaging
total 80
lrwxrwxrwx 1 maciek maciek 6 06-01 15:59 amzn-2023 -> fedora
...
lrwxrwxrwx 1 maciek maciek 6 04-28 10:06 centos-7 -> fedora
lrwxrwxrwx 1 maciek maciek 6 06-01 15:59 centos-9 -> fedora
...
|
Fri Jul 24 13:54:33 UTC 2026 Spread tests skipped |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #17408 +/- ##
==========================================
+ Coverage 78.60% 78.84% +0.23%
==========================================
Files 1398 1406 +8
Lines 197295 196779 -516
Branches 2462 2462
==========================================
+ Hits 155085 155143 +58
+ Misses 32879 32295 -584
- Partials 9331 9341 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add skill describing how to build the native packages for any distro for which we have reference packaging.
Thanks for helping us make a better snapd!
Have you signed the license agreement and read the contribution guide?