all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox{,-backup,-datacenter-manager} v3 0/5] factor system report into shared crate
@ 2026-08-11 11:43 Erik Fastermann
  2026-08-11 11:43   ` Erik Fastermann
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Erik Fastermann @ 2026-08-11 11:43 UTC (permalink / raw)
  To: pbs-devel, pdm-devel; +Cc: Erik Fastermann

This series moves the system report logic that was duplicated in
PBS and PDM into a new shared proxmox-system-report crate.

proxmox:
  Adds the proxmox-system-report crate holding the common file,
  command and function collection, the unified section order
  (FILES, COMMANDS, FUNCTIONS) and the merged set of general commands
  run on every product.

proxmox-backup, proxmox-datacenter-manager:
  Drop the duplicated logic and generate the report through the shared
  crate, passing only their product specific files, commands and
  functions.

The report content stays the same apart from two intentional effects
of sharing one implementation. The top-level section order is now the
same for both products and the general command set is the union of
what each ran before. PDM additionally emits FILES first now instead
of last. Product specific entries are untouched.

The PDM part of this series relies on an unapplied patch [0]. This was
done intentionally, as a similar patch was already applied for PBS [1]
and the shared report generation includes it.

Thank you @Christian Ebner for the feedback.


Changes since v1:
* Use version 1.0.0 for the new crate
* Add Debian changelog and control files for the new crate
* Use only 2026 as the year for the copyright notice of the new crate
* Rename CommandSpec types and update the doc comment
* Use the common_* and project_* prefixes for the related functions
* Add the previously missing report dependencies as extra commits for
  PDM and PBS
* Add the newly required report dependencies to PDM
* Add librust-proxmox-system-report-1+default-dev as a dependency to
  PDM and PBS
* Add a commented out local path override for proxmox-system-report to
  the `Cargo.toml` file in PDM and PBS

Changes since v2:
* Remove the Debian changelog file
* Added Reviewed-by and Tested-by trailers


[0] https://lore.proxmox.com/pdm-devel/20260515084116.8028-1-e.fastermann@proxmox.com/
[1] https://lore.proxmox.com/all/178402620783.364806.14819322231885586699.b4-ty@proxmox.com/


Erik Fastermann (1):
  system-report: add crate for shared report generation

 Cargo.toml                                 |   2 +
 proxmox-system-report/Cargo.toml           |  16 ++
 proxmox-system-report/debian/control       |  36 ++++
 proxmox-system-report/debian/copyright     |  18 ++
 proxmox-system-report/debian/debcargo.toml |   7 +
 proxmox-system-report/src/lib.rs           | 239 +++++++++++++++++++++
 6 files changed, 318 insertions(+)
 create mode 100644 proxmox-system-report/Cargo.toml
 create mode 100644 proxmox-system-report/debian/control
 create mode 100644 proxmox-system-report/debian/copyright
 create mode 100644 proxmox-system-report/debian/debcargo.toml
 create mode 100644 proxmox-system-report/src/lib.rs


proxmox-backup:

Erik Fastermann (2):
  d/control: depend on tools used by the system report
  report: use shared proxmox-system-report crate

 Cargo.toml           |   3 +
 debian/control       |   4 +
 src/server/report.rs | 217 ++++---------------------------------------
 3 files changed, 24 insertions(+), 200 deletions(-)


proxmox-datacenter-manager:

Erik Fastermann (2):
  d/control: depend on tools used by the system report
  report: use shared proxmox-system-report crate

 Cargo.toml           |   2 +
 debian/control       |  10 ++-
 server/Cargo.toml    |   1 +
 server/src/report.rs | 198 +------------------------------------------
 4 files changed, 16 insertions(+), 195 deletions(-)


Summary over all repositories:
  13 files changed, 358 insertions(+), 395 deletions(-)

-- 
Generated by murpp 0.11.0



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-08-12 10:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-11 11:43 [PATCH proxmox{,-backup,-datacenter-manager} v3 0/5] factor system report into shared crate Erik Fastermann
2026-08-11 11:43 ` [PATCH proxmox v3 1/5] system-report: add crate for shared report generation Erik Fastermann
2026-08-11 11:43   ` Erik Fastermann
2026-08-11 11:43 ` [PATCH proxmox-backup v3 2/5] d/control: depend on tools used by the system report Erik Fastermann
2026-08-11 11:43 ` [PATCH proxmox-backup v3 3/5] report: use shared proxmox-system-report crate Erik Fastermann
2026-08-11 11:43   ` Erik Fastermann
2026-08-11 11:43 ` [PATCH proxmox-datacenter-manager v3 4/5] d/control: depend on tools used by the system report Erik Fastermann
2026-08-11 11:43 ` [PATCH proxmox-datacenter-manager v3 5/5] report: use shared proxmox-system-report crate Erik Fastermann
2026-08-11 11:43   ` Erik Fastermann
2026-08-12  9:59 ` [PATCH proxmox{,-backup,-datacenter-manager} v3 0/5] factor system report into shared crate Nicolas Frey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal