Skip to content

refactor: Add AsOptional wrapper for lookup.Locator#1645

Merged
elezar merged 4 commits intoNVIDIA:mainfrom
elezar:refactor-optional-locator
Feb 18, 2026
Merged

refactor: Add AsOptional wrapper for lookup.Locator#1645
elezar merged 4 commits intoNVIDIA:mainfrom
elezar:refactor-optional-locator

Conversation

@elezar
Copy link
Member

@elezar elezar commented Feb 10, 2026

This change moves from a field based check for an optional locator to using a wrapper. This enables simpler composition and makes it simpler to make new locators explicitly optional.

This includes the changes from #1648 which should be reviewed first.

@coveralls
Copy link

coveralls commented Feb 10, 2026

Pull Request Test Coverage Report for Build 22089962467

Details

  • 72 of 110 (65.45%) changed or added relevant lines in 12 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 39.178%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/lookup/executable.go 4 5 80.0%
pkg/lookup/dir.go 0 2 0.0%
pkg/lookup/factory.go 30 32 93.75%
pkg/lookup/file.go 5 7 71.43%
cmd/nvidia-ctk/system/create-dev-char-symlinks/existing.go 0 5 0.0%
pkg/lookup/symlinks.go 2 8 25.0%
internal/lookup/root/root.go 0 7 0.0%
pkg/lookup/optional.go 12 25 48.0%
Files with Coverage Reduction New Missed Lines %
pkg/lookup/file.go 1 77.19%
Totals Coverage Status
Change from base Build 22067568877: -0.01%
Covered Lines: 5713
Relevant Lines: 14582

💛 - Coveralls

@elezar elezar force-pushed the refactor-optional-locator branch from cf782be to 00ee9b2 Compare February 12, 2026 14:32
@elezar elezar requested review from jgehrcke and klueska February 13, 2026 15:43
@elezar elezar force-pushed the refactor-optional-locator branch from 3090cf9 to 44544c9 Compare February 13, 2026 15:45
Copy link
Contributor

@cdesiniotis cdesiniotis left a comment

Choose a reason for hiding this comment

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

LGTM

@elezar elezar force-pushed the refactor-optional-locator branch from 44544c9 to b00c3eb Compare February 17, 2026 07:41
This change moves from a field based check for an optional locator to
using a wrapper. This enables simpler composition and makes it simpler
to make new locators explicitly optional.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the refactor-optional-locator branch from b00c3eb to 8e35c22 Compare February 18, 2026 13:47
@elezar elezar merged commit 080dbf8 into NVIDIA:main Feb 18, 2026
13 checks passed
@elezar elezar deleted the refactor-optional-locator branch February 18, 2026 13:50
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.

3 participants