kolibri
kolibri copied to clipboard
kolibri-server source package build aborts on `tests/`, which the orig tarball excludes
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: release-v0.20.x
Observed behavior
make distinplatforms/debian-serveraborts:dpkg-source -bfindstests/serving_smoke_test.shin the tree but not in the orig tarball..tarignoreline 12 keepstestsout of the tarball;debian/source/optionsline 2 ignorestestbut nottests.- 2ce6b1bec3 fixed the same mismatch for
test; 9c746ed909 addedteststo.tarignoreonly. Release kolibri-serverbuildsdistthroughmake sign-and-upload.- That job runs only for a final release, and none has run since
tests/was added, so CI has not shown the failure. - Until #15816 is fixed,
dpkg-sourcestops earlier, on theUploadersfield.
Errors and logs
dpkg-source: warning: executable mode 0755 of 'tests/serving_smoke_test.sh' will not be represented in diff
dpkg-source: info: local changes detected, the modified files are:
tests/serving_smoke_test.sh
dpkg-source: error: aborting due to unexpected upstream changes
User-facing consequences
- A final release cannot upload kolibri-server to the
kolibri-proposedPPA, so Launchpad builds no kolibri-server package for it.
Steps to reproduce
- In
platforms/debian-server/debian/control, add a comma between the twoUploaders(#15816). - In
platforms/debian-server, runmake orig. - Run
dpkg-source -b ..
Context
- dpkg-source 1.23.12.
Acceptance Criteria
- [ ]
make distinplatforms/debian-serverproducesdist/kolibri-server_*.dsc. - [ ] A PR build fails when a path
.tarignoreexcludes aborts the kolibri-server source package build.
AI usage
Claude Code found this while planning the fix for #15816, reproduced it with dpkg-source, and drafted this issue.
Plan: make dist in platforms/debian-server builds the source package, and every PR build runs it.
- [ ] Ignore every
.tarignorepath in the dpkg-source diff - [ ] Build the kolibri-server source package in the PR build
- [ ] Self-review the produced code
Assumptions — the issue did not settle these; say so if one is wrong.
- The regex also gains
.venv,__pycache__and*.egg-info, which abort the same way; if onlytestsis wanted, three alternations come out. - The PR job builds against the workspace Kolibri with
-d, not the PPA'skolibrias the release job does; if PPA fidelity is wanted, the job runsmake install-kolibriinstead. - The PR job runs
make changelogfirst, as the release job does; if the committed changelog should be built instead, that step is dropped. - The check catches only paths present in a CI checkout; if untracked-only patterns (
.venv,__pycache__) need a guard too, a planted-path test script is added.
Written by rtibblesbot, an LLM-based coding agent.
Fixed in #15920