packit-service icon indicating copy to clipboard operation
packit-service copied to clipboard

Pre-release need to go against a side tag

Open nievesmontero opened this issue 10 months ago • 1 comments

The pre-releases of a package, usually beta releases, need to go against a side tag, since they usually have major changes that depend on many other packages. This means that they cannot be automatically and individually updated, they need to go all together against a side tag.

nievesmontero avatar Apr 11 '25 08:04 nievesmontero

IIUC, this is about implementing a run condition so that a different koji_build/bodhi_update job will run under different circumstancies (in this case version is/isn't a pre-release).

nforro avatar Apr 11 '25 09:04 nforro

We could implement this as a job-level action that would run as part of pre-check here: https://github.com/packit/packit-service/blob/11d4722765650d350cab89ba8ec80fcfd0736cfa/packit_service/worker/jobs.py#L705-L713

Git repo wouldn't be cloned at that time, but we could pass the event dict (or a sanitized subset of it) as an environment variable to the action.

nforro avatar Apr 17 '25 08:04 nforro

Naming suggestions (from refinement):

  • when (though is not very explicit about what the contents should be)
  • require (require SUCCESS exit code of the action to proceed)
  • precondition

Maybe also provide some helpful environment variables in addition to whole config.

mfocko avatar Apr 17 '25 10:04 mfocko