Skip to content

fix: Reuse instantiated editsFactory in CDI#1666

Merged
elezar merged 1 commit intoNVIDIA:mainfrom
elezar:ensure-that-edit-factory-is-propagated
Mar 5, 2026
Merged

fix: Reuse instantiated editsFactory in CDI#1666
elezar merged 1 commit intoNVIDIA:mainfrom
elezar:ensure-that-edit-factory-is-propagated

Conversation

@elezar
Copy link
Member

@elezar elezar commented Feb 19, 2026

This change ensures that the editsFactory is instantiated
once and passed to the nvcdi constructor. This makes it
unnecessary to reprocess optional arguments and configs.

@coveralls
Copy link

coveralls commented Feb 19, 2026

Pull Request Test Coverage Report for Build 22669179856

Details

  • 19 of 25 (76.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.009%) to 43.355%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/modifier/factory.go 10 12 83.33%
pkg/nvcdi/options.go 6 10 60.0%
Totals Coverage Status
Change from base Build 22668622243: 0.009%
Covered Lines: 6427
Relevant Lines: 14824

💛 - Coveralls

@elezar elezar changed the title fix: Reused instantiated editsFactory in CDI fix: Reuse instantiated editsFactory in CDI Feb 19, 2026
@elezar elezar force-pushed the ensure-that-edit-factory-is-propagated branch from 7b7800d to b464149 Compare March 3, 2026 15:10
@elezar elezar requested a review from cdesiniotis March 4, 2026 11:01
@elezar elezar force-pushed the ensure-that-edit-factory-is-propagated branch 2 times, most recently from f2add99 to f9abeec Compare March 4, 2026 12:23
@elezar elezar added this to the v1.19.0 milestone Mar 5, 2026
This change ensures that the editsFactory is instantiated
once and passed to the nvcdi constructor. This makes it
unnecessary to reprocess optional arguments and configs.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the ensure-that-edit-factory-is-propagated branch from f9abeec to 79477c9 Compare March 5, 2026 10:35
@elezar elezar merged commit 29b3596 into NVIDIA:main Mar 5, 2026
16 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.

3 participants