kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

kolibri-server source package build aborts on `tests/`, which the orig tarball excludes

Open rtibblesbot opened this issue 2 weeks ago • 2 comments

❌ 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 dist in platforms/debian-server aborts: dpkg-source -b finds tests/serving_smoke_test.sh in the tree but not in the orig tarball.
  • .tarignore line 12 keeps tests out of the tarball; debian/source/options line 2 ignores test but not tests.
  • 2ce6b1bec3 fixed the same mismatch for test; 9c746ed909 added tests to .tarignore only.
  • Release kolibri-server builds dist through make 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-source stops earlier, on the Uploaders field.

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-proposed PPA, so Launchpad builds no kolibri-server package for it.

Steps to reproduce

  1. In platforms/debian-server/debian/control, add a comma between the two Uploaders (#15816).
  2. In platforms/debian-server, run make orig.
  3. Run dpkg-source -b ..

Context

  • dpkg-source 1.23.12.

Acceptance Criteria

  • [ ] make dist in platforms/debian-server produces dist/kolibri-server_*.dsc.
  • [ ] A PR build fails when a path .tarignore excludes 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.

rtibblesbot avatar Nov 16 '26 23:11 rtibblesbot

Plan: make dist in platforms/debian-server builds the source package, and every PR build runs it.

  • [ ] Ignore every .tarignore path 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 only tests is wanted, three alternations come out.
  • The PR job builds against the workspace Kolibri with -d, not the PPA's kolibri as the release job does; if PPA fidelity is wanted, the job runs make install-kolibri instead.
  • The PR job runs make changelog first, 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.

rtibblesbot avatar Nov 17 '26 00:11 rtibblesbot

Fixed in #15920

rtibbles avatar Nov 17 '26 18:11 rtibbles