feat(sccm): analyze Software Update Point coverage - #473
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe change binds ChangesSoftware Update Point analysis
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Intake
participant SUPAnalyzer
participant Artifacts
Intake->>SUPAnalyzer: provide verified canonical intake
SUPAnalyzer->>Artifacts: select SUP and WSUS sources
Artifacts-->>SUPAnalyzer: return coverage inputs
SUPAnalyzer-->>Intake: return rows, gaps, and requests
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/cmtraceopen-parser/src/sccm/server/windows/software_update_point.rs`:
- Around line 84-110: Update the coverage-building flow around `coverage_rows`
and `coverage_gaps` to emit one canonical coverage gap when the intake-valid
topology lacks `SccmRole::SoftwareUpdatePoint`, rather than returning empty
output. Preserve the existing row-based gap generation when the SUP role is
present, and add a fixture asserting the no-SUP result.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: bf92130c-8e20-4c73-a4b4-ba3c6b1250b1
📒 Files selected for processing (4)
crates/cmtraceopen-parser/src/sccm/server/windows/intake.rscrates/cmtraceopen-parser/src/sccm/server/windows/mod.rscrates/cmtraceopen-parser/src/sccm/server/windows/software_update_point.rscrates/cmtraceopen-parser/tests/sccm_server_software_update_point.rs
There was a problem hiding this comment.
Pull request overview
Adds a SCCM Server Software Update Point (SUP) / supplemental WSUS coverage-only analyzer that projects canonical intake coverage and bounded recapture requests without inferring health/outcomes, and strengthens intake integrity so post-intake request mutation fails closed.
Changes:
- Introduces
analyze_software_update_pointcoverage-only projection for SUP/WSUS sources, including deterministic ordering and scoped request projection. - Seals
next_artifact_requestsinto the canonical server-intake integrity binding (including normalization, duplication rejection, and digesting). - Adds integration-style tests covering capped/captured/skipped/parseFailed coverage, request scoping, tamper fail-closed behavior, and deterministic serialization under reordering.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| crates/cmtraceopen-parser/tests/sccm_server_software_update_point.rs | New tests for SUP/WSUS coverage-only analysis, request scoping, and fail-closed integrity behavior. |
| crates/cmtraceopen-parser/src/sccm/server/windows/software_update_point.rs | New SUP/WSUS coverage-only analyzer and deterministic projection logic. |
| crates/cmtraceopen-parser/src/sccm/server/windows/mod.rs | Wires the new software_update_point module into the SCCM server Windows surface exports. |
| crates/cmtraceopen-parser/src/sccm/server/windows/intake.rs | Extends intake integrity binding to include next_artifact_requests (counts, structure bounds, normalization, digest). |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
e37e129 to
90b4581
Compare
90b4581 to
1e1cfb4
Compare
|
Superseded on main. This frozen SUP API was explicitly CoverageOnly; current main has six lifecycle phases, succeeded/failed/deferred/incomplete states, terminal semantics, correlation handoff, and all 10 scenarios through the production analyzer. Superseded by 76deb04 and promoted through PR #490. Closing unmerged. |
Summary
next_artifact_requestsinto canonical server-intake authority so post-intake mutation fails closedDependency and scope
Targets the SCCM integration branch
codex/parser-family-skeleton, notmain. The reviewed stack descends directly from integration head8329522742a4889565fba2c838f832208b7e7443and contains exactly three commits:4908d12c— SUP coverage-only intake adapter76e2b0b9— request scoping and conservative coverage wording3cd037b9— request-authority sealing and deterministic projectionThe diff is limited to four parser-crate files under the SCCM server/SUP surface.
Evidence
-D warnings): greengit diff --check: greenState
3cd037b9199e3414f599994e2156d85e0cfb3608Closes #330 only when the integration and acceptance criteria are complete. Part of #317.
Summary by CodeRabbit
New Features
Bug Fixes
Tests