Following Upstream Releases¶
Templates that are copies of a packaged file (<series>-coolwsd.xml.j2, <series>-server.conf.j2, ...) have to follow the configuration changes of every upstream release. tools/follow-upstream.yml lists these applications: their package repositories, the templates built from each packaged file, and the supported_versions list a new series goes into. The format is described in its header.
- The
Linuxfabrik: Follow upstreamworkflow runstools/follow-upstream --checkevery weekday. For each release newer than theBased onlines it opens an issue titledfollow-upstream: <app> <version>with the labelfollow-upstream. Applications whose repository needs a customer token are checked outside the CI, where the token is available; their issues look the same. - The pull request that brings LFOps up to date lists one
Closes #<number>per issue. A closed issue means LFOps is ready for that release. tools/follow-upstream <app> <version>does the work: it fetches the RPM and the DEB of the release, checks their signatures, extracts/etcand the templated files outside of it, compares the packaging (new or vanished files, RPM and DEB differing, changed install scripts), and merges the upstream changes into every template withgit merge-file, keeping the LFOps changes. A new release series gets a new template from the newest older one and is added tosupported_versions. Conflicts are left as conflict markers.--dry-runwrites nothing,--list <app>lists the releases in the repositories,--checklists what needs work. Packages are cached in~/.cache/lfops-follow-upstream/.- The
lfops-follow-upstreamskill covers what the tool cannot judge: resolving conflicts, upgrade notes of a new series, the CHANGELOG entry and the commit message. - A release whose packaged file did not change only updates the
Based online. Commit it anyway, without a CHANGELOG entry, so--checkstops reporting the release and its issue gets closed. - A patch release inside an existing series needs no CHANGELOG entry, a new series goes under
### Added.
Workarounds and Planned Removals¶
Code that is only there until something happens elsewhere (a workaround for an upstream bug, a branch for a platform until its end of life, a vendored copy of an upstream module) gets an entry in tools/maintenance.yml, in the same pull request. The format is described in its header.
- Write
done_whenandcheckso that someone else can decide without your context: name the upstream issue, the release or commit that has to be in, and how to verify it (git tag --contains, a package version in a container). A closed issue is not enough. - Point to the entry from the code with a comment that names the upstream link (e.g.
# see https://github.com/Icinga/icinga2/issues/10617), or theidof the entry if there is no upstream link, sogit grepfinds every place. - The pull request that removes the workaround removes the entry.
- The
lfops-maintenanceskill runs the checks of all due entries and reports which ones need work. It runs from a recurring calendar reminder.
Vendored Plugins¶
Some plugins are vendored from upstream (local patches, upstream needs a newer ansible-core, or the dependency must ship to the managed node). Keep them in lockstep with upstream; re-sync or drop them when the condition is met.
plugins/modules/ipagroup.py,ipahbacrule.py,ipahostgroup.py,ipapwpolicy.py,ipasudocmd.py,ipasudocmdgroup.py,ipasudorule.py,ipauser.py: from https://github.com/freeipa/ansible-freeipa, with--diffsupport from PR #1415. Drop when a release contains it; switch tofreeipa.ansible_freeipa.<module>.plugins/modules/lvm_pv.py: from community.general (PR #10070, in 11.0.0, which needs ansible-core >= 2.18; LFOps still supports RHEL 8 / Python 3.6). Local patches, keep on re-sync:from __future__ import annotationsreplaced byfrom __future__ import absolute_import, division, print_function, andpvresizeonly runs when the device holds more or fewer extents than the PV (pv_needs_resize()), since everypvresizewrites a file to/etc/lvm/archive.rescan_device()is taken from upstream commit 6f22759f (PR #13218, fixing #13212), which is newer than the rest of the file; take it as is on re-sync. Drop when LFOps requires ansible-core >= 2.18; switch tocommunity.general.lvm_pvand updateroles/lvm.plugins/module_utils/gnupg.py(withgnupg.py_LICENSE.txt): byte-identical python-gnupg, revision in its__version__, used bygpg_keyon the managed node to avoid a pip install there. Not expected to be dropped; re-sync unmodified.