Skip to content

Add a safely exit to securly close the ssh connection#369

Merged
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:fix/e2e/drivergpu
May 26, 2025
Merged

Add a safely exit to securly close the ssh connection#369
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:fix/e2e/drivergpu

Conversation

@ArangoGutierrez
Copy link
Collaborator

No description provided.

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures all provisioner script templates terminate the SSH session cleanly by appending a safe exit marker, and updates corresponding tests to verify its presence.

  • Append “# safely close the ssh connection” and exit 0 to every template
  • Update tests to trim whitespace and assert the safe-exit lines
  • (Unintentionally) remove a test that verified temporary directory cleanup in Containerd

Reviewed Changes

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

Show a summary per file
File Description
pkg/provisioner/templates/nv-driver.go Added safe-exit comment and exit 0 to NV driver template
pkg/provisioner/templates/nv-driver_test.go Imported strings, trimmed output, added safe-exit check
pkg/provisioner/templates/kubernetes.go Appended safe-exit lines to all Kubernetes installer templates
pkg/provisioner/templates/kubernetes_test.go Introduced checkSafeExit flag and safe-exit assertions
pkg/provisioner/templates/kernel.go Appended safe-exit lines to kernel script template
pkg/provisioner/templates/kernel_test.go Added test case for safe exit
pkg/provisioner/templates/docker.go Appended safe-exit lines to Docker installation script
pkg/provisioner/templates/docker_test.go Added assertion for safe-exit line
pkg/provisioner/templates/crio.go Appended safe-exit lines to CriO installation script
pkg/provisioner/templates/crio_test.go Added assertion for safe-exit line
pkg/provisioner/templates/containerd.go Appended safe-exit lines to Containerd installation script
pkg/provisioner/templates/containerd_test.go Replaced tmp-dir cleanup test with safe-exit assertion
pkg/provisioner/templates/container-toolkit.go Appended safe-exit lines to toolkit configuration script
pkg/provisioner/templates/container-toolkit_test.go Added assertion for safe-exit line

@ArangoGutierrez ArangoGutierrez merged commit 8dee4c1 into NVIDIA:main May 26, 2025
15 checks passed
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