Skip to content

agents/skills/build-native-package: add skill for building native packages - #17408

Open
bboozzoo wants to merge 2 commits into
canonical:masterfrom
bboozzoo:bboozzoo/skill-package-build
Open

agents/skills/build-native-package: add skill for building native packages#17408
bboozzoo wants to merge 2 commits into
canonical:masterfrom
bboozzoo:bboozzoo/skill-package-build

Conversation

@bboozzoo

Copy link
Copy Markdown
Contributor

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?

bboozzoo added 2 commits July 24, 2026 15:29
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>
@bboozzoo
bboozzoo requested a review from Copilot July 24, 2026 13:32
@bboozzoo bboozzoo added Simple 😃 A small PR which can be reviewed quickly Skip spread Indicate that spread job should not run labels Jul 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-package skill describing how to invoke packaging/kulturysta and 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 no packaging/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 under packaging/ 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` |

Comment on lines +2 to +4
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:

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.

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
...

@github-actions

Copy link
Copy Markdown

Fri Jul 24 13:54:33 UTC 2026

Spread tests skipped

@bboozzoo
bboozzoo requested review from ZeyadYasser and zyga July 24, 2026 13:55
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.84%. Comparing base (3ec52a2) to head (5622e90).
⚠️ Report is 1 commits behind head on master.

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     
Flag Coverage Δ
unittests 78.84% <ø> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ZeyadYasser ZeyadYasser left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Simple 😃 A small PR which can be reviewed quickly Skip spread Indicate that spread job should not run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants