check package version number against upload target

Bug #1690967 reported by Michael Hudson-Doyle on 2017-05-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
usd-importer
Undecided
Unassigned

Bug Description

nacc suggested I file this here :)

I'd like to have dput/whatever I use to cause new versions of a package to be built check the package version number against the upload target. Some checks come to mind:

1) Uploads to ppas must have "~ppa" in the version number
2) Uploads to the archive must not have "~ppa" in the version number
3) Uploads to non-devel series must have an appropriate version number (e.g. "~16.04.[0-9]+$" is OK for Xenial, not for yakkety or devel series, or match ".*ubuntu[0-9]+\.[0-9]+$")

Nish Aravamudan (nacc) wrote :

4) Check branch name matches changelog target.

tags: added: workflow
Changed in usd-importer:
milestone: none → 1.0
tags: added: lint
Changed in usd-importer:
status: New → Confirmed
Michael Hudson-Doyle (mwhudson) wrote :

After making a series of embarrassing mistakes trying to upload versions of docker for SRU I hacked this up: https://gist.github.com/mwhudson/616499edb1191bd99c987bbbd8781ce9

Robie Basak (racb) wrote :

I wonder if we could have a "git ubuntu dput [treeish]" wrapper? It could lint, then build the source, then sign and upload. If the lint fails (even if just warnings), then it would fail by default and require a --force to succeed. Then the functionality in lint should be sufficient for this use case.

It might be appropriate to require by default that the working tree is clean, as generally we only want to upload things that are fully committed. And for PPAs, we could have a --ppa option that bumps debian/changelog with a ~ppaX automatically.

Perhaps not realistic for 1.0 though.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers