Skip to content

handle: add NewHandleWithOptions(), deprecate DisableVFInfoCollection()#1174

Draft
ti-mo wants to merge 4 commits intovishvananda:mainfrom
ti-mo:tb/handle-options
Draft

handle: add NewHandleWithOptions(), deprecate DisableVFInfoCollection()#1174
ti-mo wants to merge 4 commits intovishvananda:mainfrom
ti-mo:tb/handle-options

Conversation

@ti-mo
Copy link
Contributor

@ti-mo ti-mo commented Mar 18, 2026

Repurpose HandleOptions as a declarative configuration mechanism for Handle. It can be passed to NewHandleWithOptions.

It also removes the unreleased Handle.RetryInterrupted and deprecates DisableVFInfoCollection in favor of its HandleOptions counterpart.

ti-mo added 2 commits March 18, 2026 14:05
The addition of ErrDumpInterrupted forced all callers to deal explicitly with
interrupted dumps, while typically the caller should simply retry.

This commit adds a retry system that makes the library retry up to 10 times
before finally giving up with ErrDumpInterrupted. This should lead to fewer
surprised users.

It can be enabled by calling Handle.RetryInterrupted.

Signed-off-by: Timo Beckers <timo@incline.eu>
This is not really a configuration option, but rather an internal cache for
remembering the lookup fallback behaviour.

Signed-off-by: Timo Beckers <timo@incline.eu>
@coderabbitai
Copy link

coderabbitai bot commented Mar 18, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 31bcb9e5-6847-4e09-af8c-db13a655af50

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

This commit repurposes HandleOptions as a declarative configuration mechanism
for Handle. It can be passed to NewHandleWithOptions.

It also removes the unreleased Handle.RetryInterrupted and deprecates
DisableVFInfoCollection in favor of its HandleOptions counterpart.

Signed-off-by: Timo Beckers <timo@incline.eu>
@ti-mo ti-mo force-pushed the tb/handle-options branch from 5797a29 to 03c80dd Compare March 18, 2026 19:01
This commit introduces the funcion ConfigureHandle to replace the global package
handle with one configured using the given HandleOptions. It can only be called
once per process.

Signed-off-by: Timo Beckers <timo@incline.eu>
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.

1 participant