Skip to content

ensure the toolkit exits if NRI Plugin init fails#1780

Merged
tariq1890 merged 1 commit intomainfrom
nri-non-zero-exit-on-fail
Apr 16, 2026
Merged

ensure the toolkit exits if NRI Plugin init fails#1780
tariq1890 merged 1 commit intomainfrom
nri-non-zero-exit-on-fail

Conversation

@tariq1890
Copy link
Copy Markdown
Contributor

When enabling NRI plugin, the toolkit must require the NRI Plugin server connect to be successful. If not, it should terminate with a non-zero exit code. Currently, we only log an error if the NRI Plugin connect fails and let the toolkit run.

With this change, the retry block is no longer needed, as the NRI Plugin connect will be retried through a container restart

@tariq1890 tariq1890 requested a review from cdesiniotis April 15, 2026 22:42
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 15, 2026

Coverage Report for CI Build 24482728641

Coverage increased (+0.05%) to 43.32%

Details

  • Coverage increased (+0.05%) from the base build.
  • Patch coverage: 2 uncovered changes across 1 file (0 of 2 lines covered, 0.0%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
cmd/nvidia-ctk-installer/main.go 2 0 0.0%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 14857
Covered Lines: 6436
Line Coverage: 43.32%
Coverage Strength: 0.48 hits per line

💛 - Coveralls

@tariq1890 tariq1890 force-pushed the nri-non-zero-exit-on-fail branch 2 times, most recently from df06b66 to 620d173 Compare April 15, 2026 22:58
@tariq1890 tariq1890 changed the title [NRI] ensure the toolkit exits if NRI Plugin init fails ensure the toolkit exits if NRI Plugin init fails Apr 15, 2026
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
@tariq1890 tariq1890 force-pushed the nri-non-zero-exit-on-fail branch from 620d173 to bb852eb Compare April 15, 2026 22:59
@tariq1890 tariq1890 merged commit 4080439 into main Apr 16, 2026
20 checks passed
@tariq1890 tariq1890 deleted the nri-non-zero-exit-on-fail branch April 16, 2026 00:42
@tariq1890
Copy link
Copy Markdown
Contributor Author

/cherry-pick release-1.19

@github-actions
Copy link
Copy Markdown

🤖 Backport PR created for release-1.19: #1786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants