[Nut-upsuser] [Nut-upsdev] Proposal: "experimental" namespace for non-standard NUT variables
jimklimov+nut at gmail.com
Sat Jun 12 19:21:30 BST 2021
Thanks Roger for the proposed changes, now they are largely incorporated
into this PR: https://github.com/networkupstools/nut/pull/1046
For the community at large: can I assume everyone with an opinion about
this introduction of "experimental.*" prefix for contributor-defined
concepts in new NUT drivers to fast-track merging of their contributions
(especially where it stalled for months and original authors walked
offline), agrees with such change?
In the coming weeks I hope to go over such stalled PRs (and some recent
merges, e.g. of https://github.com/networkupstools/nut/pull/975) to make
the codebases adhere to the changed standard (by adding the prefix) and so
get more drivers into main NUT tree and less PRs stalled.
It would be very welcome if someone beats me to that and proposes better
names right away before PRs are merged ;)
Some points to look at (there may be some I missed in the cursory search)
- nearly all of this mapping table
On Fri, May 28, 2021 at 1:09 PM Roger Price <roger at rogerprice.org> wrote:
> On Fri, 28 May 2021, Roger Price wrote:
> > On Fri, 28 May 2021, Jim Klimov via Nut-upsdev wrote:
> >> Looking at NUT pull request (PR) history on GitHub, I see that we
> have had
> >> a non-trivial number of stalled driver contributions sharing a
> >> similarity: proposed names for some of the variables did not fit into
> >> list defined at
> >> https://github.com/networkupstools/nut/blob/master/docs/nut-names.txt
> >> I propose to add a namespace like "experimental.*"
> > The future RFC refers to the file nut-names.txt as the "Recording
> > for variable names, thus giving it the authority of the RFC. It would
> > useful to clarify this in the introductory paragraph beginning "This is
> > dump...". It is more than a dump. The process for adding a variable
> name to
> > NUT could be formalised under a new heading such as "Process for adding
> > variable names".
> > The text following that heading could then introduce experimental....
> > variables.
> I suggest replacing the first paragraph of the file nut-names.txt with the
> something like the following:
> RFC xxxx Recording Document
> NUT variable names and instant commands
> This document is defined by RFC xxxx and referenced as the document of
> for the variable names and the instant commands used in the protocol
> by the RFC.
> On behalf of the RFC this document records the names of variables
> describing the
> abstracted state of a UPS, and the instant commands sent to the UPS using
> command INSTCMD, as used in commands and messages between the Attachment
> (upsd) and the clients. Developers should use the names recorded here.
> If you need to express a state which cannot be described by any existing
> make a request to the NUT developer's mailing list for assignment of a new
> Clients using unrecorded names risk breaking at a future update. If you
> wish to
> experiment before obtaining your requested variable name, you should use a
> of the form experimental.x.y
> Put another way: if you make up a name that's not in this list and it
> gets into the tree, and then we come up with a better name later, clients
> that use the undocumented variable will break when it is changed.
> NOTE: In the descriptions, "opaque" means programs should not attempt to
> the value for that variable as it may vary greatly from one UPS to the
> These strings are best handled directly by the user
> Nut-upsdev mailing list
> Nut-upsdev at alioth-lists.debian.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nut-upsuser