Allow us to indicate that a source should actually block its parent
kernel in a similar manner to that in which a snap tracker blocks its
parental tracker.
Add a new kernel-series swm tag block-parent-release which allows us
to note that this is such a source.
Signed-off-by: Andy Whitcroft <email address hidden>
swm: PPA blocks are less interesting than cycle blocks
We are more interested in deeper cycle blocks than simply being blocked
by the PPA being in use. Reorder detection and reporting to prioritise
these appropriately.
Signed-off-by: Andy Whitcroft <email address hidden>
swm: package -- pull out ready_to_prepare for reuse
We have master_prepare_ready as a gate on preparation of a source. Pull
this out to the more appropriatly names ready_to_prepare and move it to
Package for later reuse.
Signed-off-by: Andy Whitcroft <email address hidden>
swm: wft/prepare-package -- PPA blockage is less interesting than in cycle blockage
If we are blocked by our parent we would be nice and quiet until that is
ready. We do not need the PPA because we cannot be built. Do not
report PPA in use until we are actually able to use it.
Signed-off-by: Andy Whitcroft <email address hidden>
We have a bunch of places where we check the same tags which indicate
holds on the source preparation; these include manual blocks and those
triggered by trello Blocked lanes. Pull these out so they can be shared.
Add a block reason return so we can report a clear reason in the
dashboard status. Finally add jira related block tags.
Signed-off-by: Andy Whitcroft <email address hidden>
swm: source-blocks -- ensure mirror flags are updated in all cases
We care very much that the mirror flags are updated to match the current
state when we save the tracker. External processing is relying on those
being accurate to optimise handling. Ensure we write them back on every
status change regardless of whether we scanned against those tags. Note
that if the flag is unchanged then swm-properties remain unchanged and
their save will be avoided.
Signed-off-by: Andy Whitcroft <email address hidden>
swm: source-blocks -- switch to a common source_blocks_present and add jira
We are adding support for jira generated blocks. These are going to
come in via tagging. Pull out the three copies of the tag analysis and
commonise it on the WorkflowBug objects. Merge up the old manual
kernel-block-source and kernel-block into this and share to all
locations. Include a clear reason so we can ensure the reasons shown in
the dashboard remain nice and specific.
Signed-off-by: Andy Whitcroft <email address hidden>
Add a new context manager object which holds global references to the
various external objects: SruCycle, KernelSeries, and launchpad. Switch
various consumers to the new object.
Signed-off-by: Andy Whitcroft <email address hidden>