Compare commits
12 Commits
v0.8.2.3_b
...
v0.8.6.4_b
| Author | SHA1 | Date | |
|---|---|---|---|
| 972a18461f | |||
| 36f6c6b57d | |||
| 7f8c604acf | |||
| 9301c13e6a | |||
| 256572c18c | |||
| 7802582922 | |||
| 82cf608d17 | |||
| 0c0000aaab | |||
| 9b799751cd | |||
| 8dcb20f123 | |||
| 8a7f4160db | |||
| 8079bf0ca6 |
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
LICENSE.md -text
|
||||
72
.gitea/ISSUE_TEMPLATE/01-bug-report.yaml
Normal file
@@ -0,0 +1,72 @@
|
||||
name: "Bug Report"
|
||||
about: "Report a reproducible problem in ARM."
|
||||
labels: ["type/bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
This issue is public. Remove credentials, passwords, tokens, private keys, identifying paths and sensitive infrastructure details. Check screenshots and logs before attaching them. Report security concerns privately.
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: "Installed ARM version"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: windows
|
||||
attributes:
|
||||
label: "Windows version and architecture"
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: distribution
|
||||
attributes:
|
||||
label: "Distribution"
|
||||
options:
|
||||
- "Installed"
|
||||
- "Portable"
|
||||
- "Source checkout"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: configuration
|
||||
attributes:
|
||||
label: "Relevant monitoring configuration"
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: "Issue description"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: steps
|
||||
attributes:
|
||||
label: "Steps to reproduce"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: "Expected behavior"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: actual
|
||||
attributes:
|
||||
label: "Actual behavior"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: frequency
|
||||
attributes:
|
||||
label: "Frequency of occurrence"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: evidence
|
||||
attributes:
|
||||
label: "Screenshots and sanitized diagnostic logs"
|
||||
- type: textarea
|
||||
id: workaround
|
||||
attributes:
|
||||
label: "Workaround"
|
||||
28
.gitea/ISSUE_TEMPLATE/02-feature-request.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: "Feature Request"
|
||||
about: "Describe the problem and the proposed improvement."
|
||||
labels: ["type/feature"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
This issue is public. Remove credentials, passwords, tokens, private keys, identifying paths and sensitive infrastructure details. Check screenshots and logs before attaching them. Report security concerns privately.
|
||||
- type: textarea
|
||||
id: goal
|
||||
attributes:
|
||||
label: "Problem or goal"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: proposal
|
||||
attributes:
|
||||
label: "Proposed behavior"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: alternatives
|
||||
attributes:
|
||||
label: "Alternatives considered"
|
||||
- type: textarea
|
||||
id: acceptance
|
||||
attributes:
|
||||
label: "How to tell it is working"
|
||||
52
.gitea/ISSUE_TEMPLATE/03-hardware-compatibility.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
name: "Hardware Compatibility"
|
||||
about: "Report missing or incorrect hardware telemetry."
|
||||
labels: ["type/bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
This issue is public. Remove credentials, passwords, tokens, private keys, identifying paths and sensitive infrastructure details. Check screenshots and logs before attaching them. Report security concerns privately.
|
||||
- type: textarea
|
||||
id: arm
|
||||
attributes:
|
||||
label: "Installed ARM version"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: os
|
||||
attributes:
|
||||
label: "Operating system"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: cpu
|
||||
attributes:
|
||||
label: "CPU manufacturer and model"
|
||||
- type: textarea
|
||||
id: gpu
|
||||
attributes:
|
||||
label: "GPU manufacturer and model"
|
||||
- type: textarea
|
||||
id: driver
|
||||
attributes:
|
||||
label: "GPU driver version"
|
||||
- type: textarea
|
||||
id: provider
|
||||
attributes:
|
||||
label: "Affected telemetry provider"
|
||||
- type: textarea
|
||||
id: actual
|
||||
attributes:
|
||||
label: "Missing or incorrect readings"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: "Expected measurements and comparison tool"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: "Sanitized diagnostics"
|
||||
59
.gitea/ISSUE_TEMPLATE/04-remote-monitoring.yaml
Normal file
@@ -0,0 +1,59 @@
|
||||
name: "Remote Monitoring Issue"
|
||||
about: "Describe SSH or remote resource monitoring behavior."
|
||||
labels: ["type/bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
This issue is public. Remove credentials, passwords, tokens, private keys, identifying paths and sensitive infrastructure details. Check screenshots and logs before attaching them. Report security concerns privately.
|
||||
Describe authentication by method only. Omit SSH credentials, hostnames, public and private addresses, key fingerprints, SSH users and other connection details. Use generic replacement names.
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: "Installed ARM version"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: os
|
||||
attributes:
|
||||
label: "Remote operating system"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: connection
|
||||
attributes:
|
||||
label: "Connection method and authentication method"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: resource
|
||||
attributes:
|
||||
label: "Affected resource category"
|
||||
- type: textarea
|
||||
id: behavior
|
||||
attributes:
|
||||
label: "Connection behavior"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: "Expected behavior"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: actual
|
||||
attributes:
|
||||
label: "Actual behavior"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: steps
|
||||
attributes:
|
||||
label: "Steps to reproduce"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: output
|
||||
attributes:
|
||||
label: "Sanitized diagnostic output"
|
||||
55
.gitea/ISSUE_TEMPLATE/05-installation-update.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
name: "Installation or Update Issue"
|
||||
about: "Report trouble installing, verifying or updating ARM."
|
||||
labels: ["type/bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
This issue is public. Remove credentials, passwords, tokens, private keys, identifying paths and sensitive infrastructure details. Check screenshots and logs before attaching them. Report security concerns privately.
|
||||
Keep compatibility and signature checks enabled. Include the reported result and error text with usernames, file paths and any identifying receipt data removed.
|
||||
- type: textarea
|
||||
id: current
|
||||
attributes:
|
||||
label: "Existing version"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: target
|
||||
attributes:
|
||||
label: "Intended version"
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: mode
|
||||
attributes:
|
||||
label: "Distribution"
|
||||
options:
|
||||
- "Installed"
|
||||
- "Portable"
|
||||
- "Not yet installed"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: stage
|
||||
attributes:
|
||||
label: "Installation or update stage"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: signature
|
||||
attributes:
|
||||
label: "Signature verification result"
|
||||
- type: textarea
|
||||
id: package
|
||||
attributes:
|
||||
label: "Package integrity verification result"
|
||||
- type: textarea
|
||||
id: lifecycle
|
||||
attributes:
|
||||
label: "Shutdown, installation, restart and rollback results"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: "Sanitized updater logs or completion receipt details"
|
||||
34
.gitea/ISSUE_TEMPLATE/06-performance.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: "Performance Issue"
|
||||
about: "Report sustained CPU, memory or responsiveness problems."
|
||||
labels: ["type/bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
This issue is public. Remove credentials, passwords, tokens, private keys, identifying paths and sensitive infrastructure details. Check screenshots and logs before attaching them. Report security concerns privately.
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: "Installed ARM version"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: workload
|
||||
attributes:
|
||||
label: "Monitoring mode, target count and sampling intervals"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: observations
|
||||
attributes:
|
||||
label: "Measurement method, duration, results and expected behavior"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: devices
|
||||
attributes:
|
||||
label: "Operating system, architecture and hardware models"
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: "Sanitized supporting diagnostics"
|
||||
24
.gitea/ISSUE_TEMPLATE/07-documentation.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: "Documentation Issue"
|
||||
about: "Report unclear, missing or incorrect documentation."
|
||||
labels: ["type/documentation"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
This issue is public. Remove credentials, passwords, tokens, private keys, identifying paths and sensitive infrastructure details. Check screenshots and logs before attaching them. Report security concerns privately.
|
||||
- type: textarea
|
||||
id: page
|
||||
attributes:
|
||||
label: "Page, section or link"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: "What needs correcting"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: correction
|
||||
attributes:
|
||||
label: "Suggested wording or reproduction steps"
|
||||
24
.gitea/ISSUE_TEMPLATE/08-support.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: "General Support"
|
||||
about: "Ask for help using an official ARM release."
|
||||
labels: ["type/support"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
This issue is public. Remove credentials, passwords, tokens, private keys, identifying paths and sensitive infrastructure details. Check screenshots and logs before attaching them. Report security concerns privately.
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: "Installed ARM version"
|
||||
- type: textarea
|
||||
id: question
|
||||
attributes:
|
||||
label: "Question or goal"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: tried
|
||||
attributes:
|
||||
label: "What you have tried"
|
||||
validations:
|
||||
required: true
|
||||
63
.gitea/ISSUE_TEMPLATE/09-derivative-request.yaml
Normal file
@@ -0,0 +1,63 @@
|
||||
name: "Derivative Distribution Request"
|
||||
about: "Start a public, non-confidential inquiry about written permission."
|
||||
labels: ["type/derivative"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
This issue is public. Remove credentials, passwords, tokens, private keys, identifying paths and sensitive infrastructure details. Check screenshots and logs before attaching them. Report security concerns privately.
|
||||
See [LICENSE.md](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/src/branch/main/LICENSE.md). A public issue is an inquiry. Distribution requires prior affirmative written permission from the Licensor. Send confidential details and formal requests through the [Design Creations contact form](https://www.designcreations.us/contact/index.php).
|
||||
- type: textarea
|
||||
id: project
|
||||
attributes:
|
||||
label: "Proposed derivative project and maintainer or organization"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: "Original ARM version"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: scope
|
||||
attributes:
|
||||
label: "Modifications and intended use"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: distribution
|
||||
attributes:
|
||||
label: "Proposed distribution method and location"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: repository
|
||||
attributes:
|
||||
label: "Proposed source repository"
|
||||
- type: textarea
|
||||
id: support
|
||||
attributes:
|
||||
label: "Proposed public support page or issue tracker"
|
||||
- type: dropdown
|
||||
id: classification
|
||||
attributes:
|
||||
label: "Distribution classification"
|
||||
options:
|
||||
- "Non-commercial"
|
||||
- "Commercial"
|
||||
- "Unsure"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: attribution
|
||||
attributes:
|
||||
label: "How original attribution will be retained"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: share-alike
|
||||
attributes:
|
||||
label: "How applicable share-alike obligations will be met"
|
||||
validations:
|
||||
required: true
|
||||
5
.gitea/ISSUE_TEMPLATE/config.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Security Reporting Instructions
|
||||
url: https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/src/branch/main/SECURITY.md#report-a-security-issue
|
||||
about: Use the private Design Creations contact form for vulnerabilities or exposed secrets.
|
||||
6
BUILD.md
@@ -27,6 +27,12 @@ Settings and history stay under the user's local app data across upgrades and
|
||||
uninstall. Extract the portable ZIP before running AdaptiveResourceMonitor.exe.
|
||||
Both packages contain their Python and Qt runtime.
|
||||
|
||||
Both packages include the root `LICENSE.md`, copied byte for byte.
|
||||
Interactive Setup displays a copy of that text as its license agreement.
|
||||
The existing signed updater remains unattended after in-app authorization.
|
||||
Jenkins validates the packaged license against the digest from the exact
|
||||
source revision before publication.
|
||||
|
||||
Jenkins adds signed release manifests and a pinned build receipt. A local
|
||||
build produces packages and SHA-256 hashes. The maintenance executable and
|
||||
runtime package both embed VERSION.md and the public verification key.
|
||||
|
||||
30
CHANGELOG.md
@@ -1,5 +1,35 @@
|
||||
# Changelog
|
||||
|
||||
## v0.8.6.4_beta — 2026-11-26
|
||||
|
||||
- Place View License immediately beside Application Details in About. The Software license row displays DC-ANCSA v1.0 as text. View License still opens the complete terms offline.
|
||||
- Include Report Issue in About and the tray, and Copy Application Information in Application Details. [#1](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/1)
|
||||
|
||||
## v0.8.5.4_beta — 2026-11-26
|
||||
|
||||
The Report Issue revision is included in v0.8.6.4_beta.
|
||||
|
||||
- Add a Report Issue button in About and a matching tray action below Check for Updates. Both open the public issue index in the default browser. [#1](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/1)
|
||||
- Add Copy Application Information to Application Details for an optional, sanitized clipboard summary.
|
||||
|
||||
## v0.8.4.4_beta — 2026-11-26
|
||||
|
||||
- Bundle DC-ANCSA v1.0 in the Windows installer and portable ZIP. Interactive Setup shows the agreement, and About opens the complete license offline.
|
||||
- Show uptime for the local Windows machine and Linux SSH targets.
|
||||
- Drag a machine card from its header or graphs. Use the hover monitor's Pin/Unpin button to change pinning.
|
||||
- Open the shared Settings page from the main window between Resource Monitor and About, or from the tray menu.
|
||||
- Open the changelog even when the main window is minimized. Opening it clears the success banner in both monitoring views and preserves the update completion receipt.
|
||||
|
||||
## v0.8.3.3_beta — 2026-11-26
|
||||
|
||||
Internal candidate superseded by v0.8.4.4_beta.
|
||||
|
||||
- Bundle the Design Creations Attribution-NonCommercial-ShareAlike License v1.0 and show it offline from About.
|
||||
- Dismiss the update success banner after View Changelog opens the changelog.
|
||||
- Drag a machine from its card or graphs in either monitor.
|
||||
- Use the hover monitor's Pin/Unpin button to change pinning. Clicking the tray icon opens the popup.
|
||||
- Show uptime in each Local Machine and Linux remote monitoring section.
|
||||
|
||||
## v0.8.2.3_beta — 2026-11-26
|
||||
|
||||
- Drag machine headers to reorder sections in either monitor, or drag rows in Remote Targets. ARM saves the shared order as soon as a machine is dropped.
|
||||
|
||||
13
CONTRIBUTING.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Contributing to Adaptive Resource Monitor
|
||||
|
||||
Search [open and closed issues](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues) before opening a report. Use the [issue chooser](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new/choose) to pick the appropriate form. Include the ARM version, distribution, expected and actual behavior, and a minimal reproduction. Follow the [diagnostic privacy guidance](SUPPORT.md#share-diagnostics-safely).
|
||||
|
||||
To propose a patch, discuss the intended scope in an issue first. Base the changes on the current default branch. Describe the problem, the change and the validation performed, and reference the issue as `Refs #123`. Submit the patch directly to the original project through the [Design Creations contact form](https://www.designcreations.us/contact/index.php) or coordinate a submission with a maintainer. Please only contribute material that you have the right to submit on the terms in [LICENSE.md](LICENSE.md). Reviewers use the [issue lifecycle](ISSUE_MANAGEMENT.md).
|
||||
|
||||
## Derivative distribution permission
|
||||
|
||||
Private non-commercial development and contributions directly to the project are covered by the license. Before distributing a derivative publicly, obtain affirmative written permission from the Licensor. Commercial use also requires separate written permission as described in the license.
|
||||
|
||||
Use the [Design Creations contact form](https://www.designcreations.us/contact/index.php) for the formal request and confidential correspondence. Include the proposed project and maintainer, original ARM version, changes and intended use, distribution method and location, planned source repository, public support page, intended commercial or non-commercial classification, and how you would meet attribution and applicable share-alike obligations. Use the [derivative request form](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F09-derivative-request.yaml) for an optional public, non-confidential inquiry. Only written approval from the Licensor authorizes distribution.
|
||||
|
||||
Independently distributed derivatives are supported by their respective maintainers. The authoritative terms are in [LICENSE.md](LICENSE.md).
|
||||
@@ -1,5 +1,122 @@
|
||||
# Adaptive Resource Monitor implementation report
|
||||
|
||||
## v0.8.4.4_beta — Settings, changelog and licensed release
|
||||
|
||||
The Minor and Bug-Fix counters each advance once from v0.8.3.3_beta.
|
||||
This release includes the offline DC-ANCSA v1.0 viewer and Setup agreement,
|
||||
local and remote uptime, full machine card sorting, and button-only pinning.
|
||||
The main window and tray share the same Settings page, including pending edits.
|
||||
View Changelog restores a minimized monitor, opens the changelog and clears
|
||||
both success banners while leaving the update receipt available.
|
||||
|
||||
The production update runs directly from v0.8.2.3_beta through its
|
||||
existing About controls and unattended Setup. The original author
|
||||
explicitly authorized her production upgrade under her authority as
|
||||
licensor. The signed package still carries the authoritative license,
|
||||
and interactive Setup presents the agreement.
|
||||
|
||||
Jenkins Build and Archive #19 passed the 39 regressions, native Windows
|
||||
checks and package checks for commit
|
||||
`9b799751cd315e36f0c305e7f0c1cc5ba3dfc7b5`. A disposable Setup displayed
|
||||
the full agreement. Declining preserved the previous files, accepting
|
||||
advanced Setup, and update mode preserved the fixture profile and history.
|
||||
Publication #13 released the pinned artifacts. All seven anonymous
|
||||
downloads matched the archive and the Ed25519 signature verified. The
|
||||
published license matched its signed SHA-256. Gitea returned 404 for the
|
||||
superseded v0.8.3.3_beta release.
|
||||
[Build #19](https://phantom.zapto.org:8080/jenkins/job/Adaptive-Resource-Monitor/job/Build-and-Archive/19/)
|
||||
[Publication #13](https://phantom.zapto.org:8080/jenkins/job/Adaptive-Resource-Monitor/job/Publish-Release/13/)
|
||||
[Public release](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/tag/v0.8.4.4_beta)
|
||||
|
||||
| Windows x64 package | Bytes | SHA-256 |
|
||||
| --- | ---: | --- |
|
||||
| Installer | 60,115,361 | `836d638e4db89ddae86c58e6d0bbee67c73454cb2f33c1f64ac23529038e7a16` |
|
||||
| Portable ZIP | 74,567,873 | `2895cd94ac5f076df264a518ca3b8d84114e06f640f8cbb1b9c7db412b4f8e1a` |
|
||||
|
||||
Transaction `47ab8563c7d14220b923231c0bc82cf8` recorded the verified
|
||||
download, orderly shutdown, visible installer progress, automatic
|
||||
restart in the same Windows session, and successful completion. The
|
||||
previous process exited with code 0 before Setup opened its log. All
|
||||
302 installed files matched the archive. The launcher exited and one
|
||||
ARM instance remained.
|
||||
|
||||
All five machines reconnected and reported uptime, with separate
|
||||
network IN and OUT readings. The settings file, saved machine order
|
||||
and selection, pinned SSH host keys, startup registration and
|
||||
credential access were preserved. Startup update checks and the
|
||||
four-hour interval stayed enabled. The installed About tab reported
|
||||
the latest verified release. The Settings tab and the complete
|
||||
offline license viewer opened. View Changelog cleared the success
|
||||
banner and left the completion files byte-for-byte unchanged.
|
||||
|
||||
The disposable Setup check removed 278,013,139 bytes. Anonymous
|
||||
verification removed another 134,686,177 bytes. Native and production
|
||||
evidence is retained under `evidence/v0.8.4.4_beta-native/` and
|
||||
`evidence/v0.8.4.4_beta-production/`.
|
||||
|
||||
## v0.8.3.3_beta — Software license and monitor refinements
|
||||
|
||||
This Minor milestone bundles the supplied DC-ANCSA v1.0 text byte for byte,
|
||||
adds original source attribution, presents the complete license in a themed
|
||||
offline About dialog with saved geometry, and adds a license agreement to
|
||||
interactive Windows Setup. Signed release information identifies the
|
||||
license hash. Later changes require verified text and explicit acceptance
|
||||
before the updater shuts down the application.
|
||||
|
||||
The update success banner dismisses when its changelog opens. Any
|
||||
non-interactive part of a machine card can start a drag, including a graph.
|
||||
The hover monitor's own button controls pinning.
|
||||
Windows and Linux machine headers report uptime from the existing local
|
||||
sampling worker and SSH telemetry stream.
|
||||
|
||||
The supplied root license and the anonymous Gitea copy match SHA-256
|
||||
`d5dde5498f5a81b4cc9ca1db3a1b53d6cc343053a080ceaefcf20a423984f215`.
|
||||
Gitea's description identifies the current source as DC-ANCSA v1.0. The
|
||||
repository retained its existing visibility and prior release tags.
|
||||
|
||||
The dependency review preserved the Qt, PySide, CPython, Paramiko and
|
||||
other wheel notices. It added the BSD notice from the NVIDIA wrapper
|
||||
source header and the OpenSSL and Tcl notices. The applications' own
|
||||
license governs original material. Separate upstream terms for bundled
|
||||
libraries are documented in the third-party notices.
|
||||
|
||||
The 39 regressions and final private native Windows suite passed. The
|
||||
suite checked the offline license viewer and restored window placement,
|
||||
the banner and completion marker, graph-body dragging, tray click and
|
||||
pin behavior, and Windows uptime and Linux SSH fixture uptime. The
|
||||
Linux probe passed Bash syntax validation in the existing Ubuntu WSL
|
||||
environment.
|
||||
|
||||
Build and Archive #17 built and signed commit
|
||||
`8079bf0ca626c7643e5cf3e928651f9c8e63c96a`. The Windows x64 installer,
|
||||
portable package, Ed25519 signature, exact bundled license and signed
|
||||
build identity verified. This internal candidate was superseded by
|
||||
v0.8.4.4_beta.
|
||||
[Build #17](https://phantom.zapto.org:8080/jenkins/job/Adaptive-Resource-Monitor/job/Build-and-Archive/17/)
|
||||
|
||||
| Windows x64 package | Bytes | SHA-256 |
|
||||
| --- | ---: | --- |
|
||||
| Installer | 60,120,801 | `4360334e1c8123664bada615a57cdbed4b319cb0948ebd1040a3b74d0320a881` |
|
||||
| Portable ZIP | 74,566,298 | `bec0c3656e65e0da8f12faebb585b27a186feca10b2981c090083904fa288a09` |
|
||||
|
||||
The disposable Inno Setup wizard displayed the complete agreement from
|
||||
the archived payload. Declining disabled Next and canceling preserved the
|
||||
prior executable and data. Accepting advanced Setup. The separate unattended
|
||||
update-mode install and uninstall both returned 0. The installed license
|
||||
matched its source, and the fixture profile, saved display preferences and
|
||||
history remained identical. The wizard screenshot is retained in
|
||||
`evidence/v0.8.3.3_beta-native/installer-license-agreement.png`.
|
||||
|
||||
The final private application check removed 242,695 bytes of test data.
|
||||
The disposable Setup check removed 278,016,814 bytes of compiler staging,
|
||||
test installers, installation files and fixture settings. The signed
|
||||
candidate and evidence are retained.
|
||||
|
||||
A failed early disposable compiler stage left
|
||||
`%TEMP%\arm-qa-upgrade-i_uxybxg`. Windows denied access to the child
|
||||
compiler directory. Automatic command review rejected ownership and
|
||||
cleanup operations for that path.
|
||||
|
||||
## v0.8.2.3_beta — Machine ordering and display selection
|
||||
|
||||
Two Feature increments combine drag-and-drop machine ordering and checkbox
|
||||
@@ -23,6 +140,59 @@ optional plugin and includes the upstream notices and versioned sources for
|
||||
the dynamically linked Qt and PySide runtime. The native package test checks
|
||||
both notice files and the absence of the plugin.
|
||||
|
||||
### Release verification
|
||||
|
||||
All 38 automated regressions passed. The private native Windows tests
|
||||
exercised every requested machine combination at effective 100% and 150%
|
||||
Qt scaling, drag-and-drop in all three interfaces, Escape cancellation,
|
||||
autoscroll, failed-write recovery, hidden-machine history, and restoration
|
||||
after the isolated Windows process was forcibly terminated. Four loopback
|
||||
SSH fixtures carried the production profile names in those tests. The
|
||||
reordered windows and six display combinations are recorded in
|
||||
`evidence/v0.8.2.3_beta-native/`.
|
||||
|
||||
A separate native installer identifier and disposable settings root enabled
|
||||
an upgrade, rollback and re-upgrade check beside the running production
|
||||
instance. All four Setup operations and uninstall returned 0. The profile,
|
||||
saved display order and selection, and history fixture stayed intact.
|
||||
|
||||
Build and Archive #16 built commit
|
||||
`d2f8550111c85ae3fc12c3ed47fc511acce25733`. Publish Release #12
|
||||
published all seven archived assets. Anonymous size and SHA-256 comparison
|
||||
matched the same archive. The Ed25519 signature, package architecture,
|
||||
version, release notes, and source commit were verified.
|
||||
[Build #16](https://phantom.zapto.org:8080/jenkins/job/Adaptive-Resource-Monitor/job/Build-and-Archive/16/)
|
||||
[Publication #12](https://phantom.zapto.org:8080/jenkins/job/Adaptive-Resource-Monitor/job/Publish-Release/12/)
|
||||
[Public release](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/tag/v0.8.2.3_beta)
|
||||
|
||||
| Windows x64 package | Bytes | SHA-256 |
|
||||
| --- | ---: | --- |
|
||||
| Installer | 60,102,728 | `fad639b044a0bce65e25b98abe83accf4697df2b08e944edfb92ed08320a49a9` |
|
||||
| Portable ZIP | 74,550,214 | `185c9ce82e09bb6b2b1e44d2236548989f18749c8fa095e57a81919329d759a5` |
|
||||
|
||||
### Production acceptance
|
||||
|
||||
The installed updater discovered and verified the package in About.
|
||||
Transaction `830e1c4a2a814638a1450cb32499db7c` recorded shutdown,
|
||||
exit code 0 before installer startup, visible installation progress,
|
||||
verification, and an automatic restart in the same Windows user session
|
||||
at the original privilege level. The transaction and completion receipt are
|
||||
retained in `evidence/v0.8.2.3_beta-production/`. The sole running
|
||||
instance matched all 298 archived payload files, and the launcher exited.
|
||||
|
||||
The five machines resumed monitoring. The production Explorer hover
|
||||
recorded a deliberately changed order, the visible version label, and the
|
||||
Rain and Phantom checkbox selection. All four remote SSH sessions remained
|
||||
connected while only two machines were displayed. The settings and SSH
|
||||
host key files retained their hashes. Credentials and startup settings were
|
||||
preserved. Persistent recording and automatic update checks remained off.
|
||||
The installed updater verified v0.8.2.3_beta as current.
|
||||
|
||||
The disposable installer test reclaimed 496,926,848 bytes and the
|
||||
independent public verification reclaimed 134,655,353 bytes. Redundant
|
||||
local screenshots totaling 1,139,355 bytes were removed. The 20 feature
|
||||
screenshots and production receipts remain as evidence.
|
||||
|
||||
## v0.6.2.3_beta — Hover monitor version and window placement
|
||||
|
||||
Production v0.6.2.2_beta was built from `5e8ea74be3fd94156bdc7a0810cfcc8eaac739f0`.
|
||||
@@ -79,8 +249,10 @@ Saved credentials remained accessible and automatic checks remained off.
|
||||
Persistent disk recording was already off. The shipped client verified
|
||||
that the public release matched the installed version.
|
||||
|
||||
The signed packages remain under `release/v0.6.2.3_beta/`. Native
|
||||
screenshots are under `evidence/v0.6.2.3_beta-native/`. The live screenshot,
|
||||
The signed packages remain available from Jenkins and Gitea. The two
|
||||
superseded local binaries totaling 134,860,437 bytes were removed after
|
||||
the feature release passed. Native screenshots are under
|
||||
`evidence/v0.6.2.3_beta-native/`. The live screenshot,
|
||||
installer log, process verification and completion receipt are retained
|
||||
under `evidence/v0.6.2.3_beta-production/`. The independent anonymous
|
||||
verification removed 134,862,477 bytes of temporary downloads. Jenkins
|
||||
|
||||
22
ISSUE_MANAGEMENT.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Issue and release workflow
|
||||
|
||||
The public [issue tracker](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues) handles support and development.
|
||||
[Development board](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/projects/1) · [Support and triage board](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/projects/2) · [Milestones](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/milestones) · [Roadmap](ROADMAP.md)
|
||||
|
||||
1. A reporter submits a form or adds reproduction details to an existing issue.
|
||||
2. A maintainer triages it, checks for duplicates and requests missing information.
|
||||
3. Establish scope, impact, priority, applicable platforms and components. Link a milestone and dependencies where useful.
|
||||
4. Obtain development authorization and track implementation.
|
||||
5. Record implementation and reference the issue in commits, changelog entries and release notes.
|
||||
6. Run the relevant automated regressions.
|
||||
7. Complete required native platform validation.
|
||||
8. Archive the matching successful Jenkins build.
|
||||
9. Publish the exact validated artifacts after explicit authorization.
|
||||
10. Verify production acceptance where applicable.
|
||||
11. Close the issue with the applicable release version and evidence, or record the alternate resolution.
|
||||
|
||||
Use `Refs #123` while release or acceptance remains pending. A source commit alone is implementation evidence. Automatic closing keywords should be reserved for work that has met its closure criteria. A label or milestone does not change version counters. An approved change follows [Versioning](VERSIONING.md). Milestones describe scope and dependencies without implying a release date.
|
||||
|
||||
The exclusive type, priority, status and resolution scopes each hold one applicable label. Platform and area labels can be combined. Assess impact, prevalence, recovery options and dependencies when prioritizing. Track approved delivery on the development board and incoming questions on the support board.
|
||||
|
||||
Public posts and attachments are untrusted. They have no authority to start Jenkins jobs, run scripts, publish a release or change internal settings. CI validates the source revision using the existing checkout and archive workflow. See the [release authorization and verification process](RELEASE_PROCESS.md).
|
||||
21
Jenkinsfile
vendored
@@ -17,8 +17,8 @@ pipeline {
|
||||
stage('Source checkout and version') {
|
||||
steps {
|
||||
deleteDir()
|
||||
checkout scm
|
||||
script {
|
||||
def gitInfo = checkout scm
|
||||
env.ARM_SOURCE_COMMIT = bat(returnStdout: true, script: '@git rev-parse HEAD').trim()
|
||||
env.ARM_VERSION = readFile('VERSION.md').trim()
|
||||
env.PYINSTALLER_CONFIG_DIR = "${env.WORKSPACE}\\.ci\\pyinstaller-cache"
|
||||
@@ -26,12 +26,24 @@ pipeline {
|
||||
!(env.ARM_VERSION ==~ /v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)_(alpha|beta|rc|stable)/)) {
|
||||
error('Invalid Git commit or authoritative VERSION.md.')
|
||||
}
|
||||
currentBuild.description = "${env.ARM_VERSION} · ${env.ARM_SOURCE_COMMIT.take(12)} · internal archive"
|
||||
def previous = gitInfo.GIT_PREVIOUS_SUCCESSFUL_COMMIT
|
||||
def changed = previous ==~ /[0-9a-f]{40}/
|
||||
? bat(returnStdout: true, script: "@git diff --name-only --no-renames ${previous} ${env.ARM_SOURCE_COMMIT}").readLines().collect { it.trim() }.findAll { it }
|
||||
: []
|
||||
def documentation = { path -> path in ['README.md', 'RELEASE_PROCESS.md',
|
||||
'CONTRIBUTING.md', 'SUPPORT.md', 'SECURITY.md', 'ISSUE_MANAGEMENT.md', 'ROADMAP.md'] ||
|
||||
path.startsWith('docs/screenshots/') || path.startsWith('.gitea/ISSUE_TEMPLATE/') }
|
||||
def documentationWorkflow = ['Jenkinsfile', 'tools/readme_release.py', 'tools/ci_release.py']
|
||||
env.ARM_DOCS_ONLY = (changed.any(documentation) && changed.every { path ->
|
||||
documentation(path) || path in documentationWorkflow
|
||||
}).toString()
|
||||
currentBuild.description = "${env.ARM_VERSION} · ${env.ARM_SOURCE_COMMIT.take(12)} · ${env.ARM_DOCS_ONLY == 'true' ? 'documentation only' : 'internal archive'}"
|
||||
echo "Native Windows agent ${env.NODE_NAME}, build #${env.BUILD_NUMBER}, ${env.ARM_VERSION}, ${env.ARM_SOURCE_COMMIT}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Environment and dependencies') {
|
||||
when { expression { env.ARM_DOCS_ONLY != 'true' } }
|
||||
steps {
|
||||
bat 'py -3.12 -m venv .ci\\python'
|
||||
bat '.ci\\python\\Scripts\\python.exe -m pip install -r requirements-build.txt'
|
||||
@@ -40,22 +52,26 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Regression and native Windows checks') {
|
||||
when { expression { env.ARM_DOCS_ONLY != 'true' } }
|
||||
steps {
|
||||
bat '.ci\\python\\Scripts\\python.exe -m unittest discover -s tests -v'
|
||||
bat '.ci\\python\\Scripts\\python.exe tests\\windows_gui.py --short'
|
||||
}
|
||||
}
|
||||
stage('Native Windows build, installer and portable ZIP') {
|
||||
when { expression { env.ARM_DOCS_ONLY != 'true' } }
|
||||
steps {
|
||||
bat '.ci\\python\\Scripts\\python.exe tools\\build_windows.py --iscc .ci\\inno\\ISCC.exe --output release\\candidate'
|
||||
}
|
||||
}
|
||||
stage('Native package and executable metadata validation') {
|
||||
when { expression { env.ARM_DOCS_ONLY != 'true' } }
|
||||
steps {
|
||||
bat '.ci\\python\\Scripts\\python.exe tests\\windows_gui.py --package release\\candidate --portable-only'
|
||||
}
|
||||
}
|
||||
stage('Checksums, signed manifest and receipt') {
|
||||
when { expression { env.ARM_DOCS_ONLY != 'true' } }
|
||||
steps {
|
||||
withCredentials([string(credentialsId: 'arm-ed25519-release', variable: 'ARM_ED25519_SIGNING_KEY')]) {
|
||||
bat '@.ci\\python\\Scripts\\python.exe tools\\ci_release.py sign release\\candidate %ARM_SOURCE_COMMIT% %BUILD_NUMBER%'
|
||||
@@ -63,6 +79,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Artifact verification and archival') {
|
||||
when { expression { env.ARM_DOCS_ONLY != 'true' } }
|
||||
steps {
|
||||
bat '.ci\\python\\Scripts\\python.exe tools\\ci_release.py verify release\\candidate %ARM_SOURCE_COMMIT% %BUILD_NUMBER%'
|
||||
archiveArtifacts artifacts: 'release/candidate/*', fingerprint: true
|
||||
|
||||
134
LICENSE.md
Normal file
@@ -0,0 +1,134 @@
|
||||
# Design Creations Attribution-NonCommercial-ShareAlike License
|
||||
|
||||
Version 1.0
|
||||
|
||||
**Licensed application:** Adaptive Resource Monitor
|
||||
**Original developer:** Sonja M Thomas
|
||||
**Copyright:** 2010-2026 SLT Design Creations, LLC
|
||||
**Website:** https://www.designcreations.us/
|
||||
|
||||
## 1. Purpose and scope
|
||||
|
||||
This license encourages learning, collaboration, personal customization and non-commercial community development while preserving original authorship and providing a clear support and distribution policy for derivative software.
|
||||
|
||||
The Software means the original application, source code, documentation and other copyrightable project materials expressly covered by this license. The Licensor is SLT Design Creations, LLC, acting through its authorized representatives. A Derivative means a modified or adapted version incorporating copyrightable portions of the Software, including modified source code, forks, builds, ports and extensions that constitute derivative works under applicable law.
|
||||
|
||||
This license applies only to material the Licensor has authority to license. Third-party components remain subject to their respective licenses.
|
||||
|
||||
## 2. Grant of permission
|
||||
|
||||
Subject to these terms, the Licensor grants each recipient a worldwide, royalty-free, non-exclusive license to:
|
||||
|
||||
- Download, install, run, study and inspect the Software for non-commercial purposes.
|
||||
- Copy and redistribute unmodified versions of the Software for non-commercial purposes, subject to Sections 4 and 5.
|
||||
- Modify, extend, customize, compile and create derivative versions for private non-commercial use.
|
||||
- Submit proposed changes, patches and contributions to the original project for consideration.
|
||||
|
||||
Private modifications do not require notification, approval or publication of source code. Users may maintain their own private non-commercial versions without seeking permission.
|
||||
|
||||
## 3. Non-commercial use
|
||||
|
||||
Non-commercial use means use not primarily intended for or directed toward commercial advantage or monetary compensation. This includes personal use, hobby projects and non-commercial educational, research and community activities.
|
||||
|
||||
Commercial use, including internal use primarily supporting commercial business operations, sale, paid distribution, commercial hosting, or incorporation into a commercial product or service, requires prior written permission from the Licensor. Free distribution alone does not make a commercially directed activity non-commercial.
|
||||
|
||||
## 4. Attribution
|
||||
|
||||
Recipients redistributing the Software or an authorized Derivative must retain all applicable original copyright notices, developer credits, license notices and third-party acknowledgments.
|
||||
|
||||
The following credit must appear prominently in distributed source documentation and, where the application has an About screen or equivalent credits interface, in that interface:
|
||||
|
||||
> Original application developed by Sonja M Thomas, SLT Design Creations, LLC. https://www.designcreations.us/
|
||||
|
||||
Redistributors must include this license in full and provide a link to the original project where reasonably practicable.
|
||||
|
||||
Private modifications must preserve existing copyright and license notices in source files and associated documentation. Contributors may add their own accurate credits without removing or misrepresenting the original authorship.
|
||||
|
||||
## 5. Redistribution of unmodified software
|
||||
|
||||
Unmodified source and official application builds may be shared free of charge for non-commercial purposes without prior permission, provided that attribution, license terms and applicable third-party notices are preserved.
|
||||
|
||||
Where compiled software is redistributed, recipients must receive the corresponding source code or a reliable link to the exact corresponding source version, together with applicable build information.
|
||||
|
||||
Redistributors must not misrepresent modified packages as official unmodified releases, or imply sponsorship, certification or endorsement by the Licensor.
|
||||
|
||||
## 6. Public release of derivatives requires permission
|
||||
|
||||
Prior written permission from the Licensor is required before distributing a Derivative to others or making it publicly available, whether as source code, a compiled application, a public modified fork, a downloadable package or a hosted service providing access to the modified Software.
|
||||
|
||||
Private development and submission of proposed contributions directly to the original project are permitted without separate distribution approval. Publicly mirroring an unmodified repository is permitted under Section 5.
|
||||
|
||||
Non-commercial derivative projects are welcomed. The purpose of the approval requirement is to maintain awareness of derivative releases, preserve attribution, and enable users to identify the appropriate developer and support contact.
|
||||
|
||||
A permission request should include:
|
||||
|
||||
- The proposed derivative name and maintainer or organization.
|
||||
- A brief description of the modifications and intended use.
|
||||
- The original application and version on which it is based.
|
||||
- The intended source repository and distribution location.
|
||||
- A public support contact or support page for the derivative.
|
||||
- Confirmation of compliance with attribution, non-commercial and share-alike requirements.
|
||||
|
||||
Requests may be submitted through the original project's designated contact channel or the contact information published at https://www.designcreations.us/.
|
||||
|
||||
Approval must be affirmative and in writing. Silence does not constitute consent. Approval may cover subsequent releases within its stated scope; a new request is necessary only where the proposed distribution falls outside that scope. A derivative maintainer should notify the Licensor of material changes to the project's distribution or support contact information.
|
||||
|
||||
## 7. Share-alike and source availability
|
||||
|
||||
Unless separately agreed in writing, every authorized non-commercial Derivative must be distributed under this same license, with its complete corresponding source code available to recipients at no charge, including modifications and scripts reasonably necessary to build the distributed version, to the extent the distributor has the right to provide them.
|
||||
|
||||
The distributor must identify material modifications and distinguish the derivative from official releases. The distributor must not impose additional restrictions or technical measures that prevent recipients from exercising the rights granted by this license.
|
||||
|
||||
Approval to distribute a Derivative does not automatically grant commercial rights or permission to distribute further derivatives made by other recipients. Those recipients retain all private-use permissions granted here and may seek their own distribution approval.
|
||||
|
||||
Independent software that does not constitute a derivative work is not brought under this license merely by communicating with or being distributed alongside the Software. No provision overrides applicable third-party licensing obligations.
|
||||
|
||||
## 8. Branding and official releases
|
||||
|
||||
The original application name, Design Creations name, logos, artwork and other branding may be reproduced as part of an unmodified authorized redistribution and for accurate attribution.
|
||||
|
||||
A Derivative must be clearly identified as an independently maintained, modified version. Use of official branding as the derivative's own identity, or representations that a derivative is an official Design Creations release, requires separate written permission.
|
||||
|
||||
Nothing in this license grants access to official signing keys, release infrastructure, private services or credentials. Derivative maintainers must use their own release and signing infrastructure where applicable.
|
||||
|
||||
## 9. Support and maintenance
|
||||
|
||||
The Licensor may provide support for official releases at its discretion but is not obligated to provide support, maintenance, updates or fixes.
|
||||
|
||||
Maintainers of authorized derivatives are responsible for their own modifications, distribution, security updates and user support. They must provide a reasonably accessible support contact and clearly identify their project as independently maintained.
|
||||
|
||||
Users experiencing problems specific to a derivative should contact that derivative's maintainer. The Licensor may refer such users to the appropriate maintainer. Approval of a derivative does not constitute a warranty, endorsement or assumption of support responsibility.
|
||||
|
||||
## 10. Contributions
|
||||
|
||||
Submitting a contribution does not by itself transfer copyright ownership. Contributors must have the right to submit their contributions and authorize their incorporation and distribution under this license. Any additional contribution or relicensing permissions must be expressly agreed with the contributor.
|
||||
|
||||
## 11. Third-party software
|
||||
|
||||
Third-party libraries, dependencies and bundled components retain their own copyright notices and licenses. This license does not restrict rights independently granted by those licenses. Distributors must comply with all applicable third-party terms. Where a component's license is incompatible with these terms, it must not be relicensed under this license or distributed in a combination that violates its governing license.
|
||||
|
||||
## 12. Disclaimer of warranty and limitation of liability
|
||||
|
||||
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED "AS IS" AND "AS AVAILABLE", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT.
|
||||
|
||||
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSOR AND CONTRIBUTORS SHALL NOT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE SOFTWARE OR ITS USE, INCLUDING LOSS OF DATA, BUSINESS INTERRUPTION, LOST PROFITS, OR INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, WHETHER IN CONTRACT, TORT OR OTHERWISE.
|
||||
|
||||
Nothing in this license excludes liability or limits rights that cannot lawfully be excluded or limited.
|
||||
|
||||
## 13. Termination and restoration
|
||||
|
||||
Permissions under this license terminate automatically upon material violation of its terms. For a first violation, permissions are automatically restored if the violation is fully corrected within 30 days of discovery, unless the Licensor has expressly terminated those permissions in writing. Otherwise, reinstatement requires written permission.
|
||||
|
||||
Termination does not revoke rights of downstream recipients who remain compliant. Provisions concerning attribution, warranty, liability and accrued obligations survive termination as applicable.
|
||||
|
||||
## 14. Additional permissions and reserved rights
|
||||
|
||||
The Licensor may grant separate written permissions, including commercial licenses and derivative distribution approvals. Such permissions apply only within their stated scope.
|
||||
|
||||
All rights not expressly granted are reserved. Nothing in this license limits rights available independently under applicable law. This license does not expressly grant patent rights or trademark rights beyond the limited branding permissions stated above.
|
||||
|
||||
A later license version does not automatically alter rights already granted under this version. A recipient complying with this license may continue using the version of the Software received under it.
|
||||
|
||||
---
|
||||
|
||||
This is a custom source-available software license. It is not an OSI-approved open-source license or a Creative Commons license.
|
||||
329
README.md
@@ -1,57 +1,292 @@
|
||||
# Adaptive_Resource_Monitor
|
||||
<div align="center">
|
||||
<a href="ARM_Application_Image.png"><img src="ARM_Emblem.png" alt="Adaptive Resource Monitor emblem" width="170"></a>
|
||||
<h1>Adaptive Resource Monitor</h1>
|
||||
<p>Live Windows and Linux system monitoring, a glance away in the Windows notification area.</p>
|
||||
</div>
|
||||
|
||||
Adaptive Resource Monitor is a native Windows tray utility for CPU, GPU,
|
||||
RAM, VRAM, storage and network history. It combines the six resources into
|
||||
one dynamic icon by default. Click the icon to pin the monitor or open the
|
||||
expanded window from its context menu. Windows may initially place the icon
|
||||
in the taskbar overflow. Move it into the visible notification area for
|
||||
continuous access.
|
||||
<!-- arm-public-header:start -->
|
||||
<!-- arm-public-version: v0.8.4.4_beta -->
|
||||
<p align="center"><strong>v0.8.4.4_beta · Beta</strong> · Windows x64 · DC-ANCSA v1.0</p>
|
||||
<p align="center"><a href="https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/tag/v0.8.4.4_beta">Latest release</a> · <a href="#download">Download</a> · <a href="LICENSE.md">Read the license</a></p>
|
||||
<p align="center">
|
||||
<a href="https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/tag/v0.8.4.4_beta"><img src="https://img.shields.io/badge/release-v0.8.4.4__beta-176B6D" alt="Latest release v0.8.4.4_beta"></a>
|
||||
<a href="https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/tag/v0.8.4.4_beta"><img src="https://img.shields.io/badge/development-Beta-A35C15" alt="Beta development status"></a>
|
||||
</p>
|
||||
<!-- arm-public-header:end -->
|
||||
|
||||
Use Settings to switch between Overlay, Stacked and Composite, choose devices,
|
||||
set sampling and graph options, or enable SQLite history. Use Manage Remote Targets
|
||||
to add a Linux machine. A confirmed SSH key and working authentication are
|
||||
required. The default configuration monitors only the local machine and keeps
|
||||
history in memory.
|
||||
<p align="center">
|
||||
<a href="LICENSE.md"><img src="https://img.shields.io/badge/license-DC--ANCSA_v1.0-8B491B" alt="DC-ANCSA v1.0 license"></a>
|
||||
<a href="#platforms-and-requirements"><img src="https://img.shields.io/badge/platform-Windows_x64-21639B" alt="Windows x64"></a>
|
||||
<a href="BUILD.md"><img src="https://img.shields.io/badge/Python-3.12-3776AB" alt="Python 3.12"></a>
|
||||
<a href="BUILD.md"><img src="https://img.shields.io/badge/Qt_%2F_PySide6-6.11.2-257446" alt="Qt and PySide6 6.11.2"></a>
|
||||
</p>
|
||||
|
||||
The tray menu also offers an Application Icon display. The branded fallback
|
||||
appears while monitoring initializes. In Settings → Tray Icon, choose the
|
||||
machine for the primary icon. It defaults to Local Machine. Enable Separate
|
||||
machine icons to also show icons for Local Machine and remote targets with
|
||||
their tray option enabled.
|
||||
<p align="center">
|
||||
<a href="#download">Download</a> · <a href="#quick-start">Quick Start</a> ·
|
||||
<a href="#monitor-a-remote-linux-machine">Remote Linux</a> ·
|
||||
<a href="#features">Features</a> · <a href="#application-updates">Updates</a> ·
|
||||
<a href="#troubleshooting">Troubleshooting</a> · <a href="#development">Development</a>
|
||||
</p>
|
||||
|
||||
Use the machine dropdown in either monitor or the tray's **Monitor Machine**
|
||||
submenu to check the systems you want to display. The **All Systems** checkbox
|
||||
selects or clears all enabled machines. With several machines selected, the
|
||||
monitor shows separate graph sections in your saved order. Hidden machines
|
||||
continue collecting telemetry. The primary tray icon keeps its configured
|
||||
machine.
|
||||
Adaptive Resource Monitor (ARM) is a lightweight real-time monitor for Windows. Its live tray graph keeps recent activity visible while the app collects in the background. Hover for details, or open the expanded monitor to inspect measurements for the computers you choose. Each machine has its own resource history. Remote Linux hosts use an ordinary SSH connection and keep their credentials in Windows Credential Manager. You can choose the resources, colors, intervals, tray visualization and optional history recording. Application updates are cryptographically verified before installation.
|
||||
|
||||
Drag machine headers in either monitor or rows in **Manage Remote Targets**
|
||||
to change the shared order. Press Escape to cancel a drag. ARM saves each
|
||||
drop and checkbox change immediately. Network IN and OUT have configurable
|
||||
colors and share one throughput scale per machine.
|
||||
[Report a Bug](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F01-bug-report.yaml) · [Request a Feature](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F02-feature-request.yaml) · [Get Support](SUPPORT.md) · [Browse Open Issues](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues?state=open)
|
||||
|
||||
Open the About tab from the monitor
|
||||
window or tray menu for build information, version history and support links.
|
||||
## Download
|
||||
|
||||
Signed update discovery supports gaining release maturity from v0.6.2.2_alpha
|
||||
onward. Production acceptance and promotion status are recorded in the
|
||||
implementation report. [Public releases](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases)
|
||||
<!-- arm-public-downloads:start -->
|
||||
**v0.8.4.4_beta · Beta · Windows x64**
|
||||
|
||||
The first Beta covers the original Windows monitoring scope, including
|
||||
remote Linux monitoring. Beta development prioritizes stability, performance,
|
||||
hardware and remote compatibility, security, and update and installer
|
||||
reliability.
|
||||
| Download | Size | Use it for |
|
||||
| --- | ---: | --- |
|
||||
| [Windows installer](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/download/v0.8.4.4_beta/AdaptiveResourceMonitor-v0.8.4.4_beta-windows-x64-setup.exe) | 57.3 MiB | A per-user installation with Start menu access, optional startup and managed upgrades |
|
||||
| [Portable ZIP](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/download/v0.8.4.4_beta/AdaptiveResourceMonitor-v0.8.4.4_beta-windows-x64-portable.zip) | 71.1 MiB | Running ARM from an extracted folder with portable updates |
|
||||
|
||||
The application version is defined in [VERSION.md](VERSION.md). Open **About →
|
||||
Check for Updates** to check the public ARM Releases page. Downloading and
|
||||
installing are separate actions. Under **Settings → General**, enable
|
||||
**Check for updates at startup** or use **Check for updates periodically**
|
||||
to choose Off, every 4 hours, every 12 hours, daily, or weekly.
|
||||
Both Windows x64 distributions use signed update metadata. See
|
||||
[Update mechanism](UPDATE_MECHANISM.md) and [Release process](RELEASE_PROCESS.md).
|
||||
See [BUILD.md](BUILD.md) for Windows build and verification commands,
|
||||
[TELEMETRY_PROVIDERS.md](TELEMETRY_PROVIDERS.md) for metric definitions,
|
||||
[REMOTE_MONITORING.md](REMOTE_MONITORING.md) for SSH setup, and
|
||||
[IMPLEMENTATION_REPORT.md](IMPLEMENTATION_REPORT.md) for verification status.
|
||||
[Release notes and downloads](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/tag/v0.8.4.4_beta) · [All releases](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases) ·
|
||||
[SHA-256 checksums](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/download/v0.8.4.4_beta/SHA256SUMS.txt) ·
|
||||
[Signed manifest](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/download/v0.8.4.4_beta/arm-update-windows-x64.json) ·
|
||||
[Public verification key](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases/download/v0.8.4.4_beta/arm-ed25519.pub)
|
||||
<!-- arm-public-downloads:end -->
|
||||
|
||||
Use the **installer** for a per-user Windows installation with a Start menu shortcut and optional desktop shortcut or startup entry. Use the **portable ZIP** to run ARM from a folder you manage. Both editions use the same per-user settings and optional history directory. Both include the Python and Qt runtimes.
|
||||
|
||||
To compare a download with the published checksums, run the following in PowerShell from its download folder. Substitute the portable ZIP name to check that package.
|
||||
|
||||
~~~powershell
|
||||
Get-FileHash -Algorithm SHA256 .\AdaptiveResourceMonitor-*-windows-x64-setup.exe
|
||||
~~~
|
||||
|
||||
Compare the result with the same filename in **SHA-256 checksums**. The built-in updater also verifies the Ed25519-signed manifest and checks the downloaded package against that manifest. [Update verification details](UPDATE_MECHANISM.md)
|
||||
|
||||
## Quick Start
|
||||
|
||||
1. Download the Windows x64 installer. Run Setup, review and accept the software license, then launch **Adaptive Resource Monitor**.
|
||||
2. Look for ARM’s live resource graph in the Windows notification area. If Windows puts it in the overflow menu, open **Settings → Personalization → Taskbar → Other system tray icons** and enable Adaptive Resource Monitor. You can also drag the icon out of the overflow menu. [Microsoft taskbar help](https://support.microsoft.com/en-us/windows/experience/personalization/customize-the-taskbar-in-windows)
|
||||
3. Hover over the icon to see recent activity. Use **Details** to open the expanded monitor, or use **Pin/Unpin** to keep the hover monitor visible as you work.
|
||||
4. Open **Settings** between **Resource Monitor** and **About**, or choose **Settings** from the tray menu. Both open the same settings page.
|
||||
|
||||
For a **portable** startup, extract the whole ZIP to a writable folder, then run <code>AdaptiveResourceMonitor.exe</code> from the extracted folder. Keep the files in that folder together.
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><img src="docs/screenshots/notification-area-graph.png" alt="ARM's actual live Windows notification-area graph icon" width="36"></td>
|
||||
<td>The live notification-area icon represents the machine selected in <strong>Settings → Tray Icon</strong>.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<img src="docs/screenshots/hover-local-machine.png" width="500" alt="Local Windows hover monitor with six graphs, machine uptime and the Pin and Details controls">
|
||||
|
||||
<details>
|
||||
<summary>Windows installer and tray menu</summary>
|
||||
|
||||
<img src="docs/screenshots/windows-installer-license.png" width="650" alt="Adaptive Resource Monitor Windows Setup license agreement with accept and decline options">
|
||||
|
||||
<img src="docs/screenshots/tray-context-menu.png" width="285" alt="Adaptive Resource Monitor notification-area context menu with monitor, history, remote target, settings and update commands">
|
||||
|
||||
</details>
|
||||
|
||||
## Monitor a remote Linux machine
|
||||
|
||||
1. Open **Remote Targets → Manage Remote Targets** from the tray menu and select **Add**.
|
||||
2. Enter a display name, a hostname or IP address, the SSH port and the Linux account name. The screenshot uses <code>linux.example.test</code> and <code>monitor</code> as examples.
|
||||
3. Choose **Password** or **Private key**. For key authentication, select the key file and provide its passphrase if needed. ARM stores saved passwords and passphrases in Windows Credential Manager.
|
||||
4. In **Manage Remote Targets**, select the new profile and use **Test connection**. Compare the SHA-256 host-key fingerprint with one you obtained from the Linux system or its administrator. Use **Approve SSH host key** once you have verified it, then retry the connection test.
|
||||
5. Use **Connect** to enable and start monitoring the target. Check the target in the machine selector to display its graphs. You can leave it collecting in the background while looking at another machine.
|
||||
|
||||
<img src="docs/screenshots/add-linux-machine.png" width="620" alt="Add a Linux monitoring profile with a generic hostname, port, SSH user and authentication options">
|
||||
|
||||
<details>
|
||||
<summary>Remote Targets management</summary>
|
||||
|
||||
<img src="docs/screenshots/manage-remote-targets.png" width="760" alt="Remote Targets management with example hosts and controls to test connections and approve SSH keys">
|
||||
|
||||
</details>
|
||||
|
||||
A reachable SSH service, a usable account, Bash, procfs and readable sysfs are needed. The desktop app sends a fixed read-only sampling program over SSH. An ordinary Linux target needs no ARM installation or root access. Some GPU metrics depend on driver interfaces and compatible vendor tools. [Remote setup and limitations](REMOTE_MONITORING.md) · [Telemetry providers](TELEMETRY_PROVIDERS.md)
|
||||
|
||||
## Features
|
||||
|
||||
### Resource graphs and machine views
|
||||
|
||||
ARM graphs CPU, GPU, RAM, dedicated VRAM, storage I/O and network traffic. Machine headers show Windows or Linux uptime. Open the expanded monitor for longer histories, detailed measurements and supported hardware breakdowns. A stale or unavailable reading is labeled in the interface.
|
||||
|
||||
Select one machine, a subset or **All Systems** with the checkbox dropdown. Each section represents one machine, and All Systems places their independent histories alongside one another. Hidden machines keep collecting. Drag a machine’s header or graph area to reorder its whole card. The saved order and selections apply to the hover monitor, expanded monitor and tray menu.
|
||||
|
||||
The examples below were captured from the Windows app with an isolated demonstration profile, live Windows and Linux readings, and generic labels. The unavailable example shows how ARM handles a disconnected target.
|
||||
|
||||
<img src="docs/screenshots/hover-all-systems.png" width="860" alt="All Systems hover monitor with independent machine sections, CPU through network graphs, and Windows and Linux uptime">
|
||||
|
||||
<details>
|
||||
<summary>Checkbox selection, selected systems and sorting</summary>
|
||||
|
||||
<img src="docs/screenshots/machine-selection-checkboxes.png" width="245" alt="All Systems master checkbox and individual machine checkboxes">
|
||||
|
||||
<img src="docs/screenshots/hover-selected-systems.png" width="860" alt="Selected Systems view displaying two independent machine cards">
|
||||
|
||||
<img src="docs/screenshots/drag-machine-card.png" width="860" alt="Dragging a complete machine card with an insertion line in the hover monitor">
|
||||
|
||||
</details>
|
||||
|
||||
### Network activity and hardware details
|
||||
|
||||
Network **IN** is green and **OUT** is red by default. Both use a common throughput scale within each machine. Select a supported GPU, processor, disk or network interface for hardware details in the expanded view.
|
||||
|
||||
<img src="docs/screenshots/expanded-resource-monitor.png" width="860" alt="Expanded Resource Monitor showing separate green inbound and red outbound network traces and per-machine uptime">
|
||||
|
||||
<details>
|
||||
<summary>Measurements and hardware details</summary>
|
||||
|
||||
<img src="docs/screenshots/resource-and-hardware-details.png" width="860" alt="Expanded local monitor with a hardware selection, resource graphs and a detailed measurement table">
|
||||
|
||||
</details>
|
||||
|
||||
### Tray, settings and history
|
||||
|
||||
| Area | What you can change |
|
||||
| --- | --- |
|
||||
| Tray icon | Overlay, Stacked, Composite or branded Application Icon. Select its machine independently, or enable optional individual machine icons. |
|
||||
| Hover monitor | History range, hover and dismissal delays, popup size, graph columns and visible graphs. Pinning uses the popup’s button. |
|
||||
| Collection | Local and remote sampling intervals, selected devices and interfaces, and remote connection defaults. |
|
||||
| Appearance | System, light or dark theme, graph colors and tray background. Window sizes and positions are saved where applicable. |
|
||||
| History | Keep recent measurements in memory, or enable persistent recording with a retention limit, maximum size and chosen database location. |
|
||||
| Startup and updates | Start with Windows, start minimized, update checks at startup or at a periodic interval, and Windows update notifications. |
|
||||
|
||||
<img src="docs/screenshots/settings-tab.png" width="860" alt="Settings tab in the main ARM window with General, Tray Icon, Hover Monitor, Monitoring, Remote Connections, History and Diagnostics">
|
||||
|
||||
<details>
|
||||
<summary>Tray visualization settings and the light theme</summary>
|
||||
|
||||
<img src="docs/screenshots/tray-visualization-settings.png" width="860" alt="Settings controls for tray visualization, tray machine, graph settings and colors">
|
||||
|
||||
<img src="docs/screenshots/hover-all-systems-light.png" width="860" alt="All Systems hover monitor rendered with the light theme">
|
||||
|
||||
</details>
|
||||
|
||||
## Platforms and requirements
|
||||
|
||||
| Platform | Availability |
|
||||
| --- | --- |
|
||||
| Windows desktop x64 | Current native app. Verified on Windows 11 x64, build 26300. |
|
||||
| Remote Linux systems | Available through SSH from the Windows desktop app. |
|
||||
| Linux desktop | Planned native client. |
|
||||
| Windows and Windows Server monitoring agent | Planned headless agent. |
|
||||
| macOS desktop | Planned native client. |
|
||||
| Android | Planned companion app. |
|
||||
| iOS and iPadOS | Conditional feasibility targets. |
|
||||
|
||||
- **Windows build floor:** the installer specifies Windows build 17763 or later. Windows 11 x64 is the verified desktop configuration for this release.
|
||||
- **Storage:** the v0.8.4.4_beta portable archive extracts to about 151 MiB. Leave additional space for extraction, future update downloads and any history database you enable.
|
||||
- **Runtime:** the Windows packages contain CPython 3.12 and Qt/PySide6 6.11.2. End users can launch the bundled executable directly.
|
||||
- **Hardware telemetry:** Windows GPU and VRAM readings depend on detected adapters, WDDM counters, drivers and NVIDIA NVML where available. Linux GPU readings depend on readable DRM/sysfs counters or NVIDIA tooling. Some machines report a useful subset of the counters.
|
||||
- **Network:** local monitoring runs on the workstation. For Linux targets, allow connections to the configured SSH port. Update checks and downloads use HTTPS to the public release service.
|
||||
|
||||
### Performance
|
||||
|
||||
ARM updates the tray asynchronously and collects each machine’s samples independently. The table records short native Windows source-run observations from v0.8.2.3_beta on a Windows 11 x64 workstation with an AMD Ryzen 7 260, 16 logical processors, Radeon 780M graphics and a GeForce RTX 5050 Laptop GPU. Each row is a 12-second measurement.
|
||||
|
||||
| Mode | Machines and sample intervals | ARM CPU share of workstation | ARM working set |
|
||||
| --- | --- | ---: | ---: |
|
||||
| Overlay, tray only | One local, 1 s | 0.146% | 133 MiB |
|
||||
| Composite, pinned hover | One local, 1 s | 0.155% | 147 MiB |
|
||||
| Composite, background collection | One local at 1 s and two SSH loopback fixtures at 2 s | 0.138% | 154 MiB |
|
||||
|
||||
These observations describe that workstation and workload. Usage varies with devices, sampling rates, display mode and the number of connections.
|
||||
|
||||
## Application updates
|
||||
|
||||
Open **About → Check for Updates** for a manual check. ARM also offers startup and periodic checks under **Settings → General**. A verified update appears in the monitors and tray menu, and can issue a Windows notification when enabled. **Download Update** verifies and saves the package. **Install Later** keeps the verified package ready.
|
||||
|
||||
**Install Update** asks for authorization. Where the software terms require a new acceptance, review the complete terms before approving the update. The maintenance launcher waits for ARM to save its state and exit, verifies the package again, installs the update, and restarts ARM. Use **View Changelog** to open the release notes and dismiss the success banner. The completion receipt remains available. The maintenance launcher can recover or roll back a failed update where the previous application files can be restored safely. [Update and recovery details](UPDATE_MECHANISM.md)
|
||||
|
||||
Ed25519 authenticates the signed release information, including package filenames, versions, sizes and SHA-256 hashes. SHA-256 checks the downloaded bytes against that information. Windows Authenticode is a separate mechanism for verifying executable publishers. [Security and verification](SECURITY.md)
|
||||
|
||||
<img src="docs/screenshots/about-and-application-update.png" width="860" alt="About tab and Application Update controls showing the verified current release and its installed version">
|
||||
|
||||
<details>
|
||||
<summary>Update availability and installation progress</summary>
|
||||
|
||||
The availability panel below is the prior v0.8.2.3_beta updater discovering v0.8.4.4_beta. The maintenance capture shows the same verified upgrade in progress.
|
||||
|
||||
<img src="docs/screenshots/update-available-v0.8.2.3-to-v0.8.4.4.png" width="860" alt="Installed v0.8.2.3 Beta reports a verified v0.8.4.4 Beta update available">
|
||||
|
||||
<img src="docs/screenshots/installation-progress-v0.8.4.4.png" width="600" alt="Independent ARM maintenance window showing the verified update in progress">
|
||||
|
||||
</details>
|
||||
|
||||
## Security and privacy
|
||||
|
||||
- **Remote telemetry.** ARM authenticates using the configured SSH account and verifies the host key. It sends a fixed read-only program and sampling requests over the encrypted SSH channel. The Linux host supplies hardware, resource, network counter and uptime readings. ARM uses those readings to render and, when enabled, record the histories on Windows.
|
||||
- **Credentials and profiles.** Windows Credential Manager stores saved passwords and private-key passphrases. The local target profile stores its settings, a credential reference and, where applicable, the private-key path. Treat profiles, trust files and logs as private when sharing diagnostics.
|
||||
- **Local storage.** Settings, pinned host keys and diagnostic logs are under <code>%LOCALAPPDATA%\Adaptive Resource Monitor</code>. Recording is optional and uses <code>history.sqlite</code> there by default. The portable edition uses the same per-user location.
|
||||
- **Internet access.** Update activity sends HTTPS requests to the configured public Gitea release endpoints to check for releases or retrieve release metadata, changed license text and packages. Resource samples stay in the monitoring client and its configured local history store. ARM opens outbound SSH connections from the Windows desktop.
|
||||
|
||||
[Full security notes](SECURITY.md) · [Release integrity process](RELEASE_PROCESS.md)
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
| Symptom | What to check |
|
||||
| --- | --- |
|
||||
| The tray icon is missing | Look in the notification-area overflow and enable ARM in taskbar settings. |
|
||||
| SSH authentication fails | Confirm the host, port, account and selected authentication method. Check the password or key and use **Test connection**. |
|
||||
| The SSH host key changed | Verify the new fingerprint with the system owner. Forget the old key and approve the replacement only after verifying it. |
|
||||
| A remote disconnected | Check network reachability, SSH service availability and retry settings. A stale last reading can remain visible while the target reconnects. |
|
||||
| GPU readings or a resource are unavailable | Check the driver or documented vendor interfaces, selected devices, enabled resources and connection status. |
|
||||
| Update verification failed | Review About’s verification status and try the release check again. Use the signed public release and its published package checksums. |
|
||||
| Setup or an upgrade failed | See the message in About and the maintenance and installer logs for the update transaction. The recovery instructions cover rollback and safe retry. |
|
||||
|
||||
Use **Settings → Diagnostics** for the active log path, logging level and collector states. The usual log is <code>%LOCALAPPDATA%\Adaptive Resource Monitor\arm.log</code>. Upgrade diagnostics are under <code>updates\transactions</code> in the same user data directory. Review a log and remove account, host and configuration details before sharing it. [Remote help](REMOTE_MONITORING.md) · [Recovery help](UPDATE_MECHANISM.md)
|
||||
|
||||
## Development roadmap
|
||||
|
||||
The [roadmap](ROADMAP.md) outlines a native Linux desktop app and a secure Windows and Windows Server agent. It also covers macOS and Android clients, conditional iOS and iPadOS support, an optional gateway, and lightweight service monitoring with uptime, availability and outage or recovery notifications.
|
||||
|
||||
## Software license
|
||||
|
||||
Adaptive Resource Monitor is **source-available** under the **Design Creations Attribution-NonCommercial-ShareAlike License v1.0 (DC-ANCSA v1.0)**. It permits non-commercial use, study and private modification. Unmodified releases may be redistributed for non-commercial use under the license with attribution, the applicable notices and access to corresponding source. Public distribution of derivatives and commercial use require prior written permission. Authorized derivatives are subject to the applicable share-alike and source requirements.
|
||||
|
||||
[Read the complete LICENSE.md](LICENSE.md) · [Third-party notices](packaging/THIRD_PARTY.md)
|
||||
|
||||
<details>
|
||||
<summary>Offline license viewer in About</summary>
|
||||
|
||||
<img src="docs/screenshots/offline-license-viewer.png" width="780" alt="View License opens the complete DC-ANCSA v1.0 terms in an offline window">
|
||||
|
||||
</details>
|
||||
|
||||
## Contributing and support
|
||||
|
||||
[Report a Bug](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F01-bug-report.yaml) · [Request a Feature](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F02-feature-request.yaml) ·
|
||||
[Get Support](SUPPORT.md) · [View Development Roadmap](ROADMAP.md) ·
|
||||
[Browse Open Issues](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues?state=open) ·
|
||||
[Request Derivative Distribution Permission](CONTRIBUTING.md#derivative-distribution-permission)
|
||||
|
||||
Browse existing issues before creating a report. Use the matching form for hardware, remote monitoring, updates, performance or documentation. Submit proposed patches directly to the project for review. [Contribution guide](CONTRIBUTING.md) · [Issue and release workflow](ISSUE_MANAGEMENT.md)
|
||||
|
||||
Use the private reporting procedure for security issues. Independently distributed derivatives are supported by their own maintainers. [Private security reporting](SECURITY.md#report-a-security-issue) · [License terms](LICENSE.md)
|
||||
|
||||
## Development
|
||||
|
||||
ARM uses Python, PySide6/Qt, native Windows performance providers, hardware-specific GPU providers and Paramiko-based SSH. Jenkins builds and verifies Windows packages. Gitea distributes public releases.
|
||||
|
||||
On Windows x64, install Python 3.12 and run the following from a terminal. Inno Setup is needed only when building an installer. The application uses the current Windows user's ARM data directory when launched from source.
|
||||
|
||||
~~~powershell
|
||||
git clone https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor.git
|
||||
cd Adaptive_Resource_Monitor
|
||||
py -3.12 -m venv .venv
|
||||
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
|
||||
.\.venv\Scripts\python.exe monitor.pyw
|
||||
~~~
|
||||
|
||||
- [Build instructions](BUILD.md) · [Architecture](ARCHITECTURE.md) · [Telemetry providers](TELEMETRY_PROVIDERS.md)
|
||||
- [Current development version](VERSION.md) · [Versioning](VERSIONING.md) · [Changelog](CHANGELOG.md) · [Roadmap](ROADMAP.md)
|
||||
- [Remote monitoring](REMOTE_MONITORING.md) · [Security](SECURITY.md) · [Update mechanism](UPDATE_MECHANISM.md) · [Release process](RELEASE_PROCESS.md)
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<a href="https://www.designcreations.us/"><img src="dc-design-creations.png" alt="Design Creations logo" width="120"></a>
|
||||
<p>Original application developed by <strong>Sonja M Thomas</strong>, SLT Design Creations, LLC.</p>
|
||||
<p>Copyright 2010-2026 SLT Design Creations, LLC · <a href="https://www.designcreations.us/">www.designcreations.us</a></p>
|
||||
<p><a href="ARM_Application_Image.png">View the full Adaptive Resource Monitor artwork</a></p>
|
||||
</div>
|
||||
|
||||
@@ -24,6 +24,20 @@ Existing version tags must point to the same commit. A public release for that
|
||||
version is accepted only if its attachments match the pinned archive. Use a
|
||||
new authorized application version for any change to its released bytes.
|
||||
|
||||
## Public download links
|
||||
|
||||
After anonymous verification succeeds, the publication job refreshes the
|
||||
public version, badges, download links and package sizes in README.md if the
|
||||
selected archive is the newest verified release. This uses the released
|
||||
manifest and the verified public attachments. VERSION.md continues to govern
|
||||
development and build versioning.
|
||||
|
||||
If the README change fails, the verified release stays available. Resolve the
|
||||
documentation error, then retry authorized publication with the same pinned
|
||||
build. The job verifies the existing attachments before refreshing the README.
|
||||
A documentation-only update takes the checkout and version-validation path in
|
||||
Build and Archive. It skips package creation, signing and archival.
|
||||
|
||||
Before publishing a channel promotion, verify discovery and eligibility
|
||||
with the already-shipped updater. The v0.6.2.1_alpha updater requires an
|
||||
Alpha corrective release before it can discover Beta. Starting with
|
||||
|
||||
BIN
ROADMAP-2.png
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
ROADMAP-3.png
Normal file
|
After Width: | Height: | Size: 706 KiB |
340
ROADMAP.md
Normal file
@@ -0,0 +1,340 @@
|
||||
# Adaptive Resource Monitor (ARM)
|
||||
## Cross-Platform Development Roadmap
|
||||
|
||||
**Roadmap revision:** 1.2
|
||||
**Date:** November 26, 2026
|
||||
**Original developer:** Sonja M Thomas
|
||||
**Copyright:** 2010-2026 SLT Design Creations, LLC
|
||||
**Website:** https://www.designcreations.us/
|
||||
**Repository:** https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor
|
||||
**License direction:** DC-ANCSA v1.0; the authoritative repository LICENSE.md governs distributed releases.
|
||||
|
||||
## 1. Purpose and scope
|
||||
|
||||
Expand ARM from its accepted Windows-first Beta foundation into a family of native desktop monitoring applications and mobile companion clients. Preserve the lightweight, read-only nature of ARM while enabling Windows, Windows Server, Linux and macOS systems to be monitored from supported desktop and mobile hosts.
|
||||
|
||||
The primary next milestone is a native Linux desktop application with a small Windows monitoring agent service. Android is a planned companion platform. macOS is a planned native desktop platform. iOS and iPadOS are conditional feasibility targets, not commitments.
|
||||
|
||||
A lightweight, read-only service availability and uptime monitor is also planned for local and remote systems, independently of the desktop platform expansion. Dedicated Raspberry Pi or Arduino-class hardware displays and read-only operating system update availability notifications are also planned.
|
||||
|
||||
This is a planning document, not authorization to implement, install, deploy, publish or change existing infrastructure. No release dates or future numeric versions are assigned until work is approved and scoped.
|
||||
|
||||
## 2. Existing foundation
|
||||
|
||||
The reported accepted Windows baseline is v0.6.2.2_beta, with a subsequently observed v0.6.2.3_beta installation. Drag-and-drop ordering, multi-selection and license integration have been requested separately; their final release status must be checked against VERSION.md and the release archive before development begins.
|
||||
|
||||
Preserve the existing six resource categories: CPU, GPU, RAM, VRAM, storage I/O and network. Network receive is green and transmit is red, with a shared scale. Preserve individual machine identity, independent histories, the single-machine tray source, optional individual tray icons, secure SSH profiles, signed updates, and Design Creations branding. Do not restore cross-machine aggregation.
|
||||
|
||||
Existing test infrastructure includes the Windows workstation, Rain and Phantom (Kubuntu), LAMP and PhantomNet (remote Linux targets), and the user's Windows Server 2022 environment. These are potential validation targets, not permission to modify them.
|
||||
|
||||
## 3. Target platform matrix
|
||||
|
||||
| Platform | Native monitoring client | Local telemetry | Remote Linux | Remote Windows / Server | Priority |
|
||||
|---|---|---|---|---|---|
|
||||
| Windows 11 / supported Windows 10 editions | Existing desktop | Existing | SSH | Agent | Maintain and extend |
|
||||
| Linux desktop | Native Qt desktop | Planned | SSH | Agent | First expansion |
|
||||
| Windows Server | Headless agent; GUI optional later | Agent | Not required | Agent target | First expansion |
|
||||
| macOS | Native desktop / menu bar | Planned, capability-dependent | SSH | Agent | Planned |
|
||||
| Android | Native mobile companion | Limited, optional | Via gateway; direct SSH optional later | Via gateway; direct agent optional later | Planned |
|
||||
| iOS / iPadOS | Native mobile companion | Limited, optional | Via gateway | Via gateway | Conditional |
|
||||
| Raspberry Pi | Dedicated always-on display client | Optional, capability-dependent | Via gateway; direct SSH optional | Via gateway; direct agent optional | Planned |
|
||||
| Arduino-class network-capable hardware | Embedded display companion | Not required | Via gateway | Via gateway | Feasibility-dependent |
|
||||
|
||||
Windows Server 2022 is the initial server validation target; Server 2019 and 2025 are proposed compatibility targets, subject to native testing and supported OS/runtime combinations. Server Core must be tested separately from Desktop Experience. Linux x86-64 and macOS Apple silicon are initial targets; Linux ARM64, Intel macOS and Windows ARM64 are conditional on demand, available hardware and dependency support.
|
||||
|
||||
## 4. Architecture and shared foundation
|
||||
|
||||
Retain Python and PySide6 for desktop clients where practical. Extract platform-independent telemetry models, history, graph scaling, device selection, ordering, persistence, connection state and protocol logic into shared modules. Do not rewrite the accepted Windows client merely to port it.
|
||||
|
||||
Use separate platform adapters for OS counters, hardware vendors, credentials, notification areas, autostart, packaging and update installation. Mobile clients may use platform-native languages rather than embedding the desktop runtime. Maintain a versioned, documented wire protocol and shared conformance fixtures so clients and agents can evolve independently.
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
W[Windows desktop ARM] -->|SSH| L[Linux targets]
|
||||
X[Linux desktop ARM] -->|SSH| L
|
||||
M[macOS desktop ARM] -->|SSH| L
|
||||
W -->|Authenticated TLS| A[Windows agent]
|
||||
X -->|Authenticated TLS| A
|
||||
M -->|Authenticated TLS| A
|
||||
G[Optional headless ARM gateway] -->|SSH| L
|
||||
G -->|Authenticated TLS| A
|
||||
P[Android companion] -->|Authenticated TLS / VPN| G
|
||||
I[iOS companion - conditional] -->|Authenticated TLS / VPN| G
|
||||
```
|
||||
|
||||
The gateway is optional for desktop use and recommended for mobile access. Direct desktop-to-target monitoring must continue to work without a gateway, cloud subscription or central server. No Internet-facing agent listener by default.
|
||||
|
||||
### Telemetry contract
|
||||
|
||||
Define stable machine and device identifiers, protocol version, agent version, capabilities, metric identifier, units, timestamps, sampling interval, validity and stale/error state. Support independent network RX/TX, physical disk throughput, device-level GPU and dedicated/shared memory distinctions. Report unsupported counters as unavailable, never as fabricated zeroes. Use monotonic time for counter deltas and UTC timestamps for transport; handle reboot, rollover, dropped samples and clock skew. Negotiate protocol versions and capabilities; tolerate additive fields and reject incompatible major versions clearly.
|
||||
|
||||
## 5. Phase 1: Native Linux desktop
|
||||
|
||||
### Scope
|
||||
|
||||
Deliver an actual Linux desktop application, not a Windows application under Wine, WSL or a browser wrapper. Start with Kubuntu/KDE Plasma on Rain and Phantom, then validate supported Ubuntu LTS and Debian-based environments. Expand to GNOME and other desktops after initial acceptance.
|
||||
|
||||
### Implementation
|
||||
|
||||
- Reuse the existing Qt interface, About and license presentation, six graphs, saved machine selection, drag-and-drop ordering and update notifications.
|
||||
- Implement local telemetry using psutil and appropriate `/proc`, `/sys`, DRM, hwmon and vendor interfaces. Support NVIDIA NVML and capability-dependent AMD/Intel providers. Do not require root for ordinary monitoring.
|
||||
- Keep existing SSH remote Linux collection available on Linux, including password authentication and optional keys. Use a desktop secret store such as Secret Service or KWallet; if unavailable, require explicit configuration or session-only credentials instead of plaintext fallback.
|
||||
- Implement native tray/status notifier integration. KDE and GNOME differ in tray and hover support; validate X11 and Wayland separately. Where a desktop cannot support native hover, provide an accessible click-to-open popup and document the limitation rather than claiming parity.
|
||||
- Use XDG configuration, cache, data and state locations; persistent per-user settings and crash-resistant saves. Provide desktop autostart and clean session shutdown.
|
||||
- Offer a Debian package first; evaluate portable tarball or AppImage as a second distribution. Package-manager-owned installations must use the appropriate package upgrade mechanism rather than silently overwrite managed files.
|
||||
|
||||
### Acceptance
|
||||
|
||||
Native KDE operation on Rain and Phantom; actual local CPU/RAM/disk/network readings; vendor GPU/VRAM readings where supported; Windows agent connections once Phase 2 is complete; independent selected-machine histories; tray/popup behavior; reconnect, suspend/resume, restart and upgrade tests; settings and credential preservation; measured performance. Validate native Linux execution without modifying excluded storage devices or unrelated services.
|
||||
|
||||
## 6. Phase 2: ARM Windows Monitoring Agent
|
||||
|
||||
### Product scope
|
||||
|
||||
A small, headless Windows service installed on monitored Windows desktop and Windows Server systems. It exposes read-only telemetry to an authorized ARM client on Linux, Windows or macOS. The full desktop ARM application is not required on the monitored system. No logged-in user is required.
|
||||
|
||||
### Implementation direction
|
||||
|
||||
Evaluate a small native service using Go or Rust, or a self-contained .NET Worker Service if measured footprint and deployment requirements are acceptable. Select the implementation through a benchmark and dependency/licensing review. Keep the service independent of Qt and the desktop updater. A minimal optional configuration utility or CLI is sufficient.
|
||||
|
||||
- Register with Windows Service Control Manager, support automatic startup, graceful stop, bounded recovery and Event Log diagnostics.
|
||||
- Use a dedicated least-privilege service identity; grant only necessary counter access. Avoid LocalSystem and administrator privileges at runtime unless a specific, documented counter requires an approved exception.
|
||||
- Collect CPU, RAM, disk I/O and network through supported Windows APIs and performance counters. Use PDH and vendor GPU interfaces as appropriate; test session-zero GPU visibility and Windows Server driver modes. Report absent hardware and inaccessible counters accurately.
|
||||
- Support Windows Server Core without desktop dependencies. No remote shell, arbitrary command execution, process termination, maintenance or system configuration API.
|
||||
- Sample once per host at configurable intervals and serve multiple authorized viewers from bounded buffers. Provide backpressure, connection limits, timeouts, reconnect and rate limits.
|
||||
|
||||
### Secure enrollment and transport
|
||||
|
||||
Use a versioned HTTPS API or authenticated streaming protocol over TLS. Prefer mutual TLS with a per-agent identity and separately revocable client credentials. Define explicit enrollment: locally authorized pairing, verification of the agent certificate or trusted CA, short-lived enrollment secret, issuance of a scoped credential, and confirmation of machine identity. Never automatically trust an unknown or changed certificate.
|
||||
|
||||
Protect private keys using Windows certificate/key storage and restrictive ACLs. Store client credentials in the appropriate platform secret store. Support renewal, revocation, re-enrollment and auditable access. No shared default password, anonymous telemetry, plaintext tokens, disabled TLS verification or automatic port forwarding.
|
||||
|
||||
Bind only to configured interfaces; default to a safe non-public configuration. Create narrow, explicitly approved firewall rules for trusted LAN/VPN peers. Prefer VPN connectivity for off-site access. Document firewall and certificate requirements without assuming a public agent endpoint is needed.
|
||||
|
||||
### Service management and updates
|
||||
|
||||
Provide a Windows x64 service installer, clean uninstall, configuration export without secrets and signed update artifacts. Service installation and updates require explicit administrative authorization. Preserve enrollment identity across upgrades; support rollback and recoverable service startup. Do not let remote monitoring credentials authorize service updates. Do not expose an agent-update command to ordinary monitoring clients.
|
||||
|
||||
### Acceptance
|
||||
|
||||
Test Windows workstation and Windows Server 2022, including unattended operation after reboot and without interactive login. Verify other Server versions before claiming support. Demonstrate Linux-host-to-Windows monitoring of all supported metrics, multi-client access, invalid/revoked credential rejection, certificate rotation, firewall boundaries, connection loss/recovery, service upgrade/rollback and low resource use. Test no-GPU servers and GPU-equipped systems separately.
|
||||
|
||||
## 7. Phase 3: Native macOS desktop
|
||||
|
||||
Deliver an ARM application bundle with menu-bar status icon, compact popup and expanded independent-machine monitor. Reuse the Qt desktop core where supported; use native AppKit integration where Qt cannot provide reliable menu-bar behavior. Target Apple silicon first, evaluate Intel support separately.
|
||||
|
||||
Use supported macOS telemetry APIs (Mach/system statistics, network interface and disk counters, vendor/platform interfaces where available). Apple silicon unified memory must not be represented as a separate dedicated VRAM pool; label shared/unified memory explicitly or mark dedicated VRAM unavailable. Do not require root or private APIs for ordinary operation. Use Keychain for credentials and platform-supported login-item management.
|
||||
|
||||
Support SSH to Linux and authenticated Windows-agent connections. Provide a signed/notarized DMG or installer package as appropriate, with Gatekeeper validation, platform-specific update verification and safe rollback. A native Mac build agent, Apple signing identity and real Mac testing are prerequisites. Validate menu bar behavior, Retina scaling, multiple displays, sleep/wake, credentials, packaging and local/remote metrics before publication.
|
||||
|
||||
## 8. Phase 4: Optional headless ARM gateway
|
||||
|
||||
Provide a small independently deployable collector for continuous monitoring and mobile access. Linux/systemd is the initial deployment target. This is not required for native desktop use.
|
||||
|
||||
The gateway maintains explicitly configured SSH/agent connections, independent machine histories and optional retention, and exposes a read-only authenticated client API. Support multiple authorized users or device identities with per-machine access scopes, revocation, connection limits, audit logs, encrypted transport and bounded storage. Keep secrets local to the gateway; do not distribute SSH passwords to mobile devices. No cloud dependency, public exposure by default or remote administration functionality.
|
||||
|
||||
Support current snapshots and bounded history retrieval, reconnect/resume and timestamped stale data. Optional threshold alerts may be evaluated separately; mobile push infrastructure is not assumed. Provide native installation, service health reporting, backup/restore, signed upgrades and explicit retention controls. Validate on an approved Linux host without altering unrelated services or storage.
|
||||
|
||||
## 9. Phase 5: Android companion
|
||||
|
||||
Develop a native Android application, preferably Kotlin with Jetpack Compose, consuming the shared telemetry protocol through the gateway. Direct agent access or SSH may be evaluated later; the first release should not require storing server login passwords on a phone.
|
||||
|
||||
Provide selected-machine and all-machine views, independent six-category graphs, green RX/red TX, persistent sorting and checkbox selection, history range, connection status, last sample time, theme and About/license information. Adapt layouts to phones and tablets. Store device credentials in Android Keystore-backed storage; support revocation, network changes, VPN access and offline cached history with clear stale indicators.
|
||||
|
||||
Use foreground live streaming while the app is visible. Background work must comply with Android restrictions, notification requirements and battery policies; do not promise continuous polling while suspended. Prefer gateway-side collection. Evaluate optional notifications and widgets only after core acceptance.
|
||||
|
||||
Build signed APKs for authorized sideloading; evaluate AAB/Google Play distribution, signing and store policy compatibility separately. Do not implement a self-updater that bypasses Android package signing or store rules. Validate on real Android hardware (the Pixel 8 is a potential initial device), including Wi-Fi/mobile transitions, screen rotation, background/resume and battery/network overhead.
|
||||
|
||||
## 10. Phase 6: Possible iOS and iPadOS companion
|
||||
|
||||
This phase is conditional on developer resources, native Mac/Xcode access, real devices, distribution feasibility and user demand. Prefer Swift/SwiftUI with the shared gateway protocol.
|
||||
|
||||
Provide foreground remote dashboards, machine selection and ordering, history retrieval, stale indicators, Keychain-backed credentials and read-only authenticated access. Local phone hardware telemetry is optional and restricted to public supported APIs. Do not promise desktop-style system tray integration or unrestricted device-wide CPU/GPU/VRAM access.
|
||||
|
||||
Apple background execution is constrained and system-managed; continuous monitoring must occur on the gateway, not depend on the phone running indefinitely. Evaluate approved background refresh and optional push notifications only where useful and permitted. Do not misuse background modes to keep the app alive.
|
||||
|
||||
Evaluate TestFlight, App Store and other lawful distribution routes for compatibility with DC-ANCSA, third-party licenses and Apple's applicable terms. Require a native Mac build environment, provisioning and signing, device testing and privacy review before committing to release. No guarantee of store approval or release date.
|
||||
|
||||
## 11. Phase 7: Lightweight server and service monitoring
|
||||
|
||||
### Purpose and scope
|
||||
|
||||
Extend ARM beyond hardware resource telemetry to show whether selected server applications and services are running, reachable and healthy. Keep this an optional, simple monitoring feature, not a server administration suite. Support existing Windows and SSH-accessible Linux targets first, with the Windows agent, native Linux and macOS clients and mobile gateway consuming the same service status model as they become available.
|
||||
|
||||
### Initial service coverage
|
||||
|
||||
| Service or check | Monitoring approach |
|
||||
|---|---|
|
||||
| Apache HTTP Server | systemd or Windows service status; optional HTTP/HTTPS health probe |
|
||||
| Nginx, Caddy, IIS | Native service status where available; HTTP/HTTPS probe |
|
||||
| Jenkins and Gitea | Service status and configured application endpoint |
|
||||
| SSH and Windows Remote Desktop | Service status and optional TCP reachability |
|
||||
| MariaDB, MySQL, PostgreSQL | Service status and optional TCP or explicitly configured read-only health probe |
|
||||
| PHP-FPM, Redis and other daemons | Configurable service unit or Windows service name |
|
||||
| Emby, Sonarr, Radarr, Readarr, Prowlarr, Ollama | Optional service status and configured application endpoint |
|
||||
| Custom applications | User-defined service name, HTTP/HTTPS endpoint or TCP host and port |
|
||||
|
||||
Examples are optional profiles, not hardcoded dependencies or permission to probe existing infrastructure. Do not automatically scan networks or discover services by probing arbitrary ports.
|
||||
|
||||
### Status and uptime
|
||||
|
||||
Display machine uptime separately from service uptime and observed endpoint availability. A service restart must not reset host uptime or another service's uptime.
|
||||
|
||||
- Machine uptime: elapsed time since the host booted, obtained from supported operating system counters.
|
||||
- Service uptime: elapsed time since the current service activation or process start, when reliably exposed by the platform. Clearly distinguish service activation from individual worker process start times.
|
||||
- Observed availability: successful checks since ARM began monitoring, with optional rolling 24-hour, 7-day and 30-day availability percentages and outage history. Do not present observation duration as actual service uptime.
|
||||
- Show running, stopped, failed, starting, unreachable, unknown, unsupported and stale states as applicable. Distinguish a running service with a failing endpoint from a stopped service.
|
||||
- Display last successful check, last status change, last known restart, current uptime and optional HTTP response code or probe latency. Report unknown values explicitly.
|
||||
- Missing monitoring intervals must be recorded as unknown, not counted as confirmed uptime or downtime. Show coverage alongside any availability percentage.
|
||||
|
||||
### Collection and security
|
||||
|
||||
Use existing persistent SSH sessions for read-only Linux service queries (for example, allowlisted systemd properties and host uptime). Support Windows Service Control Manager status and supported process/counter information through the planned Windows agent; service start time may be unavailable or ambiguous for shared-process services. On macOS, evaluate supported launchd status interfaces when available.
|
||||
|
||||
HTTP/HTTPS and TCP checks may run from the desktop or optional gateway; label the probe origin because network reachability depends on where it is measured. Prefer safe read-only endpoints, bounded timeouts and verified TLS. Make expected HTTP status codes configurable so authentication-required endpoints are not automatically classified as outages. Do not treat TCP reachability alone as proof of application health. Do not require sudo, administrator credentials, arbitrary shell commands or remote configuration changes for ordinary service monitoring. Protect any optional probe credentials using the existing platform secret store and never include them in logs.
|
||||
|
||||
Allow independent service check intervals (default proposal: 30 seconds) and configurable timeouts. Run checks asynchronously, with bounded concurrency and backoff, so slow services cannot delay resource telemetry or other checks. Reuse existing connections where practical.
|
||||
|
||||
### User interface
|
||||
|
||||
- Add an optional Services view to the expanded Resource Monitor with independent, clearly labeled sections for each selected machine.
|
||||
- Show service name, status, uptime, last check and optional latency, with compact status indicators and readable text.
|
||||
- Allow a compact optional service summary beneath the relevant machine's resource graphs in the hover monitor; hide it when disabled. Do not add a seventh resource graph or change the primary live tray icon.
|
||||
- Allow users to select which services to monitor, configure check methods and intervals, and reorder services. Persist selections and ordering immediately using stable identifiers.
|
||||
- Keep service monitoring separate from machine visibility; hiding a machine's graphs must not stop its configured checks.
|
||||
- Optional outage/recovery notifications may be enabled explicitly, with deduplication and configurable consecutive-failure thresholds. No automatic restarts, repairs or remediation.
|
||||
- Mobile clients may display the same status and uptime information through the optional gateway, with clear stale indicators.
|
||||
|
||||
### Acceptance
|
||||
|
||||
Validate actual service uptime against native operating system evidence and verify configured Apache, Jenkins and Gitea health checks where authorized. Use disposable services or controlled fixtures for restart and failure tests; do not stop production services to demonstrate detection. Verify host reboot handling, service restart detection, endpoint failure while the service is running, authentication-required endpoints, TLS failures, disconnected machines, monitoring gaps, settings persistence and optional outage history. Measure added CPU, memory and network overhead. Preserve all accepted resource monitoring behavior and existing infrastructure.
|
||||
|
||||
## 12. Phase 8: Dedicated hardware monitoring display
|
||||
|
||||
### Purpose and scope
|
||||
|
||||
Provide a small, separate, always-on physical display that allows users to visually track selected systems at a glance without opening the desktop application or using space on their primary computer monitor. Target Raspberry Pi and evaluate network-capable Arduino-class microcontrollers as a compact, low-power alternative. The device is a read-only ARM display client, not a remote administration controller.
|
||||
|
||||
### Hardware and implementation options
|
||||
|
||||
| Option | Intended use | Implementation direction |
|
||||
|---|---|---|
|
||||
| Raspberry Pi | Rich dashboard on a dedicated HDMI, DSI or supported touchscreen display | Lightweight native Linux kiosk/display application; reuse shared graph and telemetry logic where practical |
|
||||
| Arduino-class network-capable board | Compact desk or rack status display using a supported TFT, LCD or OLED | Embedded firmware using a bounded snapshot/history protocol; evaluate memory, display resolution, networking and TLS capabilities |
|
||||
|
||||
Start with a Raspberry Pi prototype capable of displaying multiple independent machine histories. Evaluate Arduino-compatible network-capable hardware, including ESP32-class boards, separately. Do not assume a basic Arduino board can render the full desktop dashboard or handle secure networking without additional hardware. Select boards, display sizes, interfaces and firmware only after feasibility testing. A non-touch display must remain usable without a keyboard or mouse; optional buttons or touchscreen controls may provide navigation.
|
||||
|
||||
### Display and user experience
|
||||
|
||||
- Show selected machines by name, individual resource utilization and history graphs for CPU, GPU, RAM, VRAM, disk I/O and network, subject to display capacity. Preserve green network IN and red network OUT with a common scale.
|
||||
- Provide compact status indicators for connected, disconnected, stale and unsupported readings; show system uptime, optional service status and System Updates Available notifications when supported.
|
||||
- Support a single-machine view, selected-machine dashboard and all-machine overview. On smaller displays, use configurable pages or rotation rather than combining unrelated systems into one graph.
|
||||
- Preserve machine selection, ordering, display orientation, brightness and refresh preferences where supported. Offer configurable page dwell times, readable text, dark/light presentation where practical and optional dimming or blanking schedules.
|
||||
- Automatically start the display client after device boot and recover after power loss or network interruption without user intervention. Show last successful sample time and visibly mark stale data; never display a disconnected machine as healthy solely because cached data exists.
|
||||
|
||||
### Connectivity, security and updates
|
||||
|
||||
Prefer the optional ARM gateway and its authenticated read-only protocol so resource collection continues independently of the display. Raspberry Pi direct SSH or agent monitoring may be evaluated as an optional standalone mode. Embedded devices should receive bounded, compact telemetry snapshots or downsampled histories rather than storing server login passwords or running separate polling sessions for every machine.
|
||||
|
||||
Use per-device revocable credentials, verified TLS and a restricted LAN or VPN connection. Do not require public network exposure. If candidate microcontroller hardware cannot securely validate certificates, protect credentials and support maintainable firmware, select more capable hardware rather than disabling verification. Provide explicit enrollment, reconnection backoff, bounded buffers and signed software or firmware updates appropriate to the platform. No automatic flashing or changes to monitored hosts.
|
||||
|
||||
### Acceptance
|
||||
|
||||
Demonstrate a real Raspberry Pi connected to a separate physical display, showing independent live readings from multiple authorized systems. Validate readable graphs and status indicators at the intended viewing distance, boot-to-dashboard behavior, saved preferences, network interruption/recovery, stale data, extended unattended operation and measured power, memory and network overhead. Evaluate Arduino-class hardware on an actual display and verify secure transport and sufficient resources before committing to a supported firmware release. The embedded option may offer fewer graphs or shorter histories if limitations are documented. Neither platform is required for existing desktop monitoring.
|
||||
|
||||
## 13. Phase 9: System Updates Available notifications
|
||||
|
||||
### Purpose and scope
|
||||
|
||||
Add optional per-machine reporting of operating system update availability as reported by the monitored operating system's own update mechanism. ARM is an observer only. The monitored system and its existing update tools remain responsible for checking for updates, downloading packages, installing updates, restarting services and rebooting when necessary. ARM must not initiate any of these actions.
|
||||
|
||||
This feature is independent of ARM's existing signed application update mechanism. Label notifications **System Updates Available** and always identify the affected machine, so users cannot confuse an OS update with an ARM software update.
|
||||
|
||||
### Platform collection
|
||||
|
||||
| Target | Proposed read-only source |
|
||||
|---|---|
|
||||
| Local Windows | Supported Windows Update interfaces or locally maintained update status/cache; respect Windows Update and enterprise management policies |
|
||||
| Remote Linux | Existing SSH provider; query locally available package-manager update status or cached metadata using distribution-supported read-only operations |
|
||||
| Remote Windows / Windows Server | Planned Windows agent; report OS-provided update status under existing Windows Update, WSUS or enterprise policy where supported |
|
||||
| macOS | Supported local OS update status interfaces, when available without triggering a scan or installation |
|
||||
| Gateway, mobile and dedicated display clients | Consume the same per-machine update status provided by the collecting host or agent |
|
||||
|
||||
Validate the exact supported read-only query for each operating system and package manager. Do not refresh package indexes, trigger Windows Update scans, contact upstream update repositories on a target's behalf, bypass enterprise policy or elevate privileges automatically. When a reliable cached or OS-reported status is unavailable, report unknown or unsupported rather than substituting an active update check. Do not infer missing updates from OS version strings or online release lists.
|
||||
|
||||
### Status model and presentation
|
||||
|
||||
- Track each machine independently, with update availability, update count where reliably reported, optional security update count, optional reboot-required status, source, last OS-reported check time (if available) and ARM observation timestamp.
|
||||
- Distinguish updates available, no updates reported, unknown, unsupported, stale and disconnected states. A zero update count is valid only when the OS source positively reports it; missing or outdated metadata must not be interpreted as up to date.
|
||||
- Add a compact **System Updates Available** notice to the corresponding machine card in the hover monitor and expanded Resource Monitor. Include the count when available and make additional reported details accessible without obscuring the six resource graphs.
|
||||
- Provide an optional per-machine notification and recovery/clear state when the host subsequently reports no pending updates. Deduplicate repeated notifications, allow user-configured preferences and keep the status visible even if a transient notification is dismissed.
|
||||
- Keep the feature separate from resource sampling, machine visibility and ARM application update preferences. Use a configurable low-frequency polling interval, bounded timeouts and backoff; hidden machines may continue to collect update status when enabled.
|
||||
- Display only reported information. No Install, Download, Update Now, Reboot or remote remediation controls. Users manage updates using the monitored system's normal tools.
|
||||
|
||||
### Acceptance
|
||||
|
||||
Verify actual OS-reported update availability against native system evidence on local Windows and authorized Linux targets; extend to Windows Server and macOS as their providers become available. Use controlled fixtures for available, none, unknown, stale, security update and reboot-required states. Verify per-machine identity, notification deduplication, preferences, persistence, disconnect/reconnect and that OS status changes clear or revise notices correctly. Confirm no package refresh, update scan, installation, reboot, privilege escalation or remote system change is initiated by ARM. Verify that the existing ARM application updater is unaffected and measure additional monitoring overhead.
|
||||
|
||||
## 14. Packaging, versioning and CI/CD
|
||||
|
||||
Retain the existing Jenkins controller at https://phantom.zapto.org:8080/jenkins/ and Gitea repository. Use existing native Windows and Linux build agents where suitable; add native macOS capacity and Android toolchains only when authorized. iOS builds require a suitable Mac/Xcode environment. Dedicated display builds require the appropriate Raspberry Pi architecture and, where approved, embedded firmware toolchains and real-device validation. Do not use WSL or virtual machines as substitutes for native production acceptance.
|
||||
|
||||
Maintain independent platform build stages and artifacts. Use the authoritative desktop version convention `vMAJOR.FEATURE.MINOR.BUGFIX_TAG` with cumulative independent counters. New platform components may require their own versions and maturity classifications; document compatibility with the shared protocol and decide the exact component version policy before first release. A Windows Beta does not automatically make Linux, macOS or mobile releases Beta.
|
||||
|
||||
Build automatically; publish only explicitly authorized, pinned Jenkins artifacts. Verify anonymous downloads, SHA-256 hashes, signed manifests, exact platform/architecture and package metadata. Preserve existing Windows updater compatibility. Use OS-native signing and distribution requirements in addition to ARM's Ed25519 manifests; manifest signatures are not Authenticode, Apple notarization or mobile package signing.
|
||||
|
||||
Preserve attribution and the authoritative LICENSE.md across all components. Audit third-party dependencies, runtime redistribution obligations, store terms and custom source-available license compatibility before publication. Keep signing secrets and enrollment credentials out of public source, artifacts and logs.
|
||||
|
||||
## 15. Cross-platform acceptance and performance
|
||||
|
||||
- Verify independent resource histories and machine identity; no cross-machine aggregation.
|
||||
- Verify persistent selections, drag-and-drop ordering, window geometry and applicable platform preferences after restart, crash and upgrade.
|
||||
- Verify valid zero, unsupported, stale and disconnected readings remain distinct.
|
||||
- Verify least privilege, enrollment, certificate validation, revocation, secret storage and safe network defaults.
|
||||
- Verify slow or failed targets cannot block other collectors or the UI.
|
||||
- Verify real native installation, upgrade, shutdown, restart and recovery on each supported platform.
|
||||
- Measure desktop and agent CPU, memory, disk and network overhead over extended runs; use the existing desktop target of less than 1% total CPU capacity under ordinary tray-only operation as a benchmark, not a guaranteed cross-platform result. Establish agent and gateway budgets from measured prototypes. Measure mobile battery and data consumption.
|
||||
- Preserve production data and settings. Use disposable isolated instances for fault injection; do not install on real targets or publish without authorization.
|
||||
- Record hardware, OS version, test duration, actual screenshots, protocol conformance, package signatures and unresolved limitations in the implementation report.
|
||||
|
||||
## 16. Milestones and dependencies
|
||||
|
||||
| Milestone | Deliverable | Release gate |
|
||||
|---|---|---|
|
||||
| M0 | Shared telemetry contract and platform abstraction | Windows regression suite remains green |
|
||||
| M1 | Native Linux desktop preview | Real KDE/X11 and Wayland validation; documented limitations |
|
||||
| M2 | Windows/Server agent and desktop integration | Secure enrollment and actual Linux-to-Windows Server monitoring |
|
||||
| M3 | Linux production candidate and Windows client interoperability | Native install/update and sustained operation |
|
||||
| M4 | Native macOS desktop preview | Real Mac hardware, signing and local/remote capability checks |
|
||||
| M5 | Optional headless gateway | Authenticated API, retention, recovery and security acceptance |
|
||||
| M6 | Android companion | Real-device tests and signed distribution |
|
||||
| M7 | iOS/iPadOS feasibility and optional preview | Apple toolchain, policy, licensing and real-device feasibility |
|
||||
| M8 | Lightweight service status and uptime monitoring | Read-only Linux/Windows checks, accurate uptime, independent endpoint health and measured overhead |
|
||||
| M9 | Dedicated Raspberry Pi display and Arduino-class feasibility | Physical display, authenticated telemetry, unattended recovery and real hardware validation |
|
||||
| M10 | System Updates Available reporting | Accurate per-host OS-reported status, notifications, stale handling and proof of read-only operation |
|
||||
|
||||
M1 and M2 may proceed in parallel after M0. M2 is required for full Linux-to-Windows acceptance. macOS can proceed independently once M0/M2 interfaces are stable. Mobile clients depend on the gateway/API contract, not on completion of macOS. iOS remains optional. M8 can begin independently on the existing Windows client using its SSH provider and extend to Windows agent targets after M2; it does not depend on mobile or macOS delivery. M9 can begin with a Raspberry Pi prototype once the telemetry contract is stable; gateway-backed display clients depend on M5, while direct Raspberry Pi monitoring is optional. Arduino-class delivery remains conditional on secure hardware feasibility. M10 can begin independently in the existing Windows client and SSH provider, with additional platform integrations following their respective milestones.
|
||||
|
||||
## 17. Explicit non-goals
|
||||
|
||||
ARM remains a read-only resource, service availability and OS update status monitor, not Adaptive Maintenance, a remote desktop system, an arbitrary remote shell, a process manager, a cloud surveillance service or a centralized administration suite. No cross-machine aggregate graphs, forced cloud accounts, mandatory agents on SSH-accessible Linux systems, automatic public exposure, or unapproved deployment. ARM must never initiate operating system update scans, package index refreshes, OS update downloads, installations or reboots. Do not create artificial release versions solely to demonstrate progress.
|
||||
|
||||
## 18. Reference documentation
|
||||
|
||||
These are implementation reference starting points; verify current platform support and policy at the time of implementation.
|
||||
|
||||
- Microsoft Windows services: https://learn.microsoft.com/en-us/windows/win32/services/services
|
||||
- Windows performance counters: https://learn.microsoft.com/en-us/windows/win32/perfctrs/performance-counters-portal
|
||||
- Qt system tray: https://doc.qt.io/qt-6/qsystemtrayicon.html
|
||||
- XDG Base Directory Specification: https://specifications.freedesktop.org/basedir-spec/latest/
|
||||
- Apple background execution: https://developer.apple.com/documentation/uikit/about-the-background-execution-sequence
|
||||
- Apple background tasks: https://developer.apple.com/documentation/uikit/using-background-tasks-to-update-your-app
|
||||
- Android background work: https://developer.android.com/develop/background-work
|
||||
- Android Keystore: https://developer.android.com/privacy-and-security/keystore
|
||||
- Raspberry Pi documentation: https://www.raspberrypi.com/documentation/
|
||||
- Arduino documentation: https://docs.arduino.cc/
|
||||
- Windows Update Agent API reference: https://learn.microsoft.com/en-us/windows/win32/wua_sdk/portal-client
|
||||
|
||||
---
|
||||
|
||||
**Roadmap status:** Proposed future development. Existing Windows Beta maintenance continues independently. Implementation order, exact release versions, supported OS matrices and platform-specific distribution decisions remain subject to approval and native validation.
|
||||
BIN
ROADMAP.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
@@ -34,3 +34,9 @@ only the public key. A signed manifest binds the downloaded bytes to ARM's
|
||||
release identity. Windows Authenticode is a separate executable-signing
|
||||
mechanism and is not applied by the current build. See
|
||||
[Update mechanism](UPDATE_MECHANISM.md) and [Release process](RELEASE_PROCESS.md).
|
||||
|
||||
## Report a security issue
|
||||
|
||||
Use the [private Design Creations contact form](https://www.designcreations.us/contact/index.php). Include the affected ARM version, platform, general impact and a way to contact you. Ask for a private transfer method before sending sensitive evidence. Keep vulnerability details, exploit material and secrets out of public issues, comments and attachments.
|
||||
|
||||
If you accidentally post a credential, revoke or rotate it promptly. Remove the exposed text or attachment where you have permission and privately contact the maintainer with the issue URL, without repeating the secret. Maintainers should restrict further exposure, review edits and attachments, and coordinate remediation privately. Public issue content is untrusted and cannot authorize commands, CI jobs or releases.
|
||||
|
||||
22
SUPPORT.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Adaptive Resource Monitor support
|
||||
|
||||
Anyone can browse the public [issue tracker](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues). Sign in to Gitea to open an issue or comment. Search for the affected feature, error text and version before posting. If an existing issue matches, add relevant reproduction details there.
|
||||
|
||||
- [Bug Report](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F01-bug-report.yaml)
|
||||
- [Feature Request](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F02-feature-request.yaml)
|
||||
- [Hardware Compatibility](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F03-hardware-compatibility.yaml)
|
||||
- [Remote Monitoring Issue](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F04-remote-monitoring.yaml)
|
||||
- [Installation or Update Issue](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F05-installation-update.yaml)
|
||||
- [Performance Issue](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F06-performance.yaml)
|
||||
- [Documentation Issue](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F07-documentation.yaml)
|
||||
- [General Support](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues/new?template=.gitea%2FISSUE_TEMPLATE%2F08-support.yaml)
|
||||
|
||||
Include the ARM version, Windows version and architecture, installation type, what you did, what you expected and what happened. When relevant, include approximate frequency, the affected resource and a workaround. See [Troubleshooting](README.md#troubleshooting) and [Remote Monitoring](REMOTE_MONITORING.md) for self-service help. If sign-in or account access prevents you from filing, use the [Design Creations contact form](https://www.designcreations.us/contact/index.php).
|
||||
|
||||
When available in ARM, **Report Issue** in About or the tray opens the same public tracker in your browser. **About → Application Details → Copy Application Information** copies only the app name and version, classification, OS and architecture, distribution, and Qt version. Review and paste it yourself if useful.
|
||||
|
||||
## Share diagnostics safely
|
||||
|
||||
Work from copies of logs or screenshots. Replace system names, account names, paths and addresses with generic values. Remove passwords, tokens, private keys, fingerprints, sensitive file paths, unrelated desktop content and other identifying details. Review the entire image or text before publishing. Keep original logs, settings, credential exports, trust files and full update receipts private.
|
||||
|
||||
For security issues or exposed secrets, follow [private security reporting](SECURITY.md#report-a-security-issue). For derivative permission, see [Contributing](CONTRIBUTING.md#derivative-distribution-permission).
|
||||
@@ -20,6 +20,14 @@ returns a complete response, ARM starts the file over. **Install Later**
|
||||
keeps the package and its ready-to-install notice. **Install Update** asks for
|
||||
approval.
|
||||
|
||||
Starting with v0.8.3.3_beta, the signed release notes include the SHA-256
|
||||
of the exact source license. When that hash matches the installed license,
|
||||
the usual install confirmation opens. When the license differs, ARM
|
||||
retrieves the file from the version's Gitea tag, verifies the signed hash
|
||||
and shows the complete terms for explicit acceptance before shutdown.
|
||||
Cancel leaves the verified package available. Earlier clients retain their
|
||||
existing signed update confirmation when first upgrading to this version.
|
||||
|
||||
## Release contract
|
||||
|
||||
The configured source is the [ARM Releases page](https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/releases).
|
||||
@@ -56,6 +64,8 @@ in place. Before restarting ARM, the launcher verifies the new executable,
|
||||
version and build metadata. The launcher restarts ARM in the invoking user
|
||||
session with the previous tray-only or expanded presentation. The restarted
|
||||
process signals readiness before ARM reports success and offers the changelog.
|
||||
Opening the changelog clears the transient success banner and retains the
|
||||
completion receipt.
|
||||
An upgrade initiated by v0.6.1.1 uses that version's launcher and progress
|
||||
behavior. The newer application still reads its completion receipt.
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
v0.8.2.3_beta
|
||||
v0.8.6.4_beta
|
||||
|
||||
@@ -1 +1,8 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Adaptive Resource Monitor."""
|
||||
|
||||
82
arm/about.py
@@ -1,33 +1,43 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""The Design Creations About tab and bundled project documents."""
|
||||
import json
|
||||
import logging
|
||||
import platform
|
||||
import re
|
||||
import struct
|
||||
import sys
|
||||
import winreg
|
||||
from html import escape
|
||||
from pathlib import Path
|
||||
|
||||
from PySide6.QtCore import QRectF, Qt, QUrl
|
||||
from PySide6.QtGui import QDesktopServices, QFont, QPainter, QPixmap
|
||||
from PySide6.QtCore import QRectF, QSysInfo, Qt, QUrl, qVersion
|
||||
from PySide6.QtGui import QDesktopServices, QFont, QGuiApplication, QPainter, QPixmap
|
||||
from PySide6.QtWidgets import (
|
||||
QDialog, QDialogButtonBox, QFormLayout, QGroupBox, QHBoxLayout, QLabel,
|
||||
QPushButton, QTextBrowser, QVBoxLayout, QWidget,
|
||||
QPushButton, QStyle, QTextBrowser, QVBoxLayout, QWidget,
|
||||
)
|
||||
|
||||
from .branding import (
|
||||
APPLICATION_IMAGE, COMPANY_LOGO, COPYRIGHT, DEVELOPER, DESCRIPTION, INSTALL_ID,
|
||||
SUPPORT_URL, WEBSITE, asset, document,
|
||||
WEBSITE, asset, document, open_issue_tracker,
|
||||
)
|
||||
from .software_license import LICENSE_LABEL, LicenseDialog
|
||||
from .update_release import LICENSE_FILE
|
||||
from .version import NAME, VERSION
|
||||
from .update_ui import UpdatePanel
|
||||
from .window_geometry import WindowGeometry
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
ISSUE_ICON = QStyle.StandardPixmap.SP_MessageBoxWarning
|
||||
DOCS = {
|
||||
"README.md": "README",
|
||||
"CHANGELOG.md": "Change Log",
|
||||
"LICENSE.md": "Software License",
|
||||
"THIRD_PARTY.md": "Third-party Notices",
|
||||
}
|
||||
UNINSTALL_KEY = rf"Software\Microsoft\Windows\CurrentVersion\Uninstall\{INSTALL_ID}_is1"
|
||||
@@ -127,13 +137,21 @@ class AboutPage(QWidget):
|
||||
self.version = QLabel(VERSION)
|
||||
details.addRow("Installed version", self.version)
|
||||
details.addRow("Release classification", QLabel(release_classification()))
|
||||
license_info = ("See Software License below." if "LICENSE.md" in self.documents
|
||||
else "Project license terms unavailable.")
|
||||
details.addRow("Software license", QLabel(license_info))
|
||||
bundled = document(LICENSE_FILE).is_file()
|
||||
license_label = QLabel(LICENSE_LABEL if bundled else "License file unavailable",
|
||||
textFormat=Qt.TextFormat.PlainText)
|
||||
details.addRow("Software license", license_label)
|
||||
view = QPushButton("Application Details")
|
||||
view.clicked.connect(self.show_details)
|
||||
self.view_license = QPushButton("View License")
|
||||
self.view_license.setEnabled(bundled)
|
||||
self.view_license.clicked.connect(self.show_license)
|
||||
buttons = QHBoxLayout()
|
||||
buttons.addWidget(view)
|
||||
buttons.addWidget(self.view_license)
|
||||
self.report_issue = QPushButton(self.style().standardIcon(ISSUE_ICON), "Report Issue")
|
||||
self.report_issue.clicked.connect(open_issue_tracker)
|
||||
buttons.addWidget(self.report_issue)
|
||||
buttons.addStretch()
|
||||
details.addRow(buttons)
|
||||
layout.addWidget(information)
|
||||
@@ -184,27 +202,65 @@ class AboutPage(QWidget):
|
||||
self.website.setText(link(WEBSITE, "www.designcreations.us", colors.accent))
|
||||
items = [link(name, name if name in ("README.md", "CHANGELOG.md") else label, colors.accent)
|
||||
for name, label in self.documents.items()]
|
||||
items.append(link(SUPPORT_URL, "Contact & Support", colors.accent))
|
||||
self.links.setText(" | ".join(items))
|
||||
|
||||
def show_document(self, name):
|
||||
if name not in self.documents:
|
||||
return
|
||||
return False
|
||||
path = document(name)
|
||||
self.document_group.setTitle(self.documents[name])
|
||||
try:
|
||||
self.browser.setMarkdown(path.read_text(encoding="utf-8"))
|
||||
markdown = path.read_text(encoding="utf-8")
|
||||
if name == "README.md":
|
||||
# The public README includes HTML layout and images for Gitea.
|
||||
# Keep its Markdown prose and tables readable in Qt's offline viewer.
|
||||
markdown = re.sub(r"(?ms)^<(div|p|table)\b.*?</\1>[ \t]*\n", "", markdown)
|
||||
markdown = re.sub(r"(?m)^(?:</?details>|<summary>.*</summary>|<img\b[^>\n]*>|<!--.*-->)[ \t]*\n",
|
||||
"", markdown)
|
||||
self.browser.setMarkdown(markdown)
|
||||
except (OSError, UnicodeError) as exc:
|
||||
LOG.warning("Unable to read About document %s: %s", name, exc)
|
||||
self.browser.setPlainText(f"Unable to open {name}.")
|
||||
return False
|
||||
self.browser.verticalScrollBar().setValue(0)
|
||||
return True
|
||||
|
||||
def open_changelog(self):
|
||||
if self.show_document("CHANGELOG.md"):
|
||||
self.updates.dismiss_success_notice()
|
||||
self.browser.setFocus()
|
||||
|
||||
def show_license(self):
|
||||
try:
|
||||
markdown = document(LICENSE_FILE).read_text(encoding="utf-8-sig")
|
||||
except (OSError, UnicodeError) as exc:
|
||||
LOG.warning("Unable to read the bundled software license: %s", exc)
|
||||
return
|
||||
dialog = LicenseDialog(self, self.data_root, markdown)
|
||||
dialog.exec()
|
||||
dialog.deleteLater()
|
||||
|
||||
def open_link(self, target):
|
||||
if target in self.documents:
|
||||
if target == "CHANGELOG.md":
|
||||
self.open_changelog()
|
||||
elif target in self.documents:
|
||||
self.show_document(target)
|
||||
elif QUrl(target).scheme() == "https":
|
||||
QDesktopServices.openUrl(QUrl(target))
|
||||
|
||||
def copy_application_information(self):
|
||||
kind, _ = installation()
|
||||
information = (
|
||||
("Application", NAME),
|
||||
("Version", VERSION),
|
||||
("Release classification", release_classification()),
|
||||
("Operating system", f"{QSysInfo.prettyProductName()} ({QSysInfo.kernelVersion()})"),
|
||||
("Processor architecture", QSysInfo.currentCpuArchitecture()),
|
||||
("Distribution", kind),
|
||||
("Framework", f"Qt {qVersion()}"),
|
||||
)
|
||||
QGuiApplication.clipboard().setText("\n".join(f"{label}: {value}" for label, value in information))
|
||||
|
||||
def show_details(self):
|
||||
kind, directory = installation()
|
||||
build = build_data()
|
||||
@@ -231,6 +287,8 @@ class AboutPage(QWidget):
|
||||
layout.addLayout(form)
|
||||
buttons = QDialogButtonBox(QDialogButtonBox.StandardButton.Close)
|
||||
buttons.rejected.connect(dialog.reject)
|
||||
copy = buttons.addButton("Copy Application Information", QDialogButtonBox.ButtonRole.ActionRole)
|
||||
copy.clicked.connect(self.copy_application_information)
|
||||
layout.addWidget(buttons)
|
||||
dialog.resize(620, dialog.sizeHint().height())
|
||||
dialog.window_geometry = WindowGeometry(dialog, self.data_root / "application-details-window.bin")
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
from dataclasses import replace
|
||||
from functools import partial
|
||||
import logging
|
||||
@@ -20,7 +27,7 @@ from .branding import DARK, LIGHT, PUBLISHER, WEBSITE, application_icon, set_win
|
||||
from .collect import Collectors
|
||||
from .config import STATIC_TRAY_MODE, ConfigStore, Target, data_path, machine_ids, monitor_choices
|
||||
from .credentials import CredentialStore
|
||||
from .dialogs import ConnectionsDialog, SettingsDialog, TargetDialog
|
||||
from .dialogs import ConnectionsDialog, SettingsPage, TargetDialog
|
||||
from .graphs import Dashboard, tray_icon
|
||||
from .history_db import HistoryDb
|
||||
from .model import ALL, LOCAL, TOTAL, Connection
|
||||
@@ -92,6 +99,8 @@ class Application(QObject):
|
||||
self.about_page.updates.quit_requested.connect(self.close_for_update)
|
||||
self.expanded = Monitor(self.dashboard, True, self.request_archive, self.open_expanded,
|
||||
self.set_pin, self.toggle_machine, self.reorder_machines, self.about_page)
|
||||
self.settings_page = SettingsPage(self)
|
||||
self.expanded.tabs.insertTab(1, self.settings_page, "Settings")
|
||||
self.expanded.setWindowIcon(self.brand_icon)
|
||||
self.window_geometry = WindowGeometry(self.expanded, self.root / "monitor-window.bin")
|
||||
self.popup = Monitor(self.dashboard, False, self.request_archive, self.open_expanded, self.set_pin,
|
||||
@@ -113,7 +122,6 @@ class Application(QObject):
|
||||
self.view_timer.timeout.connect(self.refresh_views)
|
||||
self.view_timer.start()
|
||||
self.manager = None
|
||||
self.settings_dialog = None
|
||||
self._closed = False
|
||||
self.qt.styleHints().colorSchemeChanged.connect(self.change_brand_theme)
|
||||
self.change_brand_theme()
|
||||
@@ -215,7 +223,7 @@ class Application(QObject):
|
||||
icon.activated.connect(partial(self.activate_icon, machine))
|
||||
icon.messageClicked.connect(lambda: self.open_update(self.update_notice_changelog))
|
||||
self.icons[machine] = icon
|
||||
self.menus[machine] = TrayMenu(self, machine)
|
||||
self.menus[machine] = TrayMenu(self)
|
||||
self.menus[machine].theme(self.brand_colors)
|
||||
self.set_menu_update(self.menus[machine])
|
||||
icon.setContextMenu(self.menus[machine])
|
||||
@@ -286,17 +294,13 @@ class Application(QObject):
|
||||
|
||||
def activate_icon(self, machine, reason):
|
||||
if reason == QSystemTrayIcon.ActivationReason.Trigger:
|
||||
self.toggle_pin(machine)
|
||||
if not self.popup.pinned:
|
||||
self.hover.show(machine)
|
||||
elif reason == QSystemTrayIcon.ActivationReason.DoubleClick:
|
||||
self.open_expanded()
|
||||
|
||||
def toggle_pin(self, machine):
|
||||
self.hover.pin(not self.popup.pinned or self.hover.anchor != machine, machine)
|
||||
self.sync_menus()
|
||||
|
||||
def set_pin(self, enabled):
|
||||
self.hover.pin(enabled)
|
||||
self.sync_menus()
|
||||
|
||||
def render(self):
|
||||
now = time()
|
||||
@@ -392,16 +396,7 @@ class Application(QObject):
|
||||
self.process_message = message
|
||||
|
||||
def open_settings(self):
|
||||
if self.settings_dialog:
|
||||
self.settings_dialog.raise_()
|
||||
return
|
||||
dialog = SettingsDialog(self)
|
||||
self.settings_dialog = dialog
|
||||
try:
|
||||
dialog.exec()
|
||||
finally:
|
||||
self.settings_dialog = None
|
||||
dialog.deleteLater()
|
||||
self.expanded.show_page(self.settings_page)
|
||||
|
||||
def manage(self):
|
||||
if self.manager:
|
||||
@@ -516,7 +511,7 @@ class Application(QObject):
|
||||
QMessageBox.warning(self.expanded, "Start with Windows", str(exc))
|
||||
|
||||
def about(self):
|
||||
self.expanded.show_page(about=True)
|
||||
self.expanded.show_page(self.about_page)
|
||||
|
||||
def check_for_updates(self):
|
||||
self.about()
|
||||
@@ -527,8 +522,7 @@ class Application(QObject):
|
||||
self.popup.hide()
|
||||
self.about()
|
||||
if changelog:
|
||||
self.about_page.show_document("CHANGELOG.md")
|
||||
self.about_page.browser.setFocus()
|
||||
self.about_page.open_changelog()
|
||||
else:
|
||||
self.about_page.updates.buttons["Check for Updates"].setFocus()
|
||||
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Shared Design Creations identity and asset locations."""
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
@@ -8,6 +15,7 @@ PUBLISHER = "SLT Design Creations, LLC"
|
||||
COPYRIGHT = f"Copyright 2010-2026 {PUBLISHER}"
|
||||
WEBSITE = "https://www.designcreations.us/"
|
||||
SUPPORT_URL = "https://www.designcreations.us/contact/index.php"
|
||||
ISSUE_TRACKER_URL = "https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues"
|
||||
APP_MODEL_ID = "SLTDesignCreations.AdaptiveResourceMonitor"
|
||||
INSTALL_ID = "{FB4FA82E-8715-4AC8-BD23-48E33E998D1B}"
|
||||
DESCRIPTION = (
|
||||
@@ -41,6 +49,13 @@ def document(name):
|
||||
return SOURCE_ROOT / name
|
||||
|
||||
|
||||
def open_issue_tracker():
|
||||
from PySide6.QtCore import QUrl
|
||||
from PySide6.QtGui import QDesktopServices
|
||||
|
||||
return QDesktopServices.openUrl(QUrl(ISSUE_TRACKER_URL))
|
||||
|
||||
|
||||
def application_icon():
|
||||
from PySide6.QtGui import QIcon
|
||||
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Collector lifecycle and the Qt delivery boundary."""
|
||||
from collections import defaultdict
|
||||
from dataclasses import replace
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
import json
|
||||
import logging
|
||||
import math
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Application-owned generic credentials in Windows Credential Manager."""
|
||||
import ctypes as ct
|
||||
from ctypes import wintypes as w
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
from dataclasses import replace
|
||||
from pathlib import Path
|
||||
|
||||
@@ -94,24 +101,31 @@ class DeviceChoices(Choices):
|
||||
self.setVisible(False)
|
||||
|
||||
|
||||
class SettingsDialog(QDialog):
|
||||
class SettingsPage(QWidget):
|
||||
def __init__(self, app):
|
||||
super().__init__()
|
||||
self.app = app
|
||||
self.cfg = app.settings
|
||||
self.setWindowTitle("ARM Settings")
|
||||
self.resize(610, 610)
|
||||
self.tabs = None
|
||||
layout = QVBoxLayout(self)
|
||||
buttons = QDialogButtonBox(QDialogButtonBox.StandardButton.Save | QDialogButtonBox.StandardButton.Cancel)
|
||||
buttons.accepted.connect(self.save)
|
||||
buttons.rejected.connect(self.reload)
|
||||
layout.addWidget(buttons)
|
||||
self.timer = QTimer(self, interval=1500)
|
||||
self.timer.timeout.connect(self.update_diagnostics)
|
||||
|
||||
def reload(self):
|
||||
index = self.tabs.currentIndex() if self.tabs is not None else 0
|
||||
if self.tabs is not None:
|
||||
self.tabs.hide()
|
||||
self.layout().removeWidget(self.tabs)
|
||||
self.tabs.deleteLater()
|
||||
self.cfg = self.app.settings
|
||||
self.controls = {}
|
||||
self.tabs = QTabWidget()
|
||||
self.colors = dict(self.cfg.colors)
|
||||
self.network_colors = dict(self.cfg.network_colors)
|
||||
self.background = self.cfg.background
|
||||
layout = QVBoxLayout(self)
|
||||
layout.addWidget(self.tabs)
|
||||
buttons = QDialogButtonBox(QDialogButtonBox.StandardButton.Save | QDialogButtonBox.StandardButton.Cancel)
|
||||
buttons.accepted.connect(self.save)
|
||||
buttons.rejected.connect(self.reject)
|
||||
layout.addWidget(buttons)
|
||||
self.general()
|
||||
self.tray()
|
||||
self.hover()
|
||||
@@ -119,12 +133,23 @@ class SettingsDialog(QDialog):
|
||||
self.remote()
|
||||
self.history()
|
||||
self.diagnostics()
|
||||
self.timer = QTimer(self)
|
||||
self.timer.setInterval(1500)
|
||||
self.timer.timeout.connect(self.update_diagnostics)
|
||||
self.tabs.setCurrentIndex(index)
|
||||
self.layout().insertWidget(0, self.tabs, 1)
|
||||
self.tabs.currentChanged.connect(self.update_diagnostics)
|
||||
self.initial = self.values()
|
||||
self.initial_startup = self.startup.isChecked()
|
||||
self.update_diagnostics()
|
||||
|
||||
def showEvent(self, event):
|
||||
if self.tabs is None or (self.values() == self.initial and self.startup.isChecked() == self.initial_startup):
|
||||
self.reload()
|
||||
super().showEvent(event)
|
||||
self.timer.start()
|
||||
self.update_diagnostics()
|
||||
self.window_geometry = WindowGeometry(self, app.root / "settings-window.bin")
|
||||
|
||||
def hideEvent(self, event):
|
||||
self.timer.stop()
|
||||
super().hideEvent(event)
|
||||
|
||||
def section(self, title):
|
||||
page = QWidget()
|
||||
@@ -254,20 +279,26 @@ class SettingsDialog(QDialog):
|
||||
form.addRow(self.diagnostic)
|
||||
|
||||
def update_diagnostics(self):
|
||||
self.diagnostic.setText(self.app.diagnostics())
|
||||
if self.diagnostic.isVisible():
|
||||
self.diagnostic.setText(self.app.diagnostics())
|
||||
|
||||
def values(self):
|
||||
return {**{key: getter() for key, getter in self.controls.items()},
|
||||
"background": self.background, "colors": dict(self.colors),
|
||||
"network_colors": dict(self.network_colors)}
|
||||
|
||||
def save(self):
|
||||
updates = {key: getter() for key, getter in self.controls.items()}
|
||||
cfg = replace(self.app.settings, **updates, background=self.background, colors=self.colors,
|
||||
network_colors=self.network_colors)
|
||||
updates = {key: value for key, value in self.values().items() if value != self.initial[key]}
|
||||
startup = self.startup.isChecked()
|
||||
try:
|
||||
self.app.apply(cfg)
|
||||
if self.startup.isChecked() != self.app.startup_enabled():
|
||||
self.app.set_startup(self.startup.isChecked())
|
||||
if updates:
|
||||
self.app.apply(replace(self.app.settings, **updates))
|
||||
if startup != self.initial_startup and startup != self.app.startup_enabled():
|
||||
self.app.set_startup(startup)
|
||||
except (OSError, ValueError) as exc:
|
||||
QMessageBox.warning(self, "Settings", str(exc))
|
||||
return
|
||||
self.accept()
|
||||
self.reload()
|
||||
|
||||
|
||||
class TargetDialog(QDialog):
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Timestamp-based plots shared by the monitoring windows and tray."""
|
||||
from time import time
|
||||
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""SQLite activity is confined to one background thread."""
|
||||
from contextlib import closing
|
||||
from pathlib import Path
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Machine checklists and drag controls shared by monitoring views."""
|
||||
from PySide6.QtCore import QEvent, QObject, QPoint, QSignalBlocker, Qt, QTimer
|
||||
from PySide6.QtWidgets import (
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
from collections import defaultdict, deque
|
||||
from dataclasses import dataclass
|
||||
from enum import StrEnum
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Independent telemetry providers."""
|
||||
import logging
|
||||
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
import logging
|
||||
import re
|
||||
from collections import Counter, defaultdict
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
# The client sends a single dot for each observation over the existing channel.
|
||||
export LC_ALL=C
|
||||
os=$(uname -sr)
|
||||
nvidia=$(command -v nvidia-smi || :)
|
||||
sample() {
|
||||
printf '@arm-begin\nos\t%s\n' "$os"
|
||||
if read -r uptime _ < /proc/uptime; then
|
||||
printf 'uptime\t%s\n' "$uptime"
|
||||
fi
|
||||
while read -r name value; do
|
||||
case "$name" in
|
||||
cpu|cpu[0-9]*) printf 'cpu\t%s\t%s\n' "$name" "$value";;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Windows performance data and adapter identity."""
|
||||
import ctypes as ct
|
||||
from ctypes import wintypes as w
|
||||
@@ -9,6 +16,13 @@ import winreg
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def uptime_counter():
|
||||
counter = ct.WinDLL("kernel32").GetTickCount64
|
||||
counter.argtypes = ()
|
||||
counter.restype = ct.c_uint64
|
||||
return counter
|
||||
|
||||
|
||||
class _Double(ct.Structure):
|
||||
_fields_ = [("status", w.DWORD), ("value", ct.c_double)]
|
||||
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
import base64
|
||||
import csv
|
||||
import hashlib
|
||||
@@ -295,7 +302,9 @@ class LinuxParser:
|
||||
sensors = [row for row in sections["cpusensor"] if len(row) == 2]
|
||||
temperatures = [val for temp, _ in sensors if (val := num(temp, .001)) is not None]
|
||||
powers = [val for _, power in sensors if (val := num(power, .000001)) is not None]
|
||||
uptime = next((num(row[0]) for row in sections["uptime"] if len(row) == 1), None)
|
||||
items.extend(readings(machine, stamp, TOTAL, {
|
||||
"system.uptime": (uptime if uptime is not None and uptime >= 0 else None, "s"),
|
||||
"cpu.util": (usage(*cpu_values.get("cpu", (None, None))), "%"),
|
||||
"cpu.physical": (len(core_map) or None, "count"),
|
||||
"cpu.logical": (sum(key != "cpu" for key in cpu_values) if cpu_values else None, "count"),
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
import logging
|
||||
import platform
|
||||
from time import perf_counter as monotonic, time
|
||||
@@ -5,7 +12,7 @@ from time import perf_counter as monotonic, time
|
||||
import psutil
|
||||
|
||||
from . import Provider
|
||||
from .native import Pdh, commit, cpu_identity, interface_info, pagefiles, physical_cores
|
||||
from .native import Pdh, commit, cpu_identity, interface_info, pagefiles, physical_cores, uptime_counter
|
||||
from ..model import (
|
||||
LOCAL, TOTAL, Availability, Device, Reading, Sample, aggregate, rate, readings, usage,
|
||||
)
|
||||
@@ -21,6 +28,7 @@ class Cpu(Provider):
|
||||
self.last = {}
|
||||
self.name = cpu_identity()
|
||||
self.cores = physical_cores()
|
||||
self.uptime = uptime_counter()
|
||||
self.stamp = 0
|
||||
|
||||
@staticmethod
|
||||
@@ -52,6 +60,7 @@ class Cpu(Provider):
|
||||
self.last, self.stamp = times, now
|
||||
frequency = psutil.cpu_freq()
|
||||
items.extend(readings(LOCAL, stamp, TOTAL, {
|
||||
"system.uptime": (self.uptime() / 1000, "s"),
|
||||
"cpu.util": (cpu_group(values, times), "%"),
|
||||
"cpu.frequency": (frequency.current if frequency else None, "MHz"),
|
||||
"cpu.physical": (len(cores) or psutil.cpu_count(logical=False), "count"),
|
||||
|
||||
43
arm/software_license.py
Normal file
@@ -0,0 +1,43 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Offline display and review of the application's software license."""
|
||||
from PySide6.QtWidgets import QDialog, QDialogButtonBox, QTextBrowser, QVBoxLayout
|
||||
from PySide6.QtGui import QDesktopServices
|
||||
|
||||
from .window_geometry import WindowGeometry
|
||||
|
||||
LICENSE_LABEL = "DC-ANCSA v1.0"
|
||||
|
||||
|
||||
class LicenseDialog(QDialog):
|
||||
def __init__(self, parent, root, markdown, review=False):
|
||||
super().__init__(parent)
|
||||
self.setWindowTitle("Design Creations Software License")
|
||||
self.resize(820, 640)
|
||||
layout = QVBoxLayout(self)
|
||||
self.browser = QTextBrowser(openLinks=False)
|
||||
self.browser.setAccessibleName("Software license text")
|
||||
self.browser.setMarkdown(markdown)
|
||||
self.browser.anchorClicked.connect(self.open_link)
|
||||
layout.addWidget(self.browser)
|
||||
if review:
|
||||
buttons = QDialogButtonBox(QDialogButtonBox.StandardButton.Cancel)
|
||||
accept = buttons.addButton("Accept license and install", QDialogButtonBox.ButtonRole.AcceptRole)
|
||||
accept.setAutoDefault(False)
|
||||
buttons.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True)
|
||||
else:
|
||||
buttons = QDialogButtonBox(QDialogButtonBox.StandardButton.Close)
|
||||
buttons.accepted.connect(self.accept)
|
||||
buttons.rejected.connect(self.reject)
|
||||
layout.addWidget(buttons)
|
||||
self.window_geometry = WindowGeometry(self, root / "software-license-window.bin")
|
||||
|
||||
@staticmethod
|
||||
def open_link(url):
|
||||
if url.scheme() in ("https", "http", "mailto"):
|
||||
QDesktopServices.openUrl(url)
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Use the cursor and Explorer's registered icon geometry for hover."""
|
||||
import ctypes as ct
|
||||
from ctypes import wintypes as w
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Design Creations tray commands for each visible ARM icon."""
|
||||
from PySide6.QtCore import QSize, Qt
|
||||
from PySide6.QtGui import QActionGroup, QColor, QFont, QIcon, QPainter, QPen, QPixmap
|
||||
from PySide6.QtWidgets import QHBoxLayout, QLabel, QMenu, QStyle, QVBoxLayout, QWidget, QWidgetAction
|
||||
|
||||
from .about import BrandImage
|
||||
from .about import ISSUE_ICON, BrandImage
|
||||
from .branding import open_issue_tracker
|
||||
from .config import TRAY_MODES
|
||||
from .machine_controls import MachineMenu
|
||||
from .version import NAME, VERSION
|
||||
@@ -12,9 +20,9 @@ SP = QStyle.StandardPixmap
|
||||
|
||||
|
||||
class TrayMenu(QMenu):
|
||||
def __init__(self, app, scope):
|
||||
def __init__(self, app):
|
||||
super().__init__()
|
||||
self.app, self.scope = app, scope
|
||||
self.app = app
|
||||
self.setAccessibleName(f"{NAME} tray menu")
|
||||
self.add_header()
|
||||
self.update = self.action(self, "", None, app.open_update)
|
||||
@@ -26,8 +34,6 @@ class TrayMenu(QMenu):
|
||||
open_monitor = self.action(self, "Open Resource Monitor", SP.SP_ComputerIcon,
|
||||
app.open_expanded)
|
||||
self.setDefaultAction(open_monitor)
|
||||
self.pin = self.action(self, "Pin Resource Monitor", None, lambda: app.toggle_pin(scope))
|
||||
self.pin.setCheckable(True)
|
||||
|
||||
self.addSeparator()
|
||||
self.machines = MachineMenu(app.dashboard, app.toggle_machine, self)
|
||||
@@ -58,6 +64,7 @@ class TrayMenu(QMenu):
|
||||
self.addSeparator()
|
||||
self.action(self, f"About {NAME}", SP.SP_MessageBoxInformation, app.about)
|
||||
self.action(self, "Check for Updates", SP.SP_BrowserReload, app.check_for_updates)
|
||||
self.action(self, "Report Issue", ISSUE_ICON, open_issue_tracker)
|
||||
self.action(self, "Design Creations Website", SP.SP_DriveNetIcon, app.open_website)
|
||||
self.addSeparator()
|
||||
self.action(self, f"Exit {NAME}", None, app.qt.quit)
|
||||
@@ -101,7 +108,6 @@ class TrayMenu(QMenu):
|
||||
app = self.app
|
||||
self.machines.sync()
|
||||
self.modes[app.settings.mode].setChecked(True)
|
||||
self.pin.setChecked(app.popup.pinned and app.hover.anchor == self.scope)
|
||||
self.start.setChecked(app.startup_enabled())
|
||||
|
||||
def theme(self, colors):
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Anonymous update discovery and verified downloads from the ARM release repository."""
|
||||
from dataclasses import dataclass
|
||||
from hashlib import sha256
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
@@ -9,7 +17,8 @@ from urllib.parse import quote, urlsplit
|
||||
from urllib.request import HTTPRedirectHandler, Request, build_opener
|
||||
|
||||
from .update_release import (
|
||||
MANIFEST, MAX_MANIFEST_SIZE, Release, UpdateError, eligible, exclusion_reason, source_config, verify_file, verify_manifest,
|
||||
LICENSE_FILE, MANIFEST, MAX_MANIFEST_SIZE, Release, UpdateError, eligible, exclusion_reason,
|
||||
software_license_digest, source_config, verify_file, verify_manifest,
|
||||
)
|
||||
from .version import VERSION, version_key
|
||||
|
||||
@@ -72,6 +81,16 @@ class ReleaseClient:
|
||||
raise UpdateError(f"Release attachment size is inconsistent: {name}")
|
||||
return expected
|
||||
|
||||
def read_license(self, release):
|
||||
expected = software_license_digest(release.notes)
|
||||
if expected is None:
|
||||
raise UpdateError("The release has no signed software license checksum")
|
||||
source = f"{self.base}/{self.repository}/raw/tag/{quote(release.version, safe='')}/{LICENSE_FILE}"
|
||||
data = self.read(source, MAX_MANIFEST_SIZE)
|
||||
if sha256(data).hexdigest() != expected:
|
||||
raise UpdateError("The software license does not match the signed release checksum")
|
||||
return data.decode("utf-8-sig")
|
||||
|
||||
def check(self, installed, kind):
|
||||
rows = {}
|
||||
for page in range(1, 11):
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""A small, independent Windows window for the frozen maintenance launcher."""
|
||||
import logging
|
||||
from tkinter import Button, Frame, Label, Tk, TclError
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Signed release contract shared by the updater, maintenance worker and CI."""
|
||||
from base64 import b64decode
|
||||
from dataclasses import dataclass
|
||||
@@ -13,6 +20,8 @@ from .branding import APP_MODEL_ID
|
||||
from .version import CHANNELS, ROOT, version_key
|
||||
|
||||
MANIFEST = "arm-update-windows-x64.json"
|
||||
LICENSE_FILE = "LICENSE.md"
|
||||
LICENSE_NOTE = "Software license SHA-256 "
|
||||
ARCHITECTURE = "windows-x64"
|
||||
KINDS = {"installed": "-setup.exe", "portable": "-portable.zip"}
|
||||
MAX_PACKAGE_SIZE = 1024**3
|
||||
@@ -39,6 +48,15 @@ def sha256(path):
|
||||
return file_digest(stream, "sha256").hexdigest()
|
||||
|
||||
|
||||
def software_license_digest(notes):
|
||||
last = notes.rsplit("\n", 1)[-1]
|
||||
if last.startswith(LICENSE_NOTE):
|
||||
digest = last[len(LICENSE_NOTE):]
|
||||
if SHA256.fullmatch(digest):
|
||||
return digest
|
||||
return None
|
||||
|
||||
|
||||
def artifact_name(version, kind):
|
||||
version_key(version)
|
||||
return f"AdaptiveResourceMonitor-{version}-{ARCHITECTURE}{KINDS[kind]}"
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Presentation and persisted outcomes for the shared updater."""
|
||||
from enum import Enum, auto
|
||||
import json
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Asynchronous Workshop-style update controls for the About tab."""
|
||||
from datetime import datetime
|
||||
import json
|
||||
@@ -11,8 +18,10 @@ from PySide6.QtWidgets import (
|
||||
QPushButton, QVBoxLayout,
|
||||
)
|
||||
|
||||
from .branding import document
|
||||
from .software_license import LicenseDialog
|
||||
from .update_client import ReleaseClient, UpdateCancelled, write_atomic
|
||||
from .update_release import MANIFEST, UpdateError, eligible, verify_file, verify_manifest
|
||||
from .update_release import LICENSE_FILE, MANIFEST, UpdateError, eligible, sha256, software_license_digest, verify_file, verify_manifest
|
||||
from .update_state import Phase, notice, notify_once, read_json, result_for
|
||||
from .version import VERSION, version_key
|
||||
|
||||
@@ -260,6 +269,16 @@ class UpdatePanel(QGroupBox):
|
||||
self.downloaded = value
|
||||
self.fields["Verification"].setText("Manifest signature and package SHA-256 verified")
|
||||
self.status.setText("Verified package saved. Install it when ready.")
|
||||
elif operation == "license":
|
||||
self.job = "license-review"
|
||||
dialog = LicenseDialog(self, self.root.parent, value, review=True)
|
||||
accepted = dialog.exec()
|
||||
dialog.deleteLater()
|
||||
self.job = None
|
||||
if accepted:
|
||||
self.begin_install()
|
||||
else:
|
||||
self.status.setText("Installation deferred. The verified package is still available.")
|
||||
elif operation == "prepare":
|
||||
self.plan = value
|
||||
self.elapsed = 0
|
||||
@@ -295,10 +314,27 @@ class UpdatePanel(QGroupBox):
|
||||
def install_now(self):
|
||||
if not self.downloaded or self.job or self.plan or not self.installable:
|
||||
return
|
||||
release = self.release
|
||||
expected = software_license_digest(release.notes)
|
||||
if expected is None:
|
||||
self.status.setText("The release has no signed software license checksum. Installation deferred.")
|
||||
return
|
||||
try:
|
||||
already_installed = sha256(document(LICENSE_FILE)) == expected
|
||||
except OSError as exc:
|
||||
LOG.warning("Could not read the installed software license: %s", exc)
|
||||
already_installed = False
|
||||
if not already_installed:
|
||||
self.status.setText("Checking the updated software license…")
|
||||
self.start("license", lambda: self.client.read_license(release))
|
||||
return
|
||||
if QMessageBox.question(self, "Install Update", f"Install {self.release.version} and restart Adaptive Resource Monitor?",
|
||||
QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
|
||||
QMessageBox.StandardButton.No) != QMessageBox.StandardButton.Yes:
|
||||
return
|
||||
self.begin_install()
|
||||
|
||||
def begin_install(self):
|
||||
from .about import installation
|
||||
from .update_worker import prepare
|
||||
release, artifact, target = self.release, self.downloaded, installation()[1]
|
||||
@@ -311,6 +347,11 @@ class UpdatePanel(QGroupBox):
|
||||
def defer_install(self):
|
||||
self.status.setText("Installation deferred. The verified package will be available from About.")
|
||||
|
||||
def dismiss_success_notice(self):
|
||||
if self.success_banner:
|
||||
self.success_banner = False
|
||||
self.set_controls()
|
||||
|
||||
def poll_worker(self):
|
||||
self.elapsed += 250
|
||||
status = read_json(self.plan / "status.json", {})
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Independent Windows updater. Transaction data never includes the ARM user profile."""
|
||||
import argparse
|
||||
from contextlib import contextmanager
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
38
arm/views.py
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
from time import time, strftime, localtime
|
||||
|
||||
from PySide6.QtCore import QPoint, QRect, QSize, Qt, QSignalBlocker, QTimer
|
||||
@@ -9,7 +16,7 @@ from PySide6.QtWidgets import (
|
||||
|
||||
from .graphs import Plot, resource_series, selected_resource
|
||||
from .machine_controls import MachineDrag, MachineDropdown
|
||||
from .model import NETWORK, TOTAL, Connection, INTERVALS, RANGES, RESOURCES, format_value
|
||||
from .model import NETWORK, TOTAL, Availability, Connection, INTERVALS, RANGES, RESOURCES, format_value
|
||||
from .version import VERSION
|
||||
from .window_geometry import fit_work_area
|
||||
|
||||
@@ -73,6 +80,17 @@ def display_value(item):
|
||||
return description if item.valid else f"{description} · {item.availability}"
|
||||
|
||||
|
||||
def describe_uptime(reading):
|
||||
if reading is None or reading.value is None:
|
||||
return "Uptime unavailable"
|
||||
minutes, seconds = divmod(int(reading.value), 60)
|
||||
hours, minutes = divmod(minutes, 60)
|
||||
days, hours = divmod(hours, 24)
|
||||
parts = [f"{value}{unit}" for value, unit in ((days, "d"), (hours, "h"), (minutes, "m")) if value]
|
||||
text = "Uptime " + (" ".join(parts) if parts else f"{seconds}s")
|
||||
return f"{text} (last sample)" if reading.availability is Availability.STALE else text
|
||||
|
||||
|
||||
class Card(QFrame):
|
||||
def __init__(self, resource, detailed, compact=False):
|
||||
super().__init__()
|
||||
@@ -152,6 +170,10 @@ class MachineSection(QFrame):
|
||||
details.toggled.connect(refresh)
|
||||
header.addWidget(details)
|
||||
|
||||
def drag_surfaces(self):
|
||||
return (self, self.title, *(widget for card in self.cards.values()
|
||||
for widget in (card, *card.findChildren(QWidget))))
|
||||
|
||||
|
||||
class UpdateBanner(QFrame):
|
||||
def __init__(self, open_update):
|
||||
@@ -282,10 +304,12 @@ class Monitor(QWidget):
|
||||
def monitor_visible(self):
|
||||
return self.isVisible() and (not self.expanded or self.tabs.currentWidget() is self.resource_page)
|
||||
|
||||
def show_page(self, about=False):
|
||||
self.tabs.setCurrentWidget(self.about_page if about else self.resource_page)
|
||||
def show_page(self, page=None):
|
||||
self.tabs.setCurrentWidget(self.resource_page if page is None else page)
|
||||
self.ensurePolished()
|
||||
self.layout().activate()
|
||||
if self.isMinimized():
|
||||
self.setWindowState(self.windowState() & ~Qt.WindowState.WindowMinimized)
|
||||
self.show()
|
||||
fit_work_area(self)
|
||||
self.raise_()
|
||||
@@ -386,7 +410,8 @@ class Monitor(QWidget):
|
||||
self.simultaneous.setVisible(len(shown) > 1)
|
||||
for machine in self.sections.keys() - set(self.dashboard.machines()):
|
||||
section = self.sections.pop(machine)
|
||||
self.drag.unwatch(section.title)
|
||||
for widget in section.drag_surfaces():
|
||||
self.drag.unwatch(widget)
|
||||
self.group_rows.removeWidget(section)
|
||||
section.deleteLater()
|
||||
if len(shown) < 2:
|
||||
@@ -398,7 +423,8 @@ class Monitor(QWidget):
|
||||
for index, machine in enumerate(shown):
|
||||
if machine not in self.sections:
|
||||
self.sections[machine] = section = MachineSection(self.expanded, self.refresh)
|
||||
self.drag.watch(section.title, lambda _point, machine=machine: machine)
|
||||
for widget in section.drag_surfaces():
|
||||
self.drag.watch(widget, lambda _point, machine=machine: machine)
|
||||
section = self.sections[machine]
|
||||
current = self.group_rows.indexOf(section)
|
||||
if current != index:
|
||||
@@ -453,6 +479,8 @@ class Monitor(QWidget):
|
||||
last = collectors.last.get(scope)
|
||||
last_text = f" · Last sample {strftime('%H:%M:%S', localtime(last))}" if self.expanded and last else ""
|
||||
text = f"{os_label} · {self.dashboard.state(scope)} · Sample {self.dashboard.interval(scope):g} s{last_text}"
|
||||
uptime = self.dashboard.observation(scope, "cpu", TOTAL, "system.uptime", time())
|
||||
text += f" · {describe_uptime(uptime)}"
|
||||
if status and status.detail:
|
||||
text += f" · {status.detail}"
|
||||
if self.expanded and not concise:
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Keep user-facing windows within the work area and remember their placement."""
|
||||
import logging
|
||||
|
||||
|
||||
BIN
docs/screenshots/about-and-application-update.png
Normal file
|
After Width: | Height: | Size: 105 KiB |
BIN
docs/screenshots/add-linux-machine.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
docs/screenshots/drag-machine-card.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
docs/screenshots/expanded-resource-monitor.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
docs/screenshots/hover-all-systems-light.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
docs/screenshots/hover-all-systems.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
docs/screenshots/hover-local-machine.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
docs/screenshots/hover-selected-systems.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
docs/screenshots/installation-progress-v0.8.4.4.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
docs/screenshots/machine-selection-checkboxes.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
docs/screenshots/manage-remote-targets.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
docs/screenshots/notification-area-graph.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
docs/screenshots/offline-license-viewer.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
docs/screenshots/resource-and-hardware-details.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
docs/screenshots/settings-tab.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
docs/screenshots/tray-context-menu.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
docs/screenshots/tray-visualization-settings.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
docs/screenshots/update-available-v0.8.2.3-to-v0.8.4.4.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
docs/screenshots/windows-installer-license.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
from arm.application import main
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,23 @@ psutil, Paramiko and its cryptographic dependencies, NVIDIA's NVML Python
|
||||
bindings, Tcl/Tk for the maintenance window, and the PyInstaller bootloader.
|
||||
The NVIDIA display driver's NVML DLL
|
||||
is provided by the driver. License text distributed by the dependency wheels
|
||||
is included in this directory.
|
||||
is included in this directory. NVIDIA's Python wrapper carries its BSD notice
|
||||
in its source header. Setup and the portable archive include that notice
|
||||
separately. [NVIDIA Python wrapper source distribution](https://pypi.org/project/nvidia-ml-py/13.615.71/#files)
|
||||
|
||||
DC-ANCSA applies to original ARM material. Bundled dependencies remain under
|
||||
their upstream terms. The notice files include the PSF and Tk terms, the
|
||||
PyInstaller bootloader exception, Paramiko's LGPL terms, and the distinct
|
||||
notices for the cryptography, NaCl, bcrypt, CFFI and other Python components.
|
||||
[Paramiko source distribution](https://pypi.org/project/paramiko/4.0.0/#files)
|
||||
|
||||
The OpenSSL license text is identical in the two bundled runtime versions.
|
||||
The Microsoft runtime stays under Microsoft's applicable redistribution
|
||||
terms. The SQLite library distributed with CPython is public domain.
|
||||
[OpenSSL 3.0.16](https://github.com/openssl/openssl/tree/openssl-3.0.16)
|
||||
[OpenSSL 4.0.2](https://github.com/openssl/openssl/tree/openssl-4.0.2)
|
||||
[Tcl 8.6.15](https://github.com/tcltk/tcl/tree/core-8-6-15)
|
||||
[SQLite copyright](https://www.sqlite.org/copyright.html)
|
||||
|
||||
The Qt and PySide 6.11.2 runtime is distributed under the GNU Lesser General
|
||||
Public License v3. The accompanying LGPL v3 and GPL v3 texts are in the
|
||||
|
||||
177
packaging/dependency-notices/OpenSSL-3.0.16-LICENSE.txt
Normal file
@@ -0,0 +1,177 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
https://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
40
packaging/dependency-notices/Tcl-8.6.15-license.terms
Normal file
@@ -0,0 +1,40 @@
|
||||
This software is copyrighted by the Regents of the University of
|
||||
California, Sun Microsystems, Inc., Scriptics Corporation, ActiveState
|
||||
Corporation and other parties. The following terms apply to all files
|
||||
associated with the software unless explicitly disclaimed in
|
||||
individual files.
|
||||
|
||||
The authors hereby grant permission to use, copy, modify, distribute,
|
||||
and license this software and its documentation for any purpose, provided
|
||||
that existing copyright notices are retained in all copies and that this
|
||||
notice is included verbatim in any distributions. No written agreement,
|
||||
license, or royalty fee is required for any of the authorized uses.
|
||||
Modifications to this software may be copyrighted by their authors
|
||||
and need not follow the licensing terms described here, provided that
|
||||
the new terms are clearly indicated on the first page of each file where
|
||||
they apply.
|
||||
|
||||
IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
|
||||
FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
||||
ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
|
||||
DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
|
||||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
|
||||
IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
|
||||
NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
|
||||
MODIFICATIONS.
|
||||
|
||||
GOVERNMENT USE: If you are acquiring this software on behalf of the
|
||||
U.S. government, the Government shall have only "Restricted Rights"
|
||||
in the software and related documentation as defined in the Federal
|
||||
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
|
||||
are acquiring the software on behalf of the Department of Defense, the
|
||||
software shall be classified as "Commercial Computer Software" and the
|
||||
Government shall have only "Restricted Rights" as defined in Clause
|
||||
252.227-7014 (b) (3) of DFARs. Notwithstanding the foregoing, the
|
||||
authors grant the U.S. Government and others acting in its behalf
|
||||
permission to use and distribute the software in accordance with the
|
||||
terms specified in this license.
|
||||
@@ -33,6 +33,9 @@ WizardStyle=modern
|
||||
SetupIconFile={#AppIcon}
|
||||
WizardImageFile={#WizardImage}
|
||||
WizardSmallImageFile={#WizardEmblem}
|
||||
#ifdef LicenseAgreement
|
||||
LicenseFile={#LicenseAgreement}
|
||||
#endif
|
||||
UninstallDisplayIcon={app}\{#Executable}
|
||||
CloseApplications=no
|
||||
RestartApplications=no
|
||||
@@ -85,6 +88,11 @@ begin
|
||||
Result := ExpandConstant('{param:ARMUPDATE|0}') = '1';
|
||||
end;
|
||||
|
||||
function ShouldSkipPage(PageID: Integer): Boolean;
|
||||
begin
|
||||
Result := (PageID = wpLicense) and ArmUpdate;
|
||||
end;
|
||||
|
||||
procedure CurUninstallStepChanged(Step: TUninstallStep);
|
||||
var
|
||||
Value, Target: String;
|
||||
|
||||
@@ -9,7 +9,7 @@ from arm.providers.ssh import probe_command
|
||||
SECRET = "arm-fixture-only"
|
||||
COMMAND = probe_command().encode()
|
||||
FRAME = (
|
||||
"os\tLinux fixture\nboot\t{boot}\ncpu\tcpu\t{busy} 0 200 500 0 0 0 0 0 0\n"
|
||||
"os\tLinux fixture\nboot\t{boot}\nuptime\t12345.67\ncpu\tcpu\t{busy} 0 200 500 0 0 0 0 0 0\n"
|
||||
"cpu\tcpu0\t{busy} 0 200 500 0 0 0 0 0 0\n"
|
||||
"ram\tMemTotal\t16384\nram\tMemAvailable\t12000\n"
|
||||
"ram\tSwapTotal\t2024\nram\tSwapFree\t1024\n"
|
||||
|
||||
@@ -35,6 +35,8 @@ class Providers(unittest.TestCase):
|
||||
sleep(.85)
|
||||
second = [p.sample() for p in providers]
|
||||
self.assertTrue(reading(second[0], "cpu.util").valid)
|
||||
self.assertGreater(reading(second[0], "system.uptime").value,
|
||||
reading(first[0], "system.uptime").value)
|
||||
self.assertTrue(reading(second[1], "ram.util").valid)
|
||||
for sample in second:
|
||||
self.assertTrue(all(r.timestamp == sample.timestamp for r in sample.readings))
|
||||
@@ -48,6 +50,7 @@ class Providers(unittest.TestCase):
|
||||
second, _ = parser.parse(FRAME.format(boot=1, busy=200), 11, 11)
|
||||
self.assertEqual(os_label, "Linux fixture")
|
||||
self.assertIsNone(reading(first, "cpu.util").value)
|
||||
self.assertEqual(reading(first, "system.uptime").value, 12345.67)
|
||||
self.assertEqual(reading(second, "cpu.util").value, 100)
|
||||
self.assertEqual(reading(second, "disk.read").value, 51200)
|
||||
self.assertEqual(reading(second, "net.total").value, 200)
|
||||
@@ -55,6 +58,8 @@ class Providers(unittest.TestCase):
|
||||
self.assertEqual(reading(second, "gpu.vram_pct").value, 25)
|
||||
reset, _ = parser.parse(FRAME.format(boot=2, busy=400), 12, 12)
|
||||
self.assertIsNone(reading(reset, "disk.read").value)
|
||||
invalid, _ = parser.parse(FRAME.format(boot=2, busy=500).replace("12345.67", "-1"), 13, 13)
|
||||
self.assertIsNone(reading(invalid, "system.uptime").value)
|
||||
|
||||
def test_directional_deltas_skip_reboot_reset_and_interface_replacement(self):
|
||||
def frame(boot, rx, tx, index):
|
||||
|
||||
@@ -16,7 +16,7 @@ from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
|
||||
from arm.branding import APP_MODEL_ID
|
||||
from arm.config import Settings
|
||||
from arm.update_client import ReleaseClient, UpdateCancelled
|
||||
from arm.update_release import MANIFEST, UpdateError, artifact_name, canonical, verify_manifest
|
||||
from arm.update_release import LICENSE_NOTE, MANIFEST, UpdateError, artifact_name, canonical, verify_manifest
|
||||
from arm.update_state import Phase, notice, notify_once, result_for, transaction_from_ack
|
||||
from arm.update_worker import unpack_portable, wait_parent
|
||||
from arm.version import VERSION, version_key
|
||||
@@ -84,6 +84,20 @@ class UpdateTests(unittest.TestCase):
|
||||
bad["packages"]["portable"][field] = value
|
||||
return verify_manifest(self.sign(bad), self.public, NEW)
|
||||
|
||||
def test_update_license_must_match_the_signed_release(self):
|
||||
new_license = b"# Distinct license terms\n"
|
||||
meta = self.metadata()
|
||||
with self.assertRaisesRegex(UpdateError, "no signed software license"):
|
||||
self.client.read_license(verify_manifest(self.sign(meta), self.public))
|
||||
meta["notes"] += f"\n\n{LICENSE_NOTE}{sha256(new_license).hexdigest()}"
|
||||
release = verify_manifest(self.sign(meta), self.public)
|
||||
with patch.object(self.client, "read", return_value=new_license) as read:
|
||||
self.assertEqual(self.client.read_license(release), new_license.decode())
|
||||
self.assertTrue(read.call_args.args[0].endswith(f"/raw/tag/{NEW}/LICENSE.md"))
|
||||
with patch.object(self.client, "read", return_value=b"Changed text"):
|
||||
with self.assertRaisesRegex(UpdateError, "does not match"):
|
||||
self.client.read_license(release)
|
||||
|
||||
def test_discovery_verified_current_and_older(self):
|
||||
for version in (NEW, VERSION, OLD):
|
||||
row, raw = self.row(self.metadata(version))
|
||||
|
||||
@@ -257,6 +257,9 @@ def validate_packages(release, work, result, upgrade_from=None, captures=None, p
|
||||
assert json.loads((payload / "BUILD.json").read_text())["version"] == VERSION
|
||||
assert VERSION in (payload / "CHANGELOG.md").read_text(encoding="utf-8")
|
||||
assert (payload / "Third-party notices" / "README.md").is_file()
|
||||
assert (payload / "LICENSE.md").read_bytes() == (ROOT / "LICENSE.md").read_bytes()
|
||||
assert "Redistributions in binary form" in (
|
||||
payload / "Third-party notices" / "NVIDIA-NVML-Python-LICENSE.txt").read_text(encoding="utf-8")
|
||||
for name in ("LGPL-3.0-only.txt", "GPL-3.0-only.txt"):
|
||||
assert (payload / "Third-party notices" / name).read_bytes() == (
|
||||
ROOT / "packaging" / "qt-notices" / name).read_bytes()
|
||||
@@ -337,7 +340,7 @@ def verify_branding(session, results, captures=None):
|
||||
from PySide6.QtWidgets import QLabel, QPushButton
|
||||
from arm.branding import (
|
||||
APPLICATION_ICON, APPLICATION_IMAGE, APPLICATION_LOGO, COMPANY_LOGO, ICON_SIZES,
|
||||
SUPPORT_URL, WEBSITE, asset,
|
||||
ISSUE_TRACKER_URL, WEBSITE, asset,
|
||||
)
|
||||
from arm.model import ALL, LOCAL
|
||||
from arm.version import NAME, VERSION
|
||||
@@ -369,7 +372,9 @@ def verify_branding(session, results, captures=None):
|
||||
assert menu.version.text() == VERSION and menu.machines.entries[LOCAL].isChecked()
|
||||
assert tuple(menu.machines.entries) == (LOCAL,)
|
||||
actions = {action.text(): action for action in menu.actions()}
|
||||
assert "Check for Updates" in actions
|
||||
action_order = list(actions)
|
||||
assert action_order[action_order.index("Check for Updates") + 1] == "Report Issue"
|
||||
assert not actions["Report Issue"].icon().isNull()
|
||||
actions[f"About {NAME}"].trigger()
|
||||
assert session.expanded.tabs.currentWidget() is session.about_page
|
||||
assert session.about_page.version.text() == VERSION
|
||||
@@ -377,24 +382,70 @@ def verify_branding(session, results, captures=None):
|
||||
assert not session.expanded.monitor_visible
|
||||
assert not session.about_page.app_image.picture.isNull()
|
||||
assert not session.about_page.company_image.picture.isNull()
|
||||
assert session.about_page.view_license.isEnabled()
|
||||
assert any(label.text() == "DC-ANCSA v1.0" for label in session.about_page.findChildren(QLabel))
|
||||
seen_geometry = []
|
||||
|
||||
def inspect_license():
|
||||
from arm.software_license import LicenseDialog
|
||||
dialog = session.qt.activeModalWidget()
|
||||
assert isinstance(dialog, LicenseDialog)
|
||||
content = dialog.browser.toPlainText()
|
||||
assert "Design Creations Attribution-NonCommercial-ShareAlike License" in content
|
||||
assert "Additional permissions and reserved rights" in content
|
||||
assert dialog.browser.isReadOnly() and dialog.browser.verticalScrollBar().maximum() > 0
|
||||
if not seen_geometry:
|
||||
dialog.move(80, 90)
|
||||
dialog.resize(650, 530)
|
||||
else:
|
||||
assert dialog.geometry() == seen_geometry[0]
|
||||
seen_geometry.append(dialog.geometry())
|
||||
dialog.reject()
|
||||
|
||||
for _ in range(2):
|
||||
QTimer.singleShot(0, inspect_license)
|
||||
session.about_page.view_license.click()
|
||||
assert len(seen_geometry) == 2
|
||||
session.about_page.open_link("THIRD_PARTY.md")
|
||||
assert session.about_page.document_group.title() == "Third-party Notices"
|
||||
assert "CPython" in session.about_page.browser.toPlainText()
|
||||
session.about_page.open_link("README.md")
|
||||
assert "dynamic icon" in session.about_page.browser.toPlainText()
|
||||
assert "Quick Start" in session.about_page.browser.toPlainText()
|
||||
assert "Contact & Support" not in session.about_page.links.text()
|
||||
assert "Third-party Notices" in session.about_page.links.text()
|
||||
session.about_page.open_link("CHANGELOG.md")
|
||||
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
details = []
|
||||
clipboard = Mock()
|
||||
copied = []
|
||||
|
||||
def inspect_details():
|
||||
dialog = session.qt.activeModalWidget()
|
||||
if dialog:
|
||||
details.extend(label.text() for label in dialog.findChildren(QLabel))
|
||||
button = next(btn for btn in dialog.findChildren(QPushButton)
|
||||
if btn.text() == "Copy Application Information")
|
||||
with patch("arm.about.QGuiApplication") as gui_application:
|
||||
gui_application.clipboard.return_value = clipboard
|
||||
button.click()
|
||||
copied.extend(clipboard.setText.call_args.args)
|
||||
dialog.reject()
|
||||
QTimer.singleShot(0, inspect_details)
|
||||
view = next(button for button in session.about_page.findChildren(QPushButton) if button.text() == "Application Details")
|
||||
license_button = session.about_page.view_license
|
||||
assert license_button.y() == view.y() and license_button.height() == view.height()
|
||||
assert view.geometry().right() < license_button.x() < session.about_page.report_issue.x()
|
||||
results["about_license_button_row"] = True
|
||||
view.click()
|
||||
assert "Installation type" in details and "Source checkout" in details and VERSION in details
|
||||
info = dict(line.split(": ", 1) for line in copied[0].splitlines())
|
||||
assert set(info) == {"Application", "Version", "Release classification", "Operating system",
|
||||
"Processor architecture", "Distribution", "Framework"}
|
||||
assert info["Application"] == NAME and info["Version"] == VERSION
|
||||
assert info["Distribution"] == "Source checkout" and info["Framework"].startswith("Qt ")
|
||||
assert str(session.about_page.data_root) not in copied[0]
|
||||
|
||||
class BrowserTarget(QObject):
|
||||
@Slot(QUrl)
|
||||
@@ -406,8 +457,13 @@ def verify_branding(session, results, captures=None):
|
||||
try:
|
||||
actions["Design Creations Website"].trigger()
|
||||
assert sink.destination == WEBSITE
|
||||
session.about_page.open_link(SUPPORT_URL)
|
||||
assert sink.destination == SUPPORT_URL
|
||||
assert not session.about_page.report_issue.icon().isNull()
|
||||
session.about_page.report_issue.click()
|
||||
assert sink.destination == ISSUE_TRACKER_URL
|
||||
sink.destination = ""
|
||||
actions["Report Issue"].trigger()
|
||||
assert sink.destination == ISSUE_TRACKER_URL
|
||||
results["issue_reporting"] = True
|
||||
finally:
|
||||
QDesktopServices.unsetUrlHandler("https")
|
||||
if captures:
|
||||
@@ -517,6 +573,21 @@ def verify_update_notices(session, wait_for, results, captures):
|
||||
wait_for(lambda: update.job is None)
|
||||
assert not menu.update.isVisible() and expanded.update_banner.isHidden()
|
||||
assert hover.popup_size() == initial_size
|
||||
update.accept_outcome((Phase.SUCCESS, "ARM installed and restarted."))
|
||||
confirmation = update.root / "confirmation.json"
|
||||
before = confirmation.read_bytes()
|
||||
assert hover.update_banner.label.text() and expanded.update_banner.label.text()
|
||||
assert hover.update_banner.action.text() == "View Changelog"
|
||||
session.hover.pin(True, LOCAL)
|
||||
expanded.showMinimized()
|
||||
session.qt.processEvents()
|
||||
hover.update_banner.action.click()
|
||||
assert not expanded.isMinimized() and expanded.tabs.currentWidget() is session.about_page
|
||||
assert session.about_page.document_group.title() == "Change Log"
|
||||
assert hover.update_banner.isHidden() and expanded.update_banner.isHidden()
|
||||
assert confirmation.read_bytes() == before
|
||||
session.hover.pin(False)
|
||||
hover.hide()
|
||||
expanded.close()
|
||||
finally:
|
||||
fixture.doCleanups()
|
||||
@@ -662,15 +733,15 @@ def verify_machine_display(session, wait_for, results, captures):
|
||||
app.processEvents()
|
||||
|
||||
viewport = hover.simultaneous.viewport()
|
||||
local_header = hover.sections[local].title
|
||||
local_card = hover.sections[local].cards["ram"].plot
|
||||
section_objects = dict(hover.sections)
|
||||
viewport_origin = lambda: viewport.mapToGlobal(QPoint(viewport.width() // 2, 3))
|
||||
point = lambda w: w.mapToGlobal(w.rect().center())
|
||||
bottom = viewport.mapToGlobal(QPoint(viewport.width() // 2, viewport.height() - 3))
|
||||
before = persisted()
|
||||
drag_to(hover.drag, local_header, point(local_header), bottom, cancel=True)
|
||||
drag_to(hover.drag, local_card, point(local_card), bottom, cancel=True)
|
||||
assert persisted() == before
|
||||
drag_to(hover.drag, local_header, point(local_header), bottom, scroll_to_end=True)
|
||||
drag_to(hover.drag, local_card, point(local_card), bottom, scroll_to_end=True)
|
||||
assert hover.displayed == (rain, phantom, lamp, phantomnet, local)
|
||||
assert persisted().order == hover.displayed and hover.sections == section_objects
|
||||
assert tuple(tray.entries) == hover.displayed
|
||||
@@ -739,11 +810,11 @@ def evaluate_app(work, results, short=False, captures=None):
|
||||
import psutil
|
||||
from PySide6.QtCore import QEventLoop, QTimer
|
||||
from PySide6.QtGui import QGuiApplication
|
||||
from PySide6.QtWidgets import QApplication, QSystemTrayIcon
|
||||
from PySide6.QtWidgets import QApplication, QDialogButtonBox, QSystemTrayIcon
|
||||
from arm.application import Application
|
||||
from arm.branding import set_windows_identity
|
||||
from arm.config import STATIC_TRAY_MODE, ConfigStore, Settings, Target
|
||||
from arm.dialogs import ConnectionsDialog, SettingsDialog
|
||||
from arm.dialogs import ConnectionsDialog
|
||||
from arm.model import ALL, LOCAL, NETWORK, TOTAL, Connection, RESOURCES
|
||||
from arm.providers.ssh import update_host_key
|
||||
from ssh_fixture import Fixture, SECRET
|
||||
@@ -856,8 +927,13 @@ def evaluate_app(work, results, short=False, captures=None):
|
||||
assert len(set(modes.values())) == 4, modes
|
||||
results["rendered_modes"] = modes
|
||||
assert ConfigStore(root / "settings.json").load().mode == "Composite"
|
||||
menu.pin.trigger()
|
||||
session.activate_icon(LOCAL, QSystemTrayIcon.ActivationReason.Trigger)
|
||||
assert session.popup.isVisible() and not session.popup.pinned
|
||||
assert all(action.text() != "Pin Resource Monitor" for action in menu.actions())
|
||||
session.popup.pin.click()
|
||||
assert session.popup.isVisible() and session.popup.pinned
|
||||
session.activate_icon(LOCAL, QSystemTrayIcon.ActivationReason.Trigger)
|
||||
assert session.popup.pinned
|
||||
assert sum(card.isVisible() for card in session.popup.cards.values()) == len(RESOURCES)
|
||||
wait_for(lambda: session.popup.frameGeometry().isValid())
|
||||
if not short:
|
||||
@@ -871,17 +947,40 @@ def evaluate_app(work, results, short=False, captures=None):
|
||||
assert app.primaryScreen().availableGeometry().contains(session.popup.frameGeometry())
|
||||
if not short:
|
||||
measure("expanded")
|
||||
prefs = session.settings_page
|
||||
assert [session.expanded.tabs.tabText(index) for index in range(session.expanded.tabs.count())] == [
|
||||
"Resource Monitor", "Settings", "About",
|
||||
]
|
||||
session.expanded.tabs.setCurrentWidget(prefs)
|
||||
assert prefs.isVisible() and prefs.tabs.count() == 7
|
||||
minimized = session.settings.minimized
|
||||
control = prefs.controls["minimized"].__self__
|
||||
control.setChecked(not minimized)
|
||||
session.expanded.tabs.setCurrentWidget(session.expanded.resource_page)
|
||||
session.expanded.showMinimized()
|
||||
next(action for action in menu.actions() if action.text() == "Settings").trigger()
|
||||
assert session.expanded.tabs.currentWidget() is prefs and not session.expanded.isMinimized()
|
||||
assert prefs.controls["minimized"]() == (not minimized)
|
||||
buttons = prefs.findChild(QDialogButtonBox)
|
||||
buttons.button(QDialogButtonBox.StandardButton.Cancel).click()
|
||||
assert prefs.controls["minimized"]() == minimized
|
||||
prefs.controls["minimized"].__self__.setChecked(not minimized)
|
||||
previous_range = session.settings.hover_range
|
||||
changed_range = 300 if previous_range != 300 else 60
|
||||
session.remember_monitor(changed_range)
|
||||
buttons.button(QDialogButtonBox.StandardButton.Save).click()
|
||||
saved = session.store.load()
|
||||
assert saved.minimized == (not minimized) and saved.hover_range == changed_range
|
||||
assert session.expanded.tabs.currentWidget() is prefs
|
||||
session.remember_monitor(previous_range)
|
||||
results["shared_settings_tab"] = "Main window and tray entry, draft retention, Cancel, and Save"
|
||||
session.expanded.close()
|
||||
assert not session.expanded.isVisible() and session.icons[LOCAL].isVisible()
|
||||
if not short:
|
||||
prefs, connections = SettingsDialog(session), ConnectionsDialog(session)
|
||||
prefs.show()
|
||||
connections = ConnectionsDialog(session)
|
||||
connections.show()
|
||||
assert prefs.isVisible() and connections.isVisible()
|
||||
assert prefs.tabs.count() == 7 and connections.table.rowCount() == 0
|
||||
prefs.close()
|
||||
assert connections.isVisible() and connections.table.rowCount() == 0
|
||||
connections.close()
|
||||
prefs.deleteLater()
|
||||
connections.deleteLater()
|
||||
with ExitStack() as stack:
|
||||
servers = [stack.enter_context(Fixture()) for _ in range(2)]
|
||||
@@ -910,12 +1009,12 @@ def evaluate_app(work, results, short=False, captures=None):
|
||||
measure("two_loopback_ssh")
|
||||
from arm.graphs import tray_icon
|
||||
primary, other = (target.identifier for target in targets)
|
||||
prefs = SettingsDialog(session)
|
||||
session.open_settings()
|
||||
tray_machine = prefs.controls["tray_machine"].__self__
|
||||
assert [tray_machine.itemData(i) for i in range(tray_machine.count())] == [LOCAL, primary, other]
|
||||
tray_machine.setCurrentIndex(tray_machine.findData(primary))
|
||||
prefs.save()
|
||||
prefs.deleteLater()
|
||||
session.expanded.close()
|
||||
assert session.scopes() == [primary] and session.popup.displayed == (LOCAL,)
|
||||
menu = session.menus[primary]
|
||||
for choice in (ALL, other, LOCAL):
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Freeze, compile and verify the ARM Windows release."""
|
||||
import argparse
|
||||
from datetime import datetime, timezone
|
||||
from hashlib import file_digest
|
||||
from importlib import metadata
|
||||
from itertools import takewhile
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
@@ -18,6 +26,7 @@ from zipfile import ZIP_DEFLATED, ZipFile
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT))
|
||||
from arm.version import NAME, VERSION, version_key
|
||||
from arm.update_release import LICENSE_FILE
|
||||
from arm.branding import (
|
||||
APPLICATION_ICON, APPLICATION_IMAGE, APPLICATION_LOGO, APP_MODEL_ID, BUNDLED_ASSETS,
|
||||
COPYRIGHT, DESCRIPTION, INSTALL_ID, PUBLISHER, SUPPORT_URL, WEBSITE,
|
||||
@@ -55,6 +64,8 @@ def copy_notices(payload):
|
||||
notices.mkdir()
|
||||
for name in ("LGPL-3.0-only.txt", "GPL-3.0-only.txt"):
|
||||
shutil.copyfile(ROOT / "packaging" / "qt-notices" / name, notices / name)
|
||||
for source in sorted((ROOT / "packaging" / "dependency-notices").iterdir()):
|
||||
shutil.copyfile(source, notices / source.name)
|
||||
for package in ("PySide6", "PySide6-Essentials", "PySide6-Addons", "shiboken6", "psutil",
|
||||
"paramiko", "cryptography", "cffi", "bcrypt", "PyNaCl", "PyInstaller",
|
||||
"setuptools", "nvidia-ml-py", "invoke", "pycparser"):
|
||||
@@ -67,6 +78,11 @@ def copy_notices(payload):
|
||||
token in entry.name.lower() for token in ("license", "copying", "notice"))]
|
||||
for index, entry in enumerate(files):
|
||||
shutil.copyfile(entry.locate(), notices / f"{package}-{index}-{entry.name}")
|
||||
nvml = metadata.distribution("nvidia-ml-py").locate_file("pynvml.py").read_text(encoding="utf-8")
|
||||
nvml_notice = "\n".join(takewhile(lambda line: not line or line.startswith("#"), nvml.splitlines()))
|
||||
if "NVIDIA Corporation" not in nvml_notice or "Redistributions in binary form" not in nvml_notice:
|
||||
raise RuntimeError("NVIDIA NVML Python license notice is missing")
|
||||
(notices / "NVIDIA-NVML-Python-LICENSE.txt").write_text(nvml_notice.rstrip() + "\n", encoding="utf-8")
|
||||
python_license = Path(sys.base_prefix) / "LICENSE.txt"
|
||||
if python_license.is_file():
|
||||
shutil.copyfile(python_license, notices / "Python-LICENSE.txt")
|
||||
@@ -157,8 +173,10 @@ def build(compiler, output):
|
||||
(payload / "BUILD.json").write_text(json.dumps(identity, indent=2) + "\n", encoding="utf-8")
|
||||
for name in ("README.md", "SECURITY.md", "REMOTE_MONITORING.md", "CHANGELOG.md", "VERSION.md"):
|
||||
shutil.copyfile(ROOT / name, payload / name)
|
||||
if (ROOT / "LICENSE.md").is_file():
|
||||
shutil.copyfile(ROOT / "LICENSE.md", payload / "LICENSE.md")
|
||||
shutil.copyfile(ROOT / LICENSE_FILE, payload / LICENSE_FILE)
|
||||
wizard_license = temporary / "Software License.txt"
|
||||
wizard_license.write_text((ROOT / LICENSE_FILE).read_text(encoding="utf-8-sig"),
|
||||
encoding="utf-8-sig", newline="\r\n")
|
||||
copy_notices(payload)
|
||||
setup_id = INSTALL_ID.replace("{", "{{", 1)
|
||||
run([
|
||||
@@ -168,7 +186,7 @@ def build(compiler, output):
|
||||
f"-DSetupId={setup_id}", f"-DArmPublisher={PUBLISHER}", f"-DArmCopyright={COPYRIGHT}",
|
||||
f"-DAppWebsite={WEBSITE}", f"-DAppSupport={SUPPORT_URL}", f"-DAppModelId={APP_MODEL_ID}",
|
||||
f"-DAppDescription={DESCRIPTION}", f"-DWizardImage={ROOT / APPLICATION_IMAGE}",
|
||||
f"-DWizardEmblem={ROOT / APPLICATION_LOGO}",
|
||||
f"-DWizardEmblem={ROOT / APPLICATION_LOGO}", f"-DLicenseAgreement={wizard_license}",
|
||||
str(ROOT / "packaging" / "setup.iss"),
|
||||
])
|
||||
zip_path = temporary / f"{STEM}-portable.zip"
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Sign an archived Jenkins candidate and publish an explicitly pinned build."""
|
||||
import argparse
|
||||
from base64 import b64decode, b64encode
|
||||
from hashlib import file_digest
|
||||
from hashlib import file_digest, sha256 as hash_bytes
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
@@ -22,11 +29,12 @@ sys.path.insert(0, str(ROOT))
|
||||
from arm.branding import APP_MODEL_ID
|
||||
from arm.update_client import ReleaseClient
|
||||
from arm.update_release import (
|
||||
ARCHITECTURE, KINDS, MANIFEST, UpdateError, artifact_name, canonical, sha256, source_config,
|
||||
verify_file, verify_manifest,
|
||||
ARCHITECTURE, KINDS, LICENSE_FILE, LICENSE_NOTE, MANIFEST, UpdateError, artifact_name, canonical, sha256,
|
||||
software_license_digest, source_config, verify_file, verify_manifest,
|
||||
)
|
||||
from arm.update_worker import unpack_portable, verify_executable
|
||||
from arm.version import VERSION, version_key
|
||||
from tools.readme_release import update_public_readme
|
||||
|
||||
CHECKSUMS = "SHA256SUMS.txt"
|
||||
NOTES = "RELEASE_NOTES.md"
|
||||
@@ -51,7 +59,11 @@ def notes_at(commit, version):
|
||||
section = re.search(rf"^## {re.escape(version)}\s[^\n]*\n(.*?)(?=^## |\Z)", text, re.M | re.S)
|
||||
if not section or not section[1].strip():
|
||||
raise UpdateError("Pinned version has no changelog entry")
|
||||
return section[1].strip()
|
||||
notes = section[1].strip()
|
||||
if git("ls-tree", "--name-only", commit, "--", LICENSE_FILE):
|
||||
license_text = subprocess.check_output(("git", "show", f"{commit}:{LICENSE_FILE}"), cwd=ROOT)
|
||||
notes += f"\n\n{LICENSE_NOTE}{hash_bytes(license_text).hexdigest()}"
|
||||
return notes
|
||||
|
||||
|
||||
def expected_receipt(release):
|
||||
@@ -96,6 +108,9 @@ def verify(folder, version, commit, number):
|
||||
raise UpdateError("Portable package is inconsistent with the selected Jenkins build")
|
||||
if json.loads((payload / "_internal" / "update-source.json").read_bytes()) != source:
|
||||
raise UpdateError("Packaged update repository or trust key is inconsistent")
|
||||
if (license_digest := software_license_digest(release.notes)):
|
||||
if not (payload / LICENSE_FILE).is_file() or sha256(payload / LICENSE_FILE) != license_digest:
|
||||
raise UpdateError("Packaged software license disagrees with the signed source license")
|
||||
print(f"Verified Ed25519 signature, Windows x64 packages and build identity | {version} | {commit} | Jenkins #{number}")
|
||||
return release
|
||||
|
||||
@@ -194,6 +209,7 @@ def publish(folder, version, commit, number):
|
||||
raise UpdateError("An existing version tag points at a different commit")
|
||||
if row and not row["draft"]:
|
||||
api.verify_downloads(folder, row, release, True)
|
||||
update_public_readme(api, release)
|
||||
print(f"Version {version} is already public with the exact selected bytes")
|
||||
return
|
||||
if row is None:
|
||||
@@ -219,6 +235,7 @@ def publish(folder, version, commit, number):
|
||||
api.request(address, {"draft": True}, "PATCH")
|
||||
raise
|
||||
print(f"Published and anonymously verified {api.client.base}/{api.client.repository}/releases/tag/{tag}")
|
||||
update_public_readme(api, release)
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
from arm.update_worker import main
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Stage the pinned Windows compiler without changing the agent's execution policy."""
|
||||
from hashlib import file_digest
|
||||
from pathlib import Path
|
||||
|
||||
75
tools/readme_release.py
Normal file
@@ -0,0 +1,75 @@
|
||||
# Adaptive Resource Monitor
|
||||
# Original developer: Sonja M Thomas
|
||||
# Copyright 2010-2026 SLT Design Creations, LLC
|
||||
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
|
||||
# See LICENSE.md for complete license terms.
|
||||
# https://www.designcreations.us/
|
||||
|
||||
"""Refresh the public README from an already verified release."""
|
||||
from base64 import b64decode, b64encode
|
||||
import re
|
||||
from urllib.parse import quote
|
||||
|
||||
from arm.update_release import MANIFEST, UpdateError
|
||||
from arm.version import version_key
|
||||
|
||||
PUBLIC_VERSION = re.compile(r"<!-- arm-public-version: (v[0-9._a-z]+) -->")
|
||||
|
||||
|
||||
def replace_block(readme, name, content):
|
||||
start, end = f"<!-- arm-{name}:start -->", f"<!-- arm-{name}:end -->"
|
||||
if readme.count(start) != 1 or readme.count(end) != 1:
|
||||
raise UpdateError(f"README public release block is invalid ({name})")
|
||||
before, rest = readme.split(start)
|
||||
_, after = rest.split(end)
|
||||
return f"{before}{start}\n{content}\n{end}{after}"
|
||||
|
||||
|
||||
def render_readme(readme, client, release):
|
||||
version = release.version
|
||||
recorded = PUBLIC_VERSION.search(readme)
|
||||
if recorded and version_key(recorded[1]) > version_key(version):
|
||||
return readme
|
||||
releases = f"{client.base}/{client.repository}/releases"
|
||||
page = f"{releases}/tag/{quote(version, safe='')}"
|
||||
channel = {"alpha": "Alpha", "beta": "Beta", "rc": "Release Candidate", "stable": "Stable"}[version.rsplit("_", 1)[1]]
|
||||
badge = quote(version.replace("_", "__"), safe=".")
|
||||
stage = quote(channel.replace(" ", "_"), safe="_")
|
||||
header = f'''<!-- arm-public-version: {version} -->
|
||||
<p align="center"><strong>{version} · {channel}</strong> · Windows x64 · DC-ANCSA v1.0</p>
|
||||
<p align="center"><a href="{page}">Latest release</a> · <a href="#download">Download</a> · <a href="LICENSE.md">Read the license</a></p>
|
||||
<p align="center">
|
||||
<a href="{page}"><img src="https://img.shields.io/badge/release-{badge}-176B6D" alt="Latest release {version}"></a>
|
||||
<a href="{page}"><img src="https://img.shields.io/badge/development-{stage}-A35C15" alt="{channel} development status"></a>
|
||||
</p>'''
|
||||
downloads = f"""**{version} · {channel} · Windows x64**
|
||||
|
||||
| Download | Size | Use it for |
|
||||
| --- | ---: | --- |
|
||||
| [Windows installer]({client.url(version, release.packages['installed'].name)}) | {release.packages['installed'].size / 2**20:.1f} MiB | A per-user installation with Start menu access, optional startup and managed upgrades |
|
||||
| [Portable ZIP]({client.url(version, release.packages['portable'].name)}) | {release.packages['portable'].size / 2**20:.1f} MiB | Running ARM from an extracted folder with portable updates |
|
||||
|
||||
[Release notes and downloads]({page}) · [All releases]({releases}) ·
|
||||
[SHA-256 checksums]({client.url(version, 'SHA256SUMS.txt')}) ·
|
||||
[Signed manifest]({client.url(version, MANIFEST)}) ·
|
||||
[Public verification key]({client.url(version, 'arm-ed25519.pub')})"""
|
||||
readme = replace_block(readme, "public-header", header)
|
||||
return replace_block(readme, "public-downloads", downloads)
|
||||
|
||||
|
||||
def update_public_readme(api, release):
|
||||
address = "/contents/README.md"
|
||||
existing = api.request(f"{address}?ref=main")
|
||||
readme = b64decode(existing["content"]).decode("utf-8")
|
||||
if "<!-- arm-public-header:start -->" not in readme:
|
||||
return
|
||||
newest = api.client.check("v0.0.0.0_alpha", "installed").release
|
||||
if newest is None or newest.version != release.version:
|
||||
return
|
||||
updated = render_readme(readme, api.client, release)
|
||||
if updated == readme:
|
||||
return
|
||||
api.request(address, {"branch": "main", "sha": existing["sha"],
|
||||
"content": b64encode(updated.encode("utf-8")).decode("ascii"),
|
||||
"message": f"Update public download links for {release.version}"}, "PUT")
|
||||
print(f"Updated the public README for {release.version}")
|
||||