Skip to content

Cleanup nsenter invocation - #234

Merged
tomli380576 merged 3 commits into
mainfrom
cleanup-nsenter-invocation
Aug 15, 2026
Merged

Cleanup nsenter invocation#234
tomli380576 merged 3 commits into
mainfrom
cleanup-nsenter-invocation

Conversation

@tomli380576

Copy link
Copy Markdown
Collaborator

No description provided.

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.

Pull request overview

Centralizes Python nsenter command construction and uses explicit host paths for snap management.

Changes:

  • Reuses NSENTER_PREFIX for host command execution.
  • Runs nvidia-smi in the host mount namespace.
  • Uses /usr/bin/snap explicitly when managing sosreport.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/bugit_v2/dut_utils/log_collectors.py Replaces duplicated nsenter arguments with the shared prefix.
src/bugit_v2/dut_utils/info_getters.py Executes nvidia-smi through the host namespace.
snap/local/scripts/run_sos.sh Uses the host’s explicit snap executable.
snap/hooks/install Uses the host’s explicit snap executable during installation.

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

@tomli380576
tomli380576 merged commit 091b13e into main Aug 15, 2026
2 checks passed
@tomli380576
tomli380576 deleted the cleanup-nsenter-invocation branch August 15, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants