Skip to content

fix: avoid self-matching KVM process probes - #7927

Merged
lpcox merged 1 commit into
mainfrom
lpcox-fix-kvm-self-matching-probes
Aug 31, 2026
Merged

fix: avoid self-matching KVM process probes#7927
lpcox merged 1 commit into
mainfrom
lpcox-fix-kvm-self-matching-probes

Conversation

@lpcox

@lpcox lpcox commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • make Cloud Hypervisor residue and liveness pgrep expressions self-excluding
  • apply the analogous correction to virtiofsd residue probes
  • add regression coverage showing probe expressions reject their own command lines while matching real target command lines

Validation

  • npm test -- --runInBand scripts/ci/cloud-hypervisor-ci-scripts.test.ts scripts/ci/test-cloud-hypervisor-workflow.test.ts
  • bash -n scripts/ci/cloud-hypervisor-live-smoke.sh
  • npm run build
  • npm run lint
  • npm test -- --runInBand

Fixes the false residue detection observed in the post-merge live-KVM run for #7922.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 31, 2026 21:00
@lpcox lpcox added the cloud-hypervisor-kvm Trigger the Cloud Hypervisor live-KVM smoke/security suite label Aug 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Security Guard has started processing this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused changes consistently fix self-matching probes and include appropriate regression coverage.

Review tier: Balanced
Findings: None

What changed in this PR

Prevents KVM cleanup/liveness probes from matching their own pgrep command lines.

Changes:

  • Uses self-excluding patterns for Cloud Hypervisor and virtiofsd.
  • Adds regression coverage for probe behavior.
  • Updates workflow cleanup validation.
File Description
scripts/​ci/​cloud-hypervisor-live-smoke.sh Corrects process probes.
scripts/​ci/​cloud-hypervisor-ci-scripts.test.ts Tests self-exclusion and target matching.
scripts/​ci/​test-cloud-hypervisor-workflow.test.ts Verifies workflow probe syntax.
.github/​workflows/​test-cloud-hypervisor.yml Corrects final residue probe.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 93.09% 93.11% 📈 +0.02%
Statements 91.73% 91.75% 📈 +0.02%
Functions 92.19% 92.19% ➡️ +0.00%
Branches 85.43% 85.44% ➡️ +0.01%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/log-directory-setup.ts 96.2% → 100.0% (+3.78%) 96.3% → 100.0% (+3.71%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit ea187da into main Aug 31, 2026
164 of 165 checks passed
@lpcox
lpcox deleted the lpcox-fix-kvm-self-matching-probes branch August 31, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cloud-hypervisor-kvm Trigger the Cloud Hypervisor live-KVM smoke/security suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants