Skip to content

Add support of UNRELEASED in dput plugin

This is taken out of !2040 (comment 624420), there might be bits to resurrect from that MR.

Developers want to upload test releases of their packages to Debusine, those test releases tend to have "UNRELEASED" as distribution or at least something matching "UNRELEASED.*". Those test releases are obviously not meant to be uploaded so they want "enable_upload=False" in those cases.

The plan to support this is:

  • we add a setting debusine_unreleased_distribution: unstable in the profile (debusine/client/dput_ng/skel/profiles/debusine.debian.net.json) (that way the user can also override it and decide to use the experimental workflow for the unreleased entry, or any other target distribution for that matter)
  • choose_workflow detects that Distribution matches "UNRELEASED.*", then it respects the setting debusine_unreleased_distribution. If it's empty/unset, it does nothing, if it's set to a value then it prints a message "Detecting UNRELEASED target distribution, uploading to {distribution} and disabling upload in the workflow"
  • choose_workflow dynamically modifies the profile to disable the upload:
profile["debusine_workflow_data"]["enable_upload"] = False

But this relies on #869 (closed) to happen first so that we can override enable_upload from the client side.

/cc @jspricke

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information