Skip to content

fix: pass codename in apt dispatch payload#34

Merged
edmundlod merged 1 commit into
mainfrom
fix/apt-dispatch-codename
May 27, 2026
Merged

fix: pass codename in apt dispatch payload#34
edmundlod merged 1 commit into
mainfrom
fix/apt-dispatch-codename

Conversation

@edmundlod

Copy link
Copy Markdown
Owner

The apt dispatch payload was missing the codename field, causing reprepro to fail with Cannot find definition of distribution ''. The job still reported success because curl -s suppressed the error output.

Root cause: build-deb.yml sent deb_url and package but never codename. The apt repo workflow passes that field straight to reprepro includedeb $CODENAME, which requires it.

Fix:

  • Extract the codename from debian/changelog via dpkg-parsechangelog --show-field Distribution (already available from the installed build deps) and add it as client_payload.codename in the dispatch payload.
  • Add -f to the curl call so a non-2xx response actually fails the job instead of silently passing.

reprepro requires a distribution codename to know which suite to add
the package to. The dispatch payload was missing this field, causing
'Cannot find definition of distribution' and a silent failure.

Extract the codename from debian/changelog via dpkg-parsechangelog and
include it as client_payload.codename in the repository_dispatch call.

Also add -f to curl so a non-2xx response fails the job loudly instead
of silently succeeding.
@edmundlod edmundlod merged commit e3d42b7 into main May 27, 2026
5 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.

1 participant