RFC: Trigger openstack cli completion files openstack plugins. #1538
Labels
No labels
announce
bootstrap
Closed As
accepted
Closed As
duplicate
Closed As
exceptionexpired
Closed As
fixed
Closed As
invalid
Closed As
nothingtodo
Closed As
permanentexception
Closed As
rejected
Closed As
temporaryexception
Closed As
wontfix
cmake
committee
draftneeded
hasdraft
meeting
meson
needinfo
Priority
In Committee
Priority
Needs Review
Priority
Waiting For Reporter
rust
writeup
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
packaging/guidelines#1538
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was asked to raise this here which I am happy to do so:
The
/usr/bin/openstackcli can benefit from a bash completion file.This bash completion file is dependent up which openstack cli plugins are installed and so must be generated late on host.
The package already contains a static unit
openstack-completion.servicethat is working well.Proposal:
I am wanting to rpm trigger the unit from installation and removal of the plugins.
Patch to python-openstackclient
https://src.fedoraproject.org/rpms/python-openstackclient/pull-request/12
this adds a filetrigger on entries in
%{_datadir}/openstackclient/pluginsto call the completion unit.The plugin packages would maintain a file in this directory to activate the trigger. Plugin patch:
https://src.fedoraproject.org/rpms/python-heatclient/pull-request/1
This has much in common with the man-db.service for instance however that has the advantage that there is obvious trigger path to work with that I unfortunately do not have so I have constructed one.
Happy to followup anything here or via matrix.
I have two questions:
How expensive is the "generation"? Is it feasible to run it on runtime when the completion is used? If not, is it feasible to run it with some caching mechanism?
How expensive is it to make it an RPM %transfiletriggerin/%transfiletriggerpostun over the entire %python3_sitelib? I realize it is an absolute overkill, but we do have even broader triggers in Fedora (e.g. mandir, fonts, texlive, mime).