Repository navigation
Conversation
- add static musl build, DADK and Nix integration for ocm-agent - reference upstream via sparkzky/ocm-agent submodule (dragonos branch, d08b700); Nix fetchgit pins the same revision - add protocol-compatible mock gateway, smoke and acceptance drivers - record the 2026-10-25 end-to-end acceptance report and raw artifacts - kernel /proc/uptime and busybox build fixes are intentionally excluded; they are submitted as separate PRs and remain in the working tree Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
- DADK source is now git + https://github.com/sparkzky/ocm-agent.git, pinned to the verified dragonos commit d08b700; the build command uses the DADK_SOURCE_CACHE_DIR_OCM_AGENT_0_1_0 checkout. - remove the ocm-agent git submodule and its .gitmodules entry. - add for local direct builds (clones into the ignored upstream/ directory); ROOT_PATH is exported by user/Makefile so DADK's build command can locate the DragonOS wrapper. - Nix keeps using fetchgit with the same revision. Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
After dropping the ocm-agent source submodule, the acceptance injector must read collector YAMLs from the files staged by `make plugins` instead of a local upstream/ checkout. Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port OpenCloudOS
ocm-agentto DragonOS and add an end-to-end acceptance harness.ocm-agentas a fully static musl binary (CGO is required bygo-sqlite3), plus staticos_monitor/sysinfo_collectorplugins.fetchgit, both pinned tosparkzky/ocm-agent(dragonosbranch,d08b700). No submodule and no vendored upstream source./opt/ocm-agentand Nix rootfs integration.master; the prerequisite kernel/proc/uptime(feat(procfs): add /proc/uptime #2565) and busybox build (fix(busybox): build with modern kernel headers #2566) fixes are already merged.Validation
Result: PASS (after rebase onto the merged fixes).
os_monitor: 10 frames / 154 metric values (CPU, load, memory,dfdisk usage).sysinfo_collector: 53 metric values (hostname, kernel, CPU model, memory, disks, NICs, sysctls, users, DNS).chattr +iwarning.os_monitorresident,sysinfo_collectorone-shot.Acceptance details and artifacts:
user/apps/ocm-agent/ACCEPTANCE.md,user/apps/ocm-agent/test-results/2026-10-25/.Notes
/proc/uptimeand the busybox Makefile fix are from the already-merged PRs./proc/diskstats, netdev statistics,MemAvailable, DMI/RPM/systemd) are documented inACCEPTANCE.mdandPORTING.md.bin/dadk_cache/source/ocm_agent_0_1_0; the revision is pinned.