How a version of the plugin is cut. No release has been made; 0.1.0 is prepared but not tagged.
- Semantic Versioning. Phase 1 is 0.1.0. Until 1.0.0, a minor version may change the schema or templates; the upgrade path handles both.
INFOcarries the version of the next release.plugin_pfs_version()reads it, and Cacti shows it on the Plugins page.- CHANGELOG.md follows Keep a Changelog. Each release section is dated when it is tagged; until then it reads "Unreleased".
The release archive unpacks to a directory named pfs, which is what Cacti expects under plugins/:
pfs/
INFO LICENSE LICENSES/ README.md CHANGELOG.md SECURITY.md CONTRIBUTING.md CODE_OF_CONDUCT.md REUSE.toml
setup.php index.php pfs.php pfs_admin.php pfs_health.php poller_pfs.php
include/ lib/ scripts/ resource/script_server/ templates/ locales/ node/ docs/
Tests, CI configuration, and analysis configuration are left out by export-ignore in .gitattributes.
-
On a branch, set the version in
INFO, date the CHANGELOG section, and regeneratelocales/po/cacti.potwithsh locales/build_gettext.sh. Do this on every version change, not only when strings change: the template'sProject-Id-Versionheader carries the version fromINFO, sosh locales/build_gettext.sh --checkin CI fails until it is regenerated. -
Merge after CI passes on every matrix entry. CI's
end-to-endjob runs the device flow, target churn, backup and restore, the Thold and Maint replay, and failure qualification on Cacti 1.2.31 and the 1.2.x branch with PHP 8.2. Two runs stay manual: the RRD permission scenario of the failure run, which needs root (CI skips it), and the scale harness (tests/bin/scale-replay.sh), which takes several minutes at 2,000 targets. Run both in a disposable container and attach the output to the release pull request. -
Tag the merge commit with a signed tag,
git tag -s v<version> -m "plugin_pfs <version>". -
Build the archive from the tag and check its contents and its REUSE compliance:
git archive --format=tar.gz --prefix=pfs/ -o pfs-<version>.tar.gz v<version> tar -tzf pfs-<version>.tar.gz | head
-
Publish the archive and its SHA-256 on the GitHub release for the tag, with the CHANGELOG section as the notes.
A GitHub source download unpacks as plugin_pfs-<version>/ and must be renamed to pfs; the operator guide says so.