Bug 12922

Summary: Remove layerbranch automatically when conf/layer.conf is gone ?
Product: [Yocto Project Subprojects] Layer Index Reporter: Robert Yang <liezhi.yang>
Component: Layer IndexAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact: apoorv sangal <apoorvsangal>
Severity: enhancement    
Priority: Medium CC: bluelightning, brian.avery, randy.macleod, tim.orling, william.lyu
Version: unspecified   
Target Milestone: 6.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Robert Yang 2018-09-13 02:19:38 UTC
Can we make update.py remove layerbranch automatically when conf/layer.conf is gone ? It would make the workflow simple, otherwise, the layer owner has to notify layerindex administer to remove it manually. Maybe we ca add a conf like:
AUTO_REMOVE_LAYERBRANCH = True/False
Comment 1 Tim Orling 2023-10-07 17:31:32 UTC
Related to this, we need an ability to turn off updates for a LayerBranch. Currently we can only turn off ALL updates for a Layer or a Branch. Heavy hammers.
Comment 2 Tim Orling 2023-10-07 17:43:05 UTC
UI for LayerBranch is in https://bugzilla.yoctoproject.org/show_bug.cgi?id=8008
Comment 3 Randy MacLeod 2023-10-10 18:43:01 UTC
Set target to 5.99. 
It was set to 0.0 from 4.99 when last changed.
Comment 4 Tim Orling 2024-02-06 02:34:21 UTC
What do we really mean by "remove the layer"?

We now have at least two contexts, more likely three, for this:

(1) LayerItem is marked as "No Update" so no branch will ever be attempted to be updated ever again
(2) LayerBranch is marked as False for "Enable Updates", so this particular branch will never be attempted to be updated
(3) The layer is no longer displayed

For 3 we really do not have a way to implement that. We can DELETE the LayerItem or the LayerBranch objects. More likely there are cases where we want a layer to still be displayed for older stable branches, but no longer be displayed for "master" branch. Currently we can only create a LayerNote if the "master" branch still exists. We probably want to be able to create a LayerBranchNote which has 
LayerBranch specific information (such as "This layer is no longer being updated"). We might also want a "simple" 'do not display this layer anymore' setting for "master" for the layers that are ONLY applicable to prior releases. If we DELETE the "master" LayerBranch for a layer, it will simply be created again as long as the LayerItem exists and a "master" branch exists on the git repository.

Once we implement enforced LAYERSERIES_COMPAT for layers, we will absolutely need to indicate when a layer is not compatible with e.g. scarthgap/nanbield, but is marked as compatible with mickledore. Layers have a lag in updates (and some only support the LTS releases, even on "master" such as meta-agl*)
Comment 5 Tim Orling 2026-02-17 19:05:57 UTC
Still valid.